Hi,
I want to check for specific IDs in a windows server event log and raise a critical alert when there is at least one line with that event.
I create this command
$USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -A $WMIU$ -m checkeventlog -a Application -o 1 --inifile=/usr/lib/nagios/plugins/libexec/events.ini -4 $ARG1$ --warnings="*_Itemcount>0" --critical="*_Itemcount>=1"
I have created a service attached to the host that I have to test but I have an ok result while there are 12 events.
How to make the service critical when there is more than one event.
Thank for your help

Best answer by pnl
View original