Page 1 of 1

Check_Eventlog

Posted: Wed Oct 12, 2016 1:02 am
by esorb26
Im trying to create a service check to trigger when there is an event log with critical level for application, setup, and system. Could someone please advice whats wrong with my command

$USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c check_eventlog -a "crit=level in ('critical')" $ARG1$ "scan-range=$ARG2$" "unique-index=%(id)" "detail-syntax=%(source) %(level) ID %(id)"

$ARG1$: "file=Application" "file=Setup" "file=System"
$ARG2$: -1h

Re: Check_Eventlog

Posted: Wed Oct 12, 2016 12:33 pm
by tgriep
Are you receiving any errors when it it is running? Can you post them?
I tested that command and it seemed to work without any errors against my Windows7 system.

Re: Check_Eventlog

Posted: Thu Oct 13, 2016 4:16 am
by esorb26
Thank you for testing it. There were actually no error from my side. I guess I will to test it again.

Re: Check_Eventlog

Posted: Thu Oct 13, 2016 9:16 am
by tgriep
Let us know how it works out.

Re: Check_Eventlog

Posted: Mon Oct 17, 2016 8:19 am
by esorb26
We found that the agent version is not compatible. Just upgraded it and its now working. :)

Re: Check_Eventlog

Posted: Mon Oct 17, 2016 10:37 am
by dwhitfield
Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!