NSClient, NRPE, check_eventlog
Posted: Tue Oct 06, 2015 10:10 am
Hi guys,
I'm trying to get some basic event log monitoring set up and I need help with check_eventlog. I've gone through the documentation here but I'm still having trouble. Here's my issue:
Ultimately, I need to watch a custom event log that our application uses for the string "Error reading message on queue". We'll call this log "customlog". An unfiltered check against it says no entries are found in that log.
Filtering it for information messages returns nothing as well (confirmed there are plenty of information messages in the log)
Moving to a different log, system, I run the same commands:
Better, but the filter still fails.
Trying to filter by age also fails.
Hopefully it's something simple I'm missing.
Oh, and I added this line in nsclient.ini to get the check working. It's the only change I made.
Thanks!
I'm trying to get some basic event log monitoring set up and I need help with check_eventlog. I've gone through the documentation here but I'm still having trouble. Here's my issue:
Ultimately, I need to watch a custom event log that our application uses for the string "Error reading message on queue". We'll call this log "customlog". An unfiltered check against it says no entries are found in that log.
Code: Select all
$ ./check_nrpe -H [hostname]-p 5666 -t 10 -c check_eventlog -a file=customlog
OK: No entries found|'count'=0;0;5Code: Select all
$ ./check_nrpe -H [hostname] -p 5666 -t 10 -c check_eventlog -a file=customlog "filter=level = 'Information'"
OK: No entries found|'count'=0;0;5Code: Select all
$ ./check_nrpe -H [hostname] -p 5666 -t 10 -c check_eventlog -a file=system
WARNING: 1/1 System Microsoft-Windows-WindowsUpdateClient (Unable to Connect: Windows is unable to connect to the automatic updates service and therefore cannot download and install updates according to the set schedule. Windows will continue to try to establish a connection.)|'count'=1;0;5Code: Select all
$ ./check_nrpe -H [hostname] -p 5666 -t 10 -c check_eventlog -a file=system "filter=level = 'Information'"
OK: No entries found|'count'=0;0;5Code: Select all
$ ./check_nrpe -H [hostname] -p 5666 -t 10 -c check_eventlog -a file=system "filter=written lt -1d"
OK: No entries found|'count'=0;0;5Oh, and I added this line in nsclient.ini to get the check working. It's the only change I made.
Code: Select all
[/modules]
CheckEventLog=1