Re: NRPE on Amazon Linux
Posted: Fri Mar 31, 2017 12:34 pm
See attached.tgriep wrote:Can you post the nrpe.cfg file from the /etc/init folder?
I have a feeling it is the wrong file.
Support for Nagios products and services
https://support.nagios.com/forum/
See attached.tgriep wrote:Can you post the nrpe.cfg file from the /etc/init folder?
I have a feeling it is the wrong file.
Code: Select all
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -ftgriep wrote:This is what the init script is trying to run.Can you run that command as root in a shell and see if it starts up?Code: Select all
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
Code: Select all
[root@ip-xx-xx-xx-xx ~]# service nrpe start
nrpe: unrecognized service
[root@ip-xx-xx-xx-xx ~]#
Code: Select all
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -fCode: Select all
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_load
connect to address 127.0.0.1 port 5666: Connection refused
connect to host localhost port 5666: Connection refused
Code: Select all
ps -ef |grep nrpeCode: Select all
root 21423 21185 0 15:25 pts/0 00:00:00 grep nrpeCode: Select all
nrpe[21779]: Starting up daemon
Apr 3 nrpe[21779]: Server listening on 0.0.0.0 port 5666.
Apr 3 nrpe[21779]: Server listening on :: port 5666.
Apr 3 nrpe[21779]: Listening for connections on port 5666
Apr 3 nrpe[21779]: Allowing connections from: xx.xx.xxx.xx
Code: Select all
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d