Service check warnings/errors
Posted: Thu Jan 28, 2016 10:29 pm
Hi,
I"m trying to setup Nagios in our environment and have run into a few teething issue with monitoring services on client servers. I've setup the Nagios monitoring server (v4.1.1) fine and followed the instructions http://www.tecmint.com/how-to-add-linux ... ng-server/ to add linux clients. Nagios can tell the server is 'up' but the services are all returning warnings:
'(No output on stdout) stderr: Could not resolve hostname -c: Temporary failure in name resolution'
Sometimes the error for a service may change to '(No output on stdout) stderr: Could not resolve hostname -c: Name or service not known' but will eventually change back to the first error.
As far as I can tell, DNS resolution works fine (I setup entries in our DNS and both hosts can resolve each other). I even added an entry for the remote host in the hosts files of the Nagios monitoring server. Nslookup returns the expected output (forward and reverse)
Any ideas what might be causing this? I thought it might be the hostname format in the hosts.cfg or services.cfg (I used a short hostname in there - I don't have any choice with this because if I put FQDN hostname in there, the Nagios service returns errors and will not start)
The Nagios monitoring server is CentOS7, as is the remote host. They are both virtual servers.
Any ideas about how to troubleshoot this? Any help will be appreciated. I'm sure it's something simple I've overlooked as googling this error hasn't returned many hits.
Cheers,
timbo
I"m trying to setup Nagios in our environment and have run into a few teething issue with monitoring services on client servers. I've setup the Nagios monitoring server (v4.1.1) fine and followed the instructions http://www.tecmint.com/how-to-add-linux ... ng-server/ to add linux clients. Nagios can tell the server is 'up' but the services are all returning warnings:
'(No output on stdout) stderr: Could not resolve hostname -c: Temporary failure in name resolution'
Sometimes the error for a service may change to '(No output on stdout) stderr: Could not resolve hostname -c: Name or service not known' but will eventually change back to the first error.
As far as I can tell, DNS resolution works fine (I setup entries in our DNS and both hosts can resolve each other). I even added an entry for the remote host in the hosts files of the Nagios monitoring server. Nslookup returns the expected output (forward and reverse)
Any ideas what might be causing this? I thought it might be the hostname format in the hosts.cfg or services.cfg (I used a short hostname in there - I don't have any choice with this because if I put FQDN hostname in there, the Nagios service returns errors and will not start)
The Nagios monitoring server is CentOS7, as is the remote host. They are both virtual servers.
Any ideas about how to troubleshoot this? Any help will be appreciated. I'm sure it's something simple I've overlooked as googling this error hasn't returned many hits.
Cheers,
timbo