Page 1 of 1

Noob needs commands to monitor a Raspberry Pi

Posted: Sat Mar 21, 2015 10:26 am
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

Re: Noob needs commands to monitor a Raspberry Pi

Posted: Sat Mar 21, 2015 2:22 pm
by rhassing
Can you perform the check local on the PI?

Re: Noob needs commands to monitor a Raspberry Pi

Posted: Sat Mar 21, 2015 8:04 pm
by edlentz
The command I mentioned was from the Pi

Re: Noob needs commands to monitor a Raspberry Pi

Posted: Sun Mar 22, 2015 9:37 pm
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?