In the example you give you only have one service on the host. In that case, I have a simple answer for you!
host{
name http_server
check_command check_http
}
This will make the status of the HOST depend on the status of the command.
If you have multiple services you want to join together, here is an approach to consider, but I am not sure if it will work.
- Create a new service representing the overall state of the machine. It doesn't much matter what its check_command actually is - perhaps check_dummy?
- Create a set of ServiceDependency objects that make that new service depend on all the other services on the host you are interested. So, when they fail, this service also fails (or is in warning or unknown, or whatever you prefer.)
- Make this new service the check_command for the host.
The last step I am unsure about. It requires passing a service as a command to check_command, and I don't know if that is really legal.