Reboot doesn't disappear

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
NicolasT29
Posts: 2
Joined: Fri Apr 25, 2014 11:15 am

Reboot doesn't disappear

Post by NicolasT29 »

Hi
we used this command to check host reboot:

Code: Select all

$USER1$/check_wmi_eventid -H brest3.ocap.loc -u OCAP/******-p ******* -l system -e 6009 -w 1 -c 5 -t3 -m1440 -W ""Le serveur a reboote dans les 24h"" -C ""Le serveur a reboote au moins 5 fois dans les 24h"" -O "RAS"
It works great, but the alert doesn't disappear, same if the host didin't have reboot since 2 Weeks or more
Attachments
eon pb reboot.PNG
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Reboot doesn't disappear

Post by mbellerue »

Hi NicolasT29, welcome to the forum!

It must not be taking the -m option into account. Try running this on your Nagios Core server and let me know what the output is.

Code: Select all

/usr/local/nagios/libexec/check_wmi_eventid -H brest3.ocap.loc -u OCAP/******-p ******* -l system -e 6009 -w 1 -c 5 -t3 -m1440 -W ""Le serveur a reboote dans les 24h"" -C ""Le serveur a reboote au moins 5 fois dans les 24h"" -O "RAS" -d
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked