[Bug 527159] New: check_zypper (nagios-plugins-zypper) passes incorrect options to /usr/bin/zypper
http://bugzilla.novell.com/show_bug.cgi?id=527159 Summary: check_zypper (nagios-plugins-zypper) passes incorrect options to /usr/bin/zypper Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Maintenance AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: A.Thomas@cs.rhul.ac.uk QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618) The check_zypper script in the nagios-plugins-zypper package passes the option 'xml-updates' to /usr/bin/zypper which fails with failed with an "unknown command" error; the plugin reports no updates as being available. I have installed zypper-1.0.9-0.1.1 and nagios-plugins-zypper-0.9-1.3 Reproducible: Always Steps to Reproduce: 1. Install nagios-plugins-zypper 2. Run /usr/lib/nagios/plugins/check_zypper Actual Results: Updates OK: no updates available Expected Results: Updates WARNING : 2 recommended update(s); (assuming some updates are known to be available) The following change to /usr/lib/nagios/plugins/check_zypper fixed the problem: 60c60 < my $zypperopt="--non-interactive --no-gpg-checks xml-updates"; ---
my $zypperopt="--non-interactive --no-gpg-checks --xmlout list-patches";
-- 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.
http://bugzilla.novell.com/show_bug.cgi?id=527159 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@novell.com AssignedTo|bnc-team-screening@forge.pr |lrupp@novell.com |ovo.novell.com | -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=527159 User lrupp@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=527159#c1 Lars Vogdt <lrupp@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |NEEDINFO CC| |lrupp@novell.com Found By|--- |Customer Info Provider| |A.Thomas@cs.rhul.ac.uk Target Milestone|--- |Final --- Comment #1 from Lars Vogdt <lrupp@novell.com> 2009-08-03 13:08:35 MDT --- The real zypper options used for 11.1 are: "--xmlout list-updates -t package -t patch" and work here on a 11.1 as expected. (Note: line 60 just contains "default" options, the real options depend on the detected openSUSE-release.) Can you please update your nagios-plugins-zypper package to the current version 1.01 and give this one a try? Can you please change $DEBUG = 0; to $DEBUG = 1; in line 53 of /usr/lib/nagios/plugins/check_zypper if 1.01 still doesn't fix your problem and paste (attach) the output here? -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=527159 User A.Thomas@cs.rhul.ac.uk added comment http://bugzilla.novell.com/show_bug.cgi?id=527159#c2 Adrian Thomas <A.Thomas@cs.rhul.ac.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|A.Thomas@cs.rhul.ac.uk | --- Comment #2 from Adrian Thomas <A.Thomas@cs.rhul.ac.uk> 2009-08-04 02:52:50 MDT --- Yes, nagios-plugins-zypper-1.01-2.1 passes the correct options to /usr/bin/zypper and the output is as expected. -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=527159 User lrupp@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=527159#c3 Lars Vogdt <lrupp@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ast@novell.com --- Comment #3 from Lars Vogdt <lrupp@novell.com> 2009-08-04 06:32:36 MDT --- Thanks for verifying! As we have the old 0.965 version in openSUSE 11.1, I'm asking for an online update to the current version, which also supports SLE11 and old Nagios2 now. Maintenance: can we release an online udpate for nagios-plugins-zypper (SWAMPID needed....) on 11.1? -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=527159 User swamp@suse.com added comment http://bugzilla.novell.com/show_bug.cgi?id=527159#c4 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:26296 --- Comment #4 from Swamp Workflow Management <swamp@suse.com> 2009-08-04 08:26:52 MDT --- The SWAMPID for this issue is 26296. Please submit the patch and patchinfo file using this ID. (https://swamp.suse.de/webswamp/wf/26296) -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=527159 User lrupp@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=527159#c6 Lars Vogdt <lrupp@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |FIXED --- Comment #6 from Lars Vogdt <lrupp@novell.com> 2009-08-07 12:49:46 MDT --- done. Closing as fixed. -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=527159 User swamp@suse.com added comment http://bugzilla.novell.com/show_bug.cgi?id=527159#c7 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:26296 |maint:running:26296 | |maint:released:11.1:26299 --- Comment #7 from Swamp Workflow Management <swamp@suse.com> 2009-08-27 03:29:01 MDT --- Update released for: nagios-plugins-zypper Products: openSUSE 11.1 (i586) -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=527159 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:26296 |. |maint:released:11.1:26299 | -- 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://bugzilla.novell.com/show_bug.cgi?id=527159 https://bugzilla.novell.com/show_bug.cgi?id=527159#c8 Gregg Douglas <gregg.douglas@t-systems.co.za> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED CC| |gregg.douglas@t-systems.co. | |za Resolution|FIXED | --- Comment #8 from Gregg Douglas <gregg.douglas@t-systems.co.za> 2012-12-07 14:29:49 UTC --- Hi, I have applied the fix in comment 0 and it now works on OpenSuSE 12.2. It does not work on a SLES11 sp2 (Not sure if it is suppose to or not ?), it outputs the following: ./check_zypper INFO: SLE,11,2 INFO: Trying unset LANG; /usr/bin/zypper sl 2>/dev/null 1>&2 INFO: Trying unset LANG; /usr/bin/zypper --xmlout list-updates -t package -t patch LINE: <?xml version='1.0'?> LINE: <stream> LINE: <message type="info">Loading repository data...</message> LINE: <message type="info">Reading installed packages...</message> LINE: <update-status version="0.6"> LINE: <update-list> LINE: <update name="slessp1-gnome-packagekit" edition="5773" arch="noarch" status="needed" category="recommended" pkgmanager="true" restart="false" interactive="false" kind="patch"> LINE: <summary>YOU update for gnome-packagekit </summary> LINE: <description> LINE: This update for gnome-packagekit fixes display of Confirmation licenses. LINE: LINE: </description> LINE: <license></license> LINE: <source url="http://xxxx/repo/$RCE/SLES11-SP1-Updates/sle-11-x86_64?credentials=NCCcreden..." alias="SMT-http_xxxxx:SLES11-SP1-Updates"/> LINE: </update> LINE: <update name="slessp2-softwaremgmt-201210" edition="6967" arch="noarch" status="needed" category="recommended" pkgmanager="true" restart="false" interactive="false" kind="patch"> LINE: <summary>YOU update for software update stack </summary> LINE: <description> LINE: This update for the software update stack 2012/10 provides the following LINE: fixes: LINE: LINE: libzypp: LINE: LINE: * Fix handling of cross-device links (bnc#782736) LINE: * Relax evaluation of patch category tags (case insensitive) LINE: * Filter zero sized devices in disk usage counter (bnc#769819) LINE: * Fix possibly reporting timeout as "aborted by user" (bnc#665327) LINE: * Allow libcurl to take proxy from environment if proxy is not LINE: configured or disallowed (bnc#745404) LINE: * For installed products also filelists when trying to find the buddy LINE: (bnc#784900). LINE: LINE: zypper: LINE: LINE: * Properly encode data in XML output (bnc#773641) LINE: * Add patch/list-patches option --category to man page (bnc#783539). LINE: LINE: libsatsolver: LINE: LINE: * Fix susetags parser to not ignore the filelist of the last solvable LINE: (bnc#782539). LINE: LINE: </description> LINE: <license></license> LINE: <source url="http://xxxx/repo/$RCE/SLES11-SP2-Updates/sle-11-x86_64?credentials=NCCcreden..." alias="xxxxx:SLES11-SP2-Updates"/> LINE: </update> LINE: </update-list> LINE: </update-status> LINE: </stream> INFO: Packages (paccount): 0 INFO: Optional (optcount): 0 INFO: Recommended (reccount): 0 INFO: Security (seccount): 0 $VAR1 = {}; Updates OK: no updates available | security=0;;;; recommended=0;;;; optional=0;;;; packages=0;;;; INFO: Exit-Code: 0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=527159 https://bugzilla.novell.com/show_bug.cgi?id=527159#c9 Gregg Douglas <gregg.douglas@t-systems.co.za> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |CLOSED Resolution| |FIXED --- Comment #9 from Gregg Douglas <gregg.douglas@t-systems.co.za> 2012-12-07 14:32:28 UTC --- Should I rather log another bug for SLE ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=527159 https://bugzilla.novell.com/show_bug.cgi?id=527159#c10 --- Comment #10 from Gregg Douglas <gregg.douglas@t-systems.co.za> 2012-12-07 15:17:48 UTC --- Should I rather log another bug for SLE ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com