Monitor Linux

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.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Monitor Linux

Post 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?
Everybody is somebody else’s weirdo
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Monitor Linux

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Monitor Linux

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Monitor Linux

Post by eloyd »

I would argue that monitoring via SNMP is more complex than monitoring via NRPE. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Monitor Linux

Post 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?
Everybody is somebody else’s weirdo
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Monitor Linux

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Monitor Linux

Post 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?
Everybody is somebody else’s weirdo
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Monitor Linux

Post by eloyd »

Yes!
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitor Linux

Post by slansing »

Let us know how you get along with this, we're more than happy to answer any questions you have.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Monitor Linux

Post by JohnFLi »

All seems to be working well.
You can close this item
Everybody is somebody else’s weirdo
Locked