Hello community, here is the log from the commit of package nagios-plugins-zypper checked in at Tue Nov 11 15:45:53 CET 2008. -------- --- nagios-plugins-zypper/nagios-plugins-zypper.changes 2008-10-22 20:07:17.000000000 +0200 +++ /mounts/work_src_done/STABLE/nagios-plugins-zypper/nagios-plugins-zypper.changes 2008-10-23 15:11:45.000000000 +0200 @@ -1,0 +2,6 @@ +Thu Oct 23 15:11:28 CEST 2008 - lrupp@suse.de + +- update to 0.8.1: + + enhance the documentation (help text) + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nagios-plugins-zypper.spec ++++++ --- /var/tmp/diff_new_pack.x29239/_old 2008-11-11 15:45:43.000000000 +0100 +++ /var/tmp/diff_new_pack.x29239/_new 2008-11-11 15:45:43.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package nagios-plugins-zypper (Version 0.8) +# spec file for package nagios-plugins-zypper (Version 0.8.1) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -20,7 +20,7 @@ Name: nagios-plugins-zypper Summary: Nagios plugin for checking software updates -Version: 0.8 +Version: 0.8.1 Release: 1 Url: http://en.opensuse.org/nagios-plugins-zypper License: BSD 4-Clause @@ -74,6 +74,9 @@ %libexecdir/check_zypper %changelog +* Thu Oct 23 2008 lrupp@suse.de +- update to 0.8.1: + + enhance the documentation (help text) * Wed Oct 22 2008 lrupp@suse.de - update to 0.8: + return UNKNOWN if zypper prints "Error message" ++++++ check_zypper.pl ++++++ --- /var/tmp/diff_new_pack.x29239/_old 2008-11-11 15:45:43.000000000 +0100 +++ /var/tmp/diff_new_pack.x29239/_new 2008-11-11 15:45:43.000000000 +0100 @@ -52,7 +52,7 @@ # constants $PROGNAME="check_zypper"; -my $VERSION="0.8"; +my $VERSION="0.8.1"; my $DEBUG = 0; # variables @@ -120,11 +120,12 @@ print " Use the given file to get informations about the distribution.\n"; print " Default: $releasefile\n"; print " -s, --use_sudo\n"; - print " Zypper needs root privileges on some distributions.\n"; + print " Zypper needs root privileges on some distributions (known: 10.1 and SLE10).\n"; print " You can enable the script to use $sudo to start zypper.\n"; print " But don't forget to enable nopasswd sudo for the user starting $PROGNAME\n"; - print " Via a line like this on in /etc/sudoers:\n"; - print " nagios ALL = NOPASSWD: /usr/bin/zypper\n"; + print " Via lines like the two below on in /etc/sudoers:\n"; + print " nagios ALL = NOPASSWD: /usr/bin/zypper sl, \\ \n"; + print " /usr/bin/zypper $zypperopt\n"; print " -t, --timeout\n"; print " Just in case of problems, let's not hang Nagios and define a timeout.\n"; print " Default value is: $opt_t seconds\n"; @@ -313,11 +314,6 @@ exit $ERRORS{'OK'}; } -if ($opt_h) { - print_help(); - exit $ERRORS{'OK'}; -} - if (! $opt_H) { $opt_H=$ENV{'HOSTNAME'}; } @@ -338,6 +334,12 @@ } $use_sudo.="$sudo" if ($opt_s); + +if ($opt_h) { + print_help(); + exit $ERRORS{'OK'}; +} + if ( check_zypper() ){ print "UNKNOWN - system doesn't allow to execute zypper\n"; exit $ERRORS{"UNKNOWN"}; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org