Monitor remote machine's memory using Nagios Core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Monitor remote machine's memory using Nagios Core

Post by vinothsethuram »

Can we monitor remote machine's free memory/load using Nagios Core ?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitor remote machine's memory using Nagios Core

Post 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
Former Nagios employee
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Monitor remote machine's memory using Nagios Core

Post by vinothsethuram »

I downloaded nrpe and extracted the folder, but couldnt find check_nrpe command
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Monitor remote machine's memory using Nagios Core

Post by vinothsethuram »

Sorry its there.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitor remote machine's memory using Nagios Core

Post 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.
Former Nagios employee
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Monitor remote machine's memory using Nagios Core

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitor remote machine's memory using Nagios Core

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Monitor remote machine's memory using Nagios Core

Post by vinothsethuram »

Its for Nagios XI not for Nagios core
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitor remote machine's memory using Nagios Core

Post by tmcdonald »

Most of that document is relevant to Nagios Core as well.
Former Nagios employee
heebs
Posts: 15
Joined: Tue Dec 03, 2013 9:44 am

Re: Monitor remote machine's memory using Nagios Core

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