NRPE Chcek_Memory on Linix

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
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: NRPE Chcek_Memory on Linix

Post by kwhogster »

I made the changes to

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

restarted the pi

same results No handler for command: check_mem
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRPE Chcek_Memory on Linix

Post by Box293 »

How is the nrpe service supposed to be started on the Pi ?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: NRPE Chcek_Memory on Linix

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRPE Chcek_Memory on Linix

Post by Box293 »

Please paste the contents of the file /etc/init.d/nagios-nrpe-server
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: NRPE Chcek_Memory on Linix

Post 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#
Attachments
nagios-nrpe-server.txt
Nagios-nrpe-server file
(2.02 KiB) Downloaded 224 times
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE Chcek_Memory on Linix

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked