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.
NRPE on Amazon Linux
Re: NRPE on Amazon Linux
- Attachments
-
- nrpe.conf
- (497 Bytes) Downloaded 366 times
Re: NRPE on Amazon Linux
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NRPE on Amazon Linux
tgriep 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
Nothing changes. I still can't get nrpe to run. Unrecognized service:
Code: Select all
[root@ip-xx-xx-xx-xx ~]# service nrpe start
nrpe: unrecognized service
[root@ip-xx-xx-xx-xx ~]#
Re: NRPE on Amazon Linux
That error is caused by a missing service config file on your system but if the software compiled on your server, you should be able to start NRPE in daemon mode by running.
Did this run on your server?
Code: Select all
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NRPE on Amazon Linux
It doesn't show anything :
Then I test nrpe:
Code: Select all
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
Then I test nrpe:
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
Re: NRPE on Amazon Linux
Run the ps command to see if it is running in on the server.
Did you configure the firewall to allow port 5666 inbound traffic?
Code: Select all
ps -ef |grep nrpe
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NRPE on Amazon Linux
This is what I get:
Code: Select all
root 21423 21185 0 15:25 pts/0 00:00:00 grep nrpe
Re: NRPE on Amazon Linux
The output of the PS command doesn't show the NRPE Agent running at all.
You would have to look at the log files to see why it didn't start up when you manually ran the command.
Take a look in the /var/log/messages log file to see why it didn't start up.
Or you can just install and run the older pre-compiled version of the Agent.
You would have to look at the log files to see why it didn't start up when you manually ran the command.
Take a look in the /var/log/messages log file to see why it didn't start up.
Or you can just install and run the older pre-compiled version of the Agent.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NRPE on Amazon Linux
I don't see anything in the logs.
but I still get the connection refused error.
I guess I have no other choice than installing the older version.
Code: 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
I guess I have no other choice than installing the older version.
Re: NRPE on Amazon Linux
Try running it like this and see if it stays running on the system.
Code: Select all
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
Be sure to check out our Knowledgebase for helpful articles and solutions!