[Bug 803845] New: Nagios-plugins-zypper - CRITICAL status if a repository is out of date
https://bugzilla.novell.com/show_bug.cgi?id=803845 https://bugzilla.novell.com/show_bug.cgi?id=803845#c0 Summary: Nagios-plugins-zypper - CRITICAL status if a repository is out of date Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: robert.munteanu@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 I have configured the nagios zypper plugin to refresh repositories if needed, using define command{ command_name check_zypper command_line $USER1$/check_zypper -r -w '' } However, when a repository is out of date I first get a CRITICAL alert ( see below ) and then a recovery. ***** Nagios ***** Notification Type: PROBLEM Service: Zypper Host: ns3 Address: xxxxx State: CRITICAL Date/Time: Thu Feb 14 19:16:59 EET 2013 Additional Info: Updates CRITICAL : At least one of your Repositories is out of date. Please run zypp Reproducible: Always -- 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=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c1
Lars Vogdt
https://bugzilla.novell.com/show_bug.cgi?id=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c2
Robert Munteanu
Did you follow the descriptions here? https://en.opensuse.org/index.php?title=Nagios-plugins-zypper&stable=1#Refreshing_or_ignoring_outdated_repositories
I have ns3:~ # grep -e PERMISSION_SECURITY /etc/sysconfig/security PERMISSION_SECURITY="easy local So I haven't touched any permissions. Since I use check_zypper -r I expect the repositories to be refreshed.
If this still does not resolve your problem, please enable debug output like described here: https://en.opensuse.org/index.php?title=Nagios-plugins-zypper&oldid=58321
I have set the debug flag to 1 ns3:~ # grep -e DEBUG /usr/lib/nagios/plugins/check_zypper | head -n 2 use vars qw($PROGNAME $VERSION $DEBUG); $DEBUG = 1; But there is no extra debug information included in the email. Am I doing something wrong? And there is no /tmp/check_zypper_output.txt file in my system. -- 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=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c3
Lars Vogdt
https://bugzilla.novell.com/show_bug.cgi?id=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c4
Robert Munteanu
https://bugzilla.novell.com/show_bug.cgi?id=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c5
Lars Vogdt
Would it help if I passed '-d' to check_zypper in my nagios config? I don't mind the extra noise as long as I can catch one valuable debug output in my email in a couple of days.
Yes, that would help much! Best would be together with the output if you run "zypper ref" manually on the host. I leave this bug needinfo for now, awaiting your debug output. Thanks for your offer! -- 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=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c6
--- Comment #6 from Lars Vogdt
https://bugzilla.novell.com/show_bug.cgi?id=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c7
--- Comment #7 from Robert Munteanu
Any news here?
Sorry for taking so long. I haven't been able to get the debug information in the email, since apparently Nagios ignores all information sent to stderr ( news to me ). I've just enabled logging of debug information ( command_line $USER1$/check_zypper -r -w '' -d 2>>/tmp/nagios_zypper_check.log ) and am waiting for the results. By the way, would upgrading to 1.45 make any difference? -- 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=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c8
--- Comment #8 from Lars Vogdt
By the way, would upgrading to 1.45 make any difference?
No. The biggest change from 1.40 to 1.45 affected only the apparmor profile, which is unrelated in your case. The rest was just distribution specific. -- 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=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c9
Robert Munteanu
https://bugzilla.novell.com/show_bug.cgi?id=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c10
Lars Vogdt
From the logfile:
LINE: refreshing 'sonar' .. Error: LINE: refusing unsigned file repomd.xml LINE: Error: LINE: Could not refresh repository 'sonar': So there is an error in one of your repositories, that the plugin could not resolve automatically. As result, especially this repo is not refreshed. I do not see this as a problem of the plugin, as the behavior is expected: repo could not be refreshed -> critical state If you disable this repo (or fix it? - just to mention 2 possible solutions), the plugin should be able to work as expected. -- 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=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c11
Robert Munteanu
https://bugzilla.novell.com/show_bug.cgi?id=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c12
--- Comment #12 from Robert Munteanu
https://bugzilla.novell.com/show_bug.cgi?id=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c13
Lars Vogdt
https://bugzilla.novell.com/show_bug.cgi?id=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c14
Lars Vogdt
https://bugzilla.novell.com/show_bug.cgi?id=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c15
Robert Munteanu
https://bugzilla.novell.com/show_bug.cgi?id=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c16
Lars Vogdt
However, it would be good to add another check, for ' (Service Check Timed Out)' , which now causes a CRITICAL event.
Well, the check can of course try to rerun if there is a timeout. But neither Nagios, NRPE nor SSH will wait forever that the check finished. So the logic here is: if there is a problem and the check can not be executed, raise an error. Depending on the paranoia of the administrator, this can be from "Security problem, as I can not check if there is a security update" to "well, relax, I will try it tomorrow again"... As (open)SUSE should be secure in a default installation, CRICITAL is following the paranoid administrator here. It's right that the check might be able to handle this problem in another way, but I guess I need some time to think about a solution that is useful for both admins here and allows them to define what they think the result should look like. I hope that's understandable for you? If yes, please open a feature request for this on https://features.opensuse.org/ For the reported problem, I like to schedule a maintenance update with the current package in server:monitoring. Maintenance: can you please provide a SWAMP-ID for a nagios-plugins-zypper update on all current openSUSE distributions ? -- 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=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c17
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=803845
https://bugzilla.novell.com/show_bug.cgi?id=803845#c18
Lars Vogdt
Hi Lars, a swampid for openSUSE is not necessary. Just open a maintenancerequest with the updated packages for 12.2 and 12.3. Thanks.
Thanks. Maintenancerequest 185289 submitted for 12.2 and 12.3. Closing here as fixed, rest up to maintenance. -- 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