[Bug 538850] New: static version number in nagios-plugins-zypper prevents correct results
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=538850 Summary: static version number in nagios-plugins-zypper prevents correct results Classification: openSUSE Product: openSUSE 11.2 Version: Milestone 7 Platform: i586 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Maintenance AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: thomas@cupracer.de QAContact: qa@suse.de Found By: --- Created an attachment (id=318022) --> (http://bugzilla.novell.com/attachment.cgi?id=318022) patch for /usr/lib/nagios/plugins/check_zypper User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.13) Gecko/2009080200 SUSE/3.0.13-0.1.2 Firefox/3.0.13 The script "/usr/lib/nagios/plugins/check_zypper" from RPM "nagios-plugins-zypper-1.01-3.4" contains some system release version conditions. Unfortunately, "11.1" is existing, but not "11.2". So the script skips update checks and wrongly reports that everything is up-to-date. Reproducible: Always Steps to Reproduce: 1. # zypper in nagios-plugins-zypper 2. # /usr/lib/nagios/plugins/check_zypper Actual Results: (wrong) output: Updates OK: no updates available | security=0;;;; recommended=0;;;; optional=0;;;; packages=0;;;; Expected Results: (correct) output: Updates WARNING : 1 recommended update(s); 1 package update(s); | security=0;;;; recommended=1;;;; optional=0;;;; packages=1;;;; (of course, this output is just an example) The attached patch add an if-condition for release "11.2" to the script. Keep in mind that this problem is going to come up again with the next release after 11.2 if this technique is used. Please also note that people might trust the output of this nagios plugin and miss some important security updates! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=538850
Dirk Mueller
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=538850
User lrupp@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=538850#c1
Lars Vogdt
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=538850
User lrupp@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=538850#c2
--- Comment #2 from Lars Vogdt
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=538850
User thomas@cupracer.de added comment
http://bugzilla.novell.com/show_bug.cgi?id=538850#c4
Thomas Schulte
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=538850
User lrupp@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=538850#c5
Lars Vogdt
participants (1)
-
bugzilla_noreply@novell.com