I made the changes to
/usr/local/nagios/etc/nrpe.cfg
restarted the pi
same results No handler for command: check_mem
NRPE Chcek_Memory on Linix
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: NRPE Chcek_Memory on Linix
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.
Re: NRPE Chcek_Memory on Linix
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
● 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
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: NRPE Chcek_Memory on Linix
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.
Re: NRPE Chcek_Memory on Linix
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#
-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
Re: NRPE Chcek_Memory on Linix
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":
However, on Sun Aug 28, 2016 7:24 pm you showed us this:
I am locking this topic.
On Mon Aug 22, 2016 6:37 pm, you showed us the following output of "ps axuw | grep nrpe":
so we started modifying the "/etc/nagios/nrpe.cfg" in order to fix/troubleshoot the issue.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
However, on Sun Aug 28, 2016 7:24 pm you showed us this:
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.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
I am locking this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!