Hello community, here is the log from the commit of package nagios-plugins-zypper for openSUSE:Factory checked in at Thu Mar 26 01:08:19 CET 2009. -------- --- nagios-plugins-zypper/nagios-plugins-zypper.changes 2009-03-04 11:28:54.000000000 +0100 +++ nagios-plugins-zypper/nagios-plugins-zypper.changes 2009-03-23 13:43:15.000000000 +0100 @@ -1,0 +2,7 @@ +Mon Mar 23 13:42:29 CET 2009 - lrupp@suse.de + +- update to 1.0: + + added option '-p' to disable perfdata output + + fixed perfdata output + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nagios-plugins-zypper.spec ++++++ --- /var/tmp/diff_new_pack.y20347/_old 2009-03-26 01:07:46.000000000 +0100 +++ /var/tmp/diff_new_pack.y20347/_new 2009-03-26 01:07:46.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package nagios-plugins-zypper (Version 0.980) +# spec file for package nagios-plugins-zypper (Version 1.0) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -20,7 +20,7 @@ Name: nagios-plugins-zypper Summary: Nagios plugin for checking software updates -Version: 0.980 +Version: 1.0 Release: 1 Url: http://en.opensuse.org/Nagios-plugins-zypper License: BSD 4-Clause @@ -72,6 +72,10 @@ %libexecdir/check_zypper %changelog +* Mon Mar 23 2009 lrupp@suse.de +- update to 1.0: + + added option '-p' to disable perfdata output + + fixed perfdata output * Fri Feb 20 2009 lrupp@suse.de - update to 0.980: + also support old Nagios v2 output format ++++++ check_zypper.pl ++++++ --- /var/tmp/diff_new_pack.y20347/_old 2009-03-26 01:07:46.000000000 +0100 +++ /var/tmp/diff_new_pack.y20347/_new 2009-03-26 01:07:46.000000000 +0100 @@ -49,7 +49,7 @@ # constants $PROGNAME="check_zypper"; -$VERSION="0.98ß"; +$VERSION="1.0"; $DEBUG = 0; # variables @@ -62,7 +62,7 @@ our $release="11.0"; our $dist="openSUSE"; our $patchlevel=0; -our ($opt_V, $opt_h, $opt_i, $opt_H, $opt_w, $opt_c, $opt_f, $opt_o, $opt_r, $opt_s, $opt_t, $opt_v); +our ($opt_V, $opt_h, $opt_i, $opt_H, $opt_w, $opt_c, $opt_f, $opt_o, $opt_p, $opt_r, $opt_s, $opt_t, $opt_v); our $exitcode=0; our %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); our %REVERSE=(4=>'DEPENDENT',3=>'UNKNOWN',2=>'CRITICAL',1=>'WARNING',0=>'OK'); @@ -77,6 +77,7 @@ $opt_t="120"; $opt_v=0; $opt_o=0; +$opt_p=1; $opt_s=0; ####################################################################### @@ -152,6 +153,8 @@ print " package:libtiff-devel\n\n"; print " -o, --ignore_outdated\n"; print " Don't warn if a repository is outdated.\n"; + print " -p, --no_perfdata\n"; + print " Print no perfdata\n"; print " -r, --refresh_repos\n"; print " Tries to refresh the repositories before checking for updates.\n"; print " Note: this maybe needs an entry in /etc/sudoers like:\n"; @@ -369,7 +372,7 @@ $ret_str.="\nIgnored Packages: ".join(' ',@packageignore)." " if @packageignore; } } - $ret_str.="| security=".$seccount.";recommended=".$reccount.";optional=".$optcount.";packages=".$paccount.";\n"; + $ret_str.="| security=".$seccount.";;;; recommended=".$reccount.";;;; optional=".$optcount.";;;; packages=".$paccount.";;;;\n" if ($opt_p); } close(FH); return("$ret_str","$error"); @@ -389,6 +392,7 @@ "c=s" => \$opt_c, "critical=s" => \$opt_c, "f=s" => \$opt_f, "releasefile=s" => \$opt_f, "o" => \$opt_o, "ignore_outdated" => \$opt_o, + "p:0" => \$opt_p, "no_perfdata:0" => \$opt_p, "r" => \$opt_r, "refresh_repos" => \$opt_r, "t=i" => \$opt_t, "timeout=i" => \$opt_t, "v" => \$opt_v, "verbose_output" => \$opt_v, ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org