eventlog monitoring windows command not working in Nagios XI
Posted: Thu Jan 07, 2016 6:56 am
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 :
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 :