Linux and nrpe

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.
Locked
kaiserclaw
Posts: 15
Joined: Thu Dec 10, 2015 5:30 am

Linux and nrpe

Post by kaiserclaw »

Hi (again),

I have managed to learn nagios and have tested the monitoring of a few Windows servers. Now I have a Linux machine I want to try to monitor. On Windows machines, I have a small client software - Do Linux also need some form of client software? I've tried disk check via nrpe to host but I get "Connection refused by host" on all checks except ping.
Ports are open in the firewall so the firewall is not stopping checks.

Is there a manual for how to prepare a Linux machine for monitoring?
I Googled but have not found anything useful.

I can also add that I'm not familiar with the Linux command prompt. I have not worked much with it, just the usual basic commands, updates etc.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Linux and nrpe

Post by eloyd »

NRPE is an agent that runs on the remote Linux machine. It responds to requests from the Nagios server, executes checks, and returns the results. There are a lot of resources on how to get started using NRPE on Linux. Google is your friend, but you might want to start with looking at https://www.nagios.org/downloads/nagios-core-addons, because there are other options as well.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
kaiserclaw
Posts: 15
Joined: Thu Dec 10, 2015 5:30 am

Re: Linux and nrpe

Post by kaiserclaw »

Well.. I managed to download the NRPE package from nagios and installed it, edited nrpe.cfg and added my monitoring server IP to allowed hosts, restarted the nrpe service and it worked. Don't know if this is the right method?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Linux and nrpe

Post by eloyd »

You got it perfect!
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Linux and nrpe

Post by rkennedy »

Are we good to mark this thread as resolved and close it out?
Former Nagios Employee
Locked