Page 1 of 1

Nagios check_file_content plugin

Posted: Fri Feb 20, 2015 12:36 pm
by digitallife
Help..........
I have upload the "check_file_content" pluging and have it working on the host nagios VM. However, I can seem to get it working to a remote VM. Can you help with this?

Thanks

Re: Nagios check_file_content plugin

Posted: Fri Feb 20, 2015 1:29 pm
by jdalrymple
We need more information. How are you trying to run it remotely? There is no mechanism to run the plugin specifying a remote host so you'll have to utilize a remote plugin executor such as NRPE or NCPA. Please post the pertinent parts of your host, service and command configurations as well as the configuration from the remote agent.

If what I'm saying seems entirely foreign please review these documents:

http://assets.nagios.com/downloads/ncpa ... g_NCPA.pdf
http://assets.nagios.com/downloads/ncpa ... ctive.html

Re: Nagios check_file_content plugin

Posted: Fri Feb 20, 2015 3:31 pm
by digitallife
Sorry for the lack of information. But yes, I utilize NRPE to execute checks remotely. Matter of fact, I currently have several remote hosts and services running successfully. I have a request to monitor some contents of a logfile which is why I uploaded the plugin. The check_file_content do not come standard when I add a new remote Linux server/VM to monitor. I uploaded this plugin from http://exchange.nagios.org/directory/Plugins/Log-Files. I've loaded it on both the nagios host and the downstream remote VM. It works fine on the nagios host. However, I cannot get it configured from the host to execute on the remote server. Hopefully, this is little clearer.

Re: Nagios check_file_content plugin

Posted: Sun Feb 22, 2015 9:00 pm
by digitallife
OK, I got it figured out. I needed to added the plugin command to the nrpe.cfg file on the remote machine. :D