Re: migrating nagios to new server causing CHECK_NRPE: Error
Posted: Mon Aug 17, 2015 12:26 pm
but still having
Code: Select all
CHECK_NRPE: Error receiving data from daemon. Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
CHECK_NRPE: Error receiving data from daemon. This means it's running daemonized and is why we needed to see the output of `ps -ef | grep nrpe.cfg` - the changes you maded to your inetd.conf file were of no use.sinkak wrote:i tried adding new server ip to one of the clients nrpe.cfg file. That removed the error.
Short of assuming the old IP - No.sinkak wrote:i have more than 100 hosts. i cant edit on each client.
Is there any thing i can do like that on server side so that it changes all clients config file?
Code: Select all
ubuntu@ip-10-0-10-149:~$ ps -ef | grep nrpe.cfg
nagios 23396 1 0 Aug17 ? 00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
ubuntu 26167 25827 0 15:18 pts/1 00:00:00 grep --color=auto nrpe.cfg
ubuntu@ip-10-0-10-149:~$Daemonizedsinkak wrote:/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
Run from inetdsinkak wrote:ubuntu@ip:~$ grep nrpe /etc/xinetd.d/nrpe
service nrpe
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
Code: Select all
/usr/local/nagios/etc/nrpe.cfg
/etc/nagios/nrpe.cfgCode: Select all
allowed_hosts=127.0.0.1, newserveripsinkak wrote:i tried adding new server ip to one of the clients nrpe.cfg file. That removed the error.
Code: Select all
CHECK_NRPE: Error - Could not complete SSL handshake.Code: Select all
CHECK_NRPE: Error receiving data from daemon. sinkak wrote:i have more than 100 hosts. i cant edit on each client.
Is there any thing i can do like that on server side so that it changes all clients config file?
jdalrymple wrote:Short of assuming the old IP - No.
Now would be a good time to implement some sort of centralized management of your configs though. To a lesser extent you could prevent this one small problem from happening again in the future by using a DNS name instead of an IP.