Check Windows-Eventlog


#1

Hello!

I am new in NSClient++. I have implemented a lot of standar-checks for nagios. But now I have a problem with Windows-Eventlog.

Here my problem: I want to check the Windows Event log for 2 Events of last 50 Minuts.

/usr/lib/nagios/plugins/check_nrpe -t 50 -H <Servername/IP> -c check_eventlog -a file=application scan-range=-50m "filter=id=2009 or id=2937" "warning=id=2009 or id=2937" "critical=none" "top-syntax=%(status): %(count) message(s) found for id(s) 2009, 2937" "perf-config=level(ignored:false)"

WARNING: 3 message(s) found for id(s) 2009, 2937|‘Application_MSExchange Mid-Tier Storage_id’=2009;2009;0 ‘Application_MSExchange Mid-Tier Storage_id’=2009;2009;0 ‘Application_MSExchange Mid-Tier Storage_id’=2009;2009;0

For the PerfData-Counter-Name I want the ID of EventCode and the count of messages for perfdate-value like ’Application_MSExchange Mid-Tier Sotrage_id_2900’=4;10;0 ’Application_MSExchange Mid-Tier Sotrage_id_2937’=2;10;0

Is this possible?

rg Hansi