I'm monitoring a server with Nagios. I've configured it like this:
host{
name http_server
}
service{
name check-http
host_name http_server
check_command check_http
}
What I'm trying to achieve is that when any of the services fail, the host falls under that state. This way I can monitor from the Status Map or have a better overview of the whole system.
Thanks!
Best Answer
hmmm.
I don't think its ideal to use the service monitoring as the host monitoring. A better solution might be to do a check on port 80 as the test for the host (if ping is not possible) and then a more specific check (e.g. for a 200 response or validating the content) in the HTTP check.