Page 7 of 7
Re: NRPE Chcek_Memory on Linix
Posted: Sun Aug 28, 2016 9:13 pm
by kwhogster
I made the changes to
/usr/local/nagios/etc/nrpe.cfg
restarted the pi
same results No handler for command: check_mem
Re: NRPE Chcek_Memory on Linix
Posted: Sun Aug 28, 2016 10:29 pm
by Box293
How is the nrpe service supposed to be started on the Pi ?
Re: NRPE Chcek_Memory on Linix
Posted: Sun Aug 28, 2016 10:46 pm
by kwhogster
root@raspberrypi:/home/pi# service nagios-nrpe-server status
● nagios-nrpe-server.service - LSB: Start/Stop the Nagios remote plugin execution daemon
Loaded: loaded (/etc/init.d/nagios-nrpe-server)
Active: active (exited) since Sun 2016-08-28 22:08:35 EDT; 1h 36min ago
Process: 475 ExecStart=/etc/init.d/nagios-nrpe-server start (code=exited, status=0/SUCCESS)
Aug 28 22:08:34 raspberrypi nrpe[533]: Starting up daemon
Aug 28 22:08:34 raspberrypi nagios-nrpe-server[475]: Starting nagios-nrpe: na...
Aug 28 22:08:34 raspberrypi nrpe[533]: Bind to port 5666 on 0.0.0.0 failed:...e.
Aug 28 22:08:35 raspberrypi systemd[1]: Started LSB: Start/Stop the Nagios r....
Aug 28 23:44:08 raspberrypi systemd[1]: Started LSB: Start/Stop the Nagios r....
Hint: Some lines were ellipsized, use -l to show in full.
root@raspberrypi:/home/pi#
not sure but this is the status of the service
Re: NRPE Chcek_Memory on Linix
Posted: Mon Aug 29, 2016 2:03 am
by Box293
Please paste the contents of the file /etc/init.d/nagios-nrpe-server
Re: NRPE Chcek_Memory on Linix
Posted: Mon Aug 29, 2016 6:17 am
by kwhogster
root@raspberrypi:/home/nagios# ls -ltr /etc/init.d/nagios-nrpe-server
-rwxr-xr-x 1 root root 2073 Jul 22 2014 /etc/init.d/nagios-nrpe-server
root@raspberrypi:/home/nagios#
Re: NRPE Chcek_Memory on Linix
Posted: Mon Aug 29, 2016 11:02 am
by lmiltchev
As Troy said, you have two separate instances of NRPE installed on the Pi.
This is not a supported setup!
On Mon Aug 22, 2016 6:37 pm, you showed us the following output of "ps axuw | grep nrpe":
root@raspberrypi:~# ps axuw | grep nrpe
nagios 2927 0.0 0.4 4256 1964 ? Ss Aug19 0:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
so we started modifying the "/etc/nagios/nrpe.cfg" in order to fix/troubleshoot the issue.
However, on Sun Aug 28, 2016 7:24 pm you showed us this:
root@raspberrypi:~# ps -ef | grep nrpe
nagios 501 1 0 Aug26 ? 00:00:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
At this point, I believe that you need to wipe your Pi box, and start clean. Install NRPE and the Nagios plugins on the Pi. If you are still having issues with this box (after a "fresh" install of NRPE and Nagios plugins), open a new thread on the forum.
I am locking this topic.