Need help using check_logfiles

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Need help using check_logfiles

Post 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.
You do not have the required permissions to view the files attached to this post.
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: Need help using check_logfiles

Post 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.
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Need help using check_logfiles

Post by mguthrie »

What check plugin is this using on the remote machine?
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: Need help using check_logfiles

Post by tgfde »

It is using the "check_nrpe" plugin. Thanks.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Need help using check_logfiles

Post 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.
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: Need help using check_logfiles

Post by tgfde »

Check_logfiles
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Need help using check_logfiles

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