Firstly, have you added correct IP address of your remote Linux host in hosts.cfg file? And also have you placed correct services to monitor in services.cfg file.
Secondly, are you allowed Nagios Server IP address in remote server Nrpe.cfg file under xinetd directory?
Thirdly, are you opened 5666 port on remote Linux server, so that Nagois can communicate?
If all above are done then make sure you have installed Nrpe plugin correctly under remote Linux hostā¦
@dvrkittu When requesting such help it would be nice to provide some additional error messages or logs that you may obtain. This can really help troubleshoot your issue.
Its showing now in nagios web ,after re-checking all the steps but encountered new problem.
In nagios web the remote machine status is "No output on stdout) stderr: Could not resolve hostname XXX.XX.XX.XXX Name or service not known "
troubleshooting steps did:
1.Checked in the ācommands.cfgā ,that it is hostaddress only.
2.Log file entry "[1439029914] SERVICE NOTIFICATION: nagiosadmin;tecmint;Current Users;WARNING;not
ify-service-by-email;(No output on stdout) stderr: Could not resolve hostname
XXX.XX.XX.XXX : Name or service not known
"
3. As I am using ec2 instance ,so wherever we need to mention IP address - public or private we can keep?
Did your remote Linux host reachable from Nagios Monitoring server? Have opened port 5666 on both machines? Have placed correct IP address in hosts.cfg file?
Can your NRPE plugin communicating with remote NRPE plugin on port 5666?
Can you cross check with netstat command that nrpe listening on Port 5666 on both machinesā¦
This means your NRPE is not working, you need to cross check nrpe installation and also you correctly configured nrpe under xinetd serviceā¦can you post the output of following command on the remote Linux hostā¦
Then you need to only cross check your hosts.cfg file and services.cfg file and also make sure you added both file locations to nagios.cfg fileā¦or if you donāt know how to do just send me these three files at admin@tecmint.com, i will modify and resend to youā¦
I did cross check all the files in hosts.cfg ,services,cfg and nagios.cfg everything seems to be fine.
But to be on same page I had mailed to admin@tecmint.com.