Windows Event Log
Posted: Thu Oct 06, 2016 1:32 am
Hi!
I got a very simple Nagios check for the Windows Event Log running. I want to change some things, but i dont know how to do. And i dont find any actual wiki or something like that, thats helps me.
Actual Check:
Well first thing i need help with - how do i change the log to monitor? the ids in "system" work well, but the ids in application dont work?
Second problem - i want only get Warnings / Criticals when the event is not older than 24 hours. How can i fix that?
I got a very simple Nagios check for the Windows Event Log running. I want to change some things, but i dont know how to do. And i dont find any actual wiki or something like that, thats helps me.
Actual Check:
Code: Select all
#Windows System Log
define command{
command_name check_eventsys
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -p 5666 -c $ARG1$ -a $ARG2$
}Code: Select all
define service{
use generic-service
host_name WWS-001
service_description Windows Event Log #104
check_command check_nrpe_wu!check_eventsys_errors -c checkeventlog -a warn=1 crit=2 filter="id=104"
}
Well first thing i need help with - how do i change the log to monitor? the ids in "system" work well, but the ids in application dont work?
Second problem - i want only get Warnings / Criticals when the event is not older than 24 hours. How can i fix that?