eventlog monitoring windows command not working in Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

eventlog monitoring windows command not working in Nagios XI

Post 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 :
You do not have the required permissions to view the files attached to this post.
Regards,
Ranjit W
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: eventlog monitoring windows command not working in Nagio

Post 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?
Former Nagios Employee.
me.
Locked