Page 1 of 1

eventlog monitoring windows command not working in Nagios XI

Posted: Thu Jan 07, 2016 6:56 am
by ranjitw
Hi All,

Please help me in resolving this issue.

When I am executing the below command from the Nagios XI server it is working fine .

./check_nrpe -p 5666 -H xxx.xxx.xx.xxx -t 30 -c CheckEventLog -a file=System file=application MaxWarn=1 MaxCrit=1 "filter=generated > -10m AND severity NOT IN ('success', 'informational') AND source NOT in ('invalid')" unique descriptions "syntax=Time:%generated%, Event ID:%id%, Source=%source%, Type=%level%"

Output:
Time:2w 2d 19:22, Event ID:256, Source=vmStatsProvider, Type=information, Time:2w 2d 19:22, Event ID:0, Source=NagiosEventLog, Type=error, Time:2w 2d 19:22, Event ID:258, Source=vmStatsProvider, Type=information|'count'=40;1;1

But when I tried adding the same in service management and when I performed test command its failing with error .

I have given below args :

Arg1 : CheckEventLog
Arg2 : -a file=System file=application MaxWarn=1 MaxCrit=1 'filter=generated > -10m AND severity NOT IN ('success', 'informational') AND source NOT in ('invalid')' unique descriptions 'syntax=Time:%generated%, Event ID:%id%, Source=%source%, Type=%level%'

error :

Re: eventlog monitoring windows command not working in Nagio

Posted: Thu Jan 07, 2016 10:35 am
by hsmith
The test command should not be used to determine whether or not a check is going to succeed. It has a lot of trouble with special characters. Have you added the check, applied the configuration, and observed whether or not it is working in the UI?