Page 1 of 1

Reboot doesn't disappear

Posted: Tue Jan 14, 2020 8:53 am
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

Re: Reboot doesn't disappear

Posted: Tue Jan 14, 2020 3:19 pm
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