can’t read /etc/xinetd.d/nrpe: No such file or directory
can’t read /etc/xinetd.d/nrpe: No such file or directory pops up during installation. Not at all sure why this file is not existing even I took the installation file from service repositories. It was checking for /etc/xinet.d/nrpe file and this is not existing at all.
One of the Nagios support link that explains this clearly is below,
https://support.nagios.com/forum/viewtopic.php?f=6&t=31944
I took out a file from one of the other machines and then created a new file on the Linux server where I was facing problems. Following are the contents of the file that I have copied,
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg –inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1
}
We have to edit them accordingly to our requirements (referring to only_from directive). After copying the file installation succeeded and could monitor the linux environment.