Page 1 of 1

CheckLog for WINDOWs ..

Posted: Thu Feb 04, 2016 8:26 am
by rmank
Can some one help me with the command line using nrpe and checkLog to get an alert when below details are satisfied ?

- event log ""Application""
- type ""Warning""
- sources ""Sophos Anti-Virus"" and ""SophosAntiVirus""
- categories ""Virus"" and ""Virus/spyware"""

----------This some where I could at least get some details ..but not fully succeeded ...........
./check_nrpe -H srvcldmlcd001 -p 5666 -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% Location=%file%"

Re: CheckLog for WINDOWs ..

Posted: Thu Feb 04, 2016 11:46 am
by rkennedy
What is the current result when you run that command?

Re: CheckLog for WINDOWs ..

Posted: Thu Feb 04, 2016 9:49 pm
by rmank
its not giving anything as output !

Re: CheckLog for WINDOWs ..

Posted: Thu Feb 04, 2016 9:58 pm
by Box293
What version of NSClient++ are you using?

Have a look at this guide, it might answer a few questions:
http://outsideit.net/real-time-eventlog-monitoring/

Re: CheckLog for WINDOWs ..

Posted: Tue Feb 09, 2016 4:15 am
by rmank
Thanks a lot .I am able to check the logs now !
Please close the thread ..!