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
Check_Eventlog
Re: Check_Eventlog
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.
I tested that command and it seemed to work without any errors against my Windows7 system.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Check_Eventlog
Thank you for testing it. There were actually no error from my side. I guess I will to test it again.
Re: Check_Eventlog
Let us know how it works out.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Check_Eventlog
We found that the agent version is not compatible. Just upgraded it and its now working. 
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Check_Eventlog
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!