Noob needs commands to monitor a Raspberry Pi

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
edlentz
Posts: 7
Joined: Sun Jun 22, 2014 8:21 am

Noob needs commands to monitor a Raspberry Pi

Post by edlentz »

Hi all

I have Nagios core 4 running at my office. I have a Raspberry Pi at my home with NRPE on it. I can run the command on the Nagios server at the office to query the Pi and I get back the version of the NRPE, so I know at least that much is working.

I used this tutorial to get NRPE running on the Pi.
http://www.tecmint.com/how-to-add-linux ... ng-server/

When I run this command
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_load

I get NRPE: Unable to read output.


Does anyone have any ideas what commands I need to use? I installed the NRPE-plugins and restarted NRPE

Thanks for any ideas you can share
User avatar
rhassing
Posts: 412
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Noob needs commands to monitor a Raspberry Pi

Post by rhassing »

Can you perform the check local on the PI?
Rob Hassing
Image
edlentz
Posts: 7
Joined: Sun Jun 22, 2014 8:21 am

Re: Noob needs commands to monitor a Raspberry Pi

Post by edlentz »

The command I mentioned was from the Pi
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Noob needs commands to monitor a Raspberry Pi

Post by Box293 »

On your Pi, a command is defined for "check_load".

This will be in:

/usr/local/nagios/etc/nrpe.cfg
or
/usr/local/nagios/etc/nrpe/common.cfg

How is this command defined?

What is the output of the command when run as the nagios user on the remote host?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked