Hello community, here is the log from the commit of package nagios-plugins-zypper for openSUSE:Factory checked in at Wed Mar 4 15:33:54 CET 2009. -------- --- nagios-plugins-zypper/nagios-plugins-zypper.changes 2009-02-16 18:55:32.000000000 +0100 +++ nagios-plugins-zypper/nagios-plugins-zypper.changes 2009-03-04 11:28:54.020020000 +0100 @@ -1,0 +2,7 @@ +Fri Feb 20 22:54:47 CET 2009 - lrupp@suse.de + +- update to 0.980: + + also support old Nagios v2 output format + + no whitespaces in perfdata output + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nagios-plugins-zypper.spec ++++++ --- /var/tmp/diff_new_pack.S28940/_old 2009-03-04 15:30:59.000000000 +0100 +++ /var/tmp/diff_new_pack.S28940/_new 2009-03-04 15:30:59.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package nagios-plugins-zypper (Version 0.975) +# spec file for package nagios-plugins-zypper (Version 0.980) # # 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.975 +Version: 0.980 Release: 1 Url: http://en.opensuse.org/Nagios-plugins-zypper License: BSD 4-Clause @@ -72,6 +72,10 @@ %libexecdir/check_zypper %changelog +* Fri Feb 20 2009 lrupp@suse.de +- update to 0.980: + + also support old Nagios v2 output format + + no whitespaces in perfdata output * Mon Feb 16 2009 lrupp@suse.de - update to 0.975: + added option '-i' to allow admins to ignore some patches/ ++++++ check_zypper.pl ++++++ --- /var/tmp/diff_new_pack.S28940/_old 2009-03-04 15:30:59.000000000 +0100 +++ /var/tmp/diff_new_pack.S28940/_new 2009-03-04 15:30:59.000000000 +0100 @@ -49,7 +49,7 @@ # constants $PROGNAME="check_zypper"; -$VERSION="0.975"; +$VERSION="0.98ß"; $DEBUG = 0; # variables @@ -252,7 +252,8 @@ if ((/out-of-date/)&&(!$opt_o)){ $error="WARNING"; $exitcode=1; - $ret_str="WARNING: At least one of your Repositories is out of date. Please run \"zypper refresh\" as root to update it.\n"; + $ret_str="WARNING: At least one of your Repositories is out of date. Please run \"zypper refresh\" as root to update it. "; + $ret_str.="\n" if ($opt_v); } if (( "$release" eq "10.2" ) || ("$dist" eq "SLE") ){ my ($url,$name,$version,$category,$status)=split('\s*\|\s*',$_,5); # just for reference - perhaps we need the variables later @@ -340,7 +341,7 @@ $secstr="$seccount security update(s);"; } if ( $update_avail ){ - $ret_str.="$error : $secstr $recstr $optstr $pacstr\n"; + $ret_str.="$error : $secstr $recstr $optstr $pacstr "; my @packagelist=(); if ( $opt_v ){ foreach my $cat ('security','recommended','optional','package'){ @@ -350,24 +351,25 @@ if ( "$cat" eq "package"){ push @packagelist, $packagelist{$key}{$name}{'name'}; } else { - $ret_str.="$cat patch: ".$packagelist{$key}{$name}{'name'}."\n"; + $ret_str.="\n$cat patch: ".$packagelist{$key}{$name}{'name'}; } } } } } - $ret_str.="packages: ".join(' ',@packagelist)."\n" if @packagelist; - $ret_str.="Ignored Patches : ".join(' ',@patchignore)."\n" if @patchignore; - $ret_str.="Ignored Packages: ".join(' ',@packageignore)."\n" if @packageignore; + $ret_str.="\npackages: ".join(' ',@packagelist) if @packagelist; + $ret_str.="\nIgnored Patches : ".join(' ',@patchignore)." " if @patchignore; + $ret_str.="\nIgnored Packages: ".join(' ',@packageignore)." " if @packageignore; } - $ret_str.="| security=$seccount, recommended=$reccount, optional=$optcount, packages=$paccount\n"; } else { $error="OK"; - $ret_str="OK: no updates available\n"; - $ret_str.="Ignored Patches : ".join(' ',@patchignore)."\n" if @patchignore; - $ret_str.="Ignored Packages: ".join(' ',@packageignore)."\n" if @packageignore; - $ret_str.="| security=$seccount, recommended=$reccount, optional=$optcount, packages=$paccount\n"; + $ret_str="OK: no updates available "; + if ( $opt_v ){ + $ret_str.="\nIgnored Patches : ".join(' ',@patchignore)." " if @patchignore; + $ret_str.="\nIgnored Packages: ".join(' ',@packageignore)." " if @packageignore; + } } + $ret_str.="| security=".$seccount.";recommended=".$reccount.";optional=".$optcount.";packages=".$paccount.";\n"; } close(FH); return("$ret_str","$error"); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org