CHECK_NRPE: Error solution
CHECK_NRPE: Error solution in Nagios.
As mentioned in my earlier blog entry, we need to follow the steps as it is and make sure that the error is not coming now. But in my case the error was popping up even after that resolution in another linux server.
Following is another solution which I could relate to,
1. Navigate to NRPE daemon process file, /etc/xinetd.d/nrpe
2. Open in VI editor, vi /etc/xinetd.d/nrpe
3. Following are contents of the file as shown after installation of NRPE agent in Linux machine.
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
}
4. There are different key/value pairs in this file and one of the attribute is, server
5. Check the correct path of the server key value, /usr/local/nagios/bin/nrpe
6. Make sure that nrpe executable file exists in the /usr/local/nagios/bin directory.
7. In my case not sure why it happened, nrpe file was not available in that location and Nagios was not able to reach out the same. I have manually copied the file from another Linux machine where NRPE was available and then Nagios was able to find the NRPE agent.
