Page 1 of 2

Monitor Linux

Posted: Fri Jan 09, 2015 2:22 pm
by JohnFLi
I have a few linux machines that I have nagios monitoring.

I dont remember the process for setting up a client on the linux machines, and now I have more I need to add.

The only documentation I saw for linux machinces is using nrpe. I dont remember it being so many steps.

Is there another way to monitor a linux host other than NRPE?

Re: Monitor Linux

Posted: Fri Jan 09, 2015 3:03 pm
by eloyd
Yes. One of the easiest ways it to put the modules on the remote Linux box and then use check_by_ssh to check them from the Nagios host. This requires SSH keys with no passphrase, but can be set up in a few seconds, rather than the hour or so it might take to set up NRPE.

Re: Monitor Linux

Posted: Fri Jan 09, 2015 3:44 pm
by cmerchant
Another method of monitoring without an NRPE agent would be snmp. That process is documented here:

http://assets.nagios.com/downloads/nagi ... g_SNMP.pdf

Re: Monitor Linux

Posted: Fri Jan 09, 2015 3:51 pm
by eloyd
I would argue that monitoring via SNMP is more complex than monitoring via NRPE. :-)

Re: Monitor Linux

Posted: Fri Jan 09, 2015 4:23 pm
by JohnFLi
Eloyd
When you say
One of the easiest ways it to put the modules on the remote Linux box and then use check_by_ssh to check them from the Nagios host.
What modules do you mean?

Re: Monitor Linux

Posted: Fri Jan 09, 2015 4:26 pm
by eloyd
You have to compile the Nagios plugins on the remote linux host (or compile them on a Linux host that has the same OS version and copy them). Things like check_cpu, check_disk, check_whatever. Those are the modules (or plugins). You can then call them via check_by_ssh on the Nagios host.

Re: Monitor Linux

Posted: Fri Jan 09, 2015 4:56 pm
by JohnFLi
Part of the install instructions I wrote for myself includes:

wget https://www.nagios-plugins.org/download ... 2.0.tar.gz

are those the plugins you mentioned?

Re: Monitor Linux

Posted: Fri Jan 09, 2015 5:15 pm
by eloyd
Yes!

Re: Monitor Linux

Posted: Mon Jan 12, 2015 10:47 am
by slansing
Let us know how you get along with this, we're more than happy to answer any questions you have.

Re: Monitor Linux

Posted: Wed Jan 21, 2015 5:02 pm
by JohnFLi
All seems to be working well.
You can close this item