Page 1 of 1
Need help using check_logfiles
Posted: Wed Sep 07, 2011 8:37 am
by tgfde
Hi,
I'm in the process of getting Nagios to start monitoring events via Event Log. However, after configuring the 'EventLog.txt' (attached) file to monitor an event, I get a "UNKNOWN - configuration incomplete" status. I'm sure I'm missing something.
I used the command below to check for the event:
./check_nrpe -H $HOSTADDRESS$ -u -t 30 -c check_logfiles -a EventLog.txt $ARG3$
Thanks.
Re: Need help using check_logfiles
Posted: Wed Sep 07, 2011 9:18 am
by tgfde
I also have the attached file is another option but it is not detecting the event. Although, it is not giving me an error when I use this file, it just shows everthing is ok.
Thanks.
Re: Need help using check_logfiles
Posted: Wed Sep 07, 2011 2:41 pm
by mguthrie
What check plugin is this using on the remote machine?
Re: Need help using check_logfiles
Posted: Wed Sep 07, 2011 3:16 pm
by tgfde
It is using the "check_nrpe" plugin. Thanks.
Re: Need help using check_logfiles
Posted: Wed Sep 07, 2011 3:27 pm
by mguthrie
Sorry, I mean on the remote machine that's receiving the NRPE request. check_nrpe calls the remote agent and asks the remote machine to execute a plugin or script and return the results to the Nagios server. I need to know what it's executing on the remote machine that's giving those results, and also if it's being run on a windows machine, or unix/linux.
Re: Need help using check_logfiles
Posted: Wed Sep 07, 2011 3:39 pm
by tgfde
Check_logfiles
Re: Need help using check_logfiles
Posted: Wed Sep 07, 2011 4:50 pm
by mguthrie
Ok, it looks like you may be getting some sort of debugging output from the plugin. The "Unknown" state is because the plugin is exiting properly and returning output that Nagios can understand. You may need to test the plugin directory on the remote machine to figure out what is causing the issue.
Here's the doc I found for that plugin, it appears to be community developed.
http://labs.consol.de/lang/en/nagios/check_logfiles/