Page 1 of 4

Monitor remote machine's memory using Nagios Core

Posted: Thu Dec 05, 2013 10:54 am
by vinothsethuram
Can we monitor remote machine's free memory/load using Nagios Core ?

Re: Monitor remote machine's memory using Nagios Core

Posted: Thu Dec 05, 2013 11:21 am
by tmcdonald
Yes. NRPE lets you command a remote server to run a certain command and send the results back to Nagios.

http://exchange.nagios.org/directory/Ad ... or/details

Re: Monitor remote machine's memory using Nagios Core

Posted: Thu Dec 05, 2013 11:53 am
by vinothsethuram
I downloaded nrpe and extracted the folder, but couldnt find check_nrpe command

Re: Monitor remote machine's memory using Nagios Core

Posted: Thu Dec 05, 2013 11:57 am
by vinothsethuram
Sorry its there.

Re: Monitor remote machine's memory using Nagios Core

Posted: Thu Dec 05, 2013 12:02 pm
by tmcdonald
I guess I should have been more clear.

The check_nrpe command is found in your nagios plugins directory, and is run on the nagios server. The package you downloaded needs to go on the remote machine you wish to monitor. The following doc can explain better than I can:

http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf

It is somewhat dated (version numbers are not current) but the information is still mostly valid.



If you're looking for a different solution, NCPA might work better. It's a cross-platform agent that supports both active and passive checks:

http://exchange.nagios.org/directory/Ad ... PA/details

In fact now that I think about it, NCPA might be your best choice.

Re: Monitor remote machine's memory using Nagios Core

Posted: Thu Dec 05, 2013 12:09 pm
by vinothsethuram
/usr/local/nagios/libexec/check_nrpe -H localhost
connect to address 127.0.0.1 port 5666: Connection refused
If I specify a host other than local host then I am getting socket time out

Re: Monitor remote machine's memory using Nagios Core

Posted: Thu Dec 05, 2013 1:59 pm
by abrist
You may want to run through the troubleshooting steps and possible solutions in the following doc:
http://assets.nagios.com/downloads/nagi ... utions.pdf

Re: Monitor remote machine's memory using Nagios Core

Posted: Thu Dec 05, 2013 2:02 pm
by vinothsethuram
Its for Nagios XI not for Nagios core

Re: Monitor remote machine's memory using Nagios Core

Posted: Thu Dec 05, 2013 2:09 pm
by tmcdonald
Most of that document is relevant to Nagios Core as well.

Re: Monitor remote machine's memory using Nagios Core

Posted: Thu Dec 05, 2013 2:24 pm
by heebs
In order to check with nrpe, you have to have the daemon running on the host that you are trying to check. The README file from the tarball you downloaded has full instructions on how to compile/install/configure it.