Check_Eventlog

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
esorb26
Posts: 4
Joined: Tue Oct 11, 2016 12:29 am

Check_Eventlog

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_Eventlog

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
esorb26
Posts: 4
Joined: Tue Oct 11, 2016 12:29 am

Re: Check_Eventlog

Post by esorb26 »

Thank you for testing it. There were actually no error from my side. I guess I will to test it again.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_Eventlog

Post by tgriep »

Let us know how it works out.
Be sure to check out our Knowledgebase for helpful articles and solutions!
esorb26
Posts: 4
Joined: Tue Oct 11, 2016 12:29 am

Re: Check_Eventlog

Post by esorb26 »

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

Post 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!
Locked