As suggested I raised an enhancement request...
[*]One service cannot be dependent on one host, just on one (or more) service(s) and what we're talking about is making one or more services dependent on their host.
All the services I test with a given host are very specific to that host (ie most are wmi checks using check_wsc as the engine), memory utilisation, processor utilisation, service running, processes running, etc. It makes sence for us to consider services dependant on their host. In fact the vast majority of all the tests we have configured are of this type. The only tests outside of this are a small number of tests on a Microsoft Cluster, DHCP,DNS and AD Domain servers, which I agree would fall under this model.
Does this mean that a different service model or a modification of the current service model is required to satisfy these needs?
The model described in
http://nagios.sourceforge.net/docs/3_0/ ... ncies.html is more complex than we use, our needs are much more simpler.
In fact, are the above checks I have listed considered 'proper' services under this model?, hence, is the current model suitable for what I am trying to achieve?
The only way I could foresee to make this happen in a large network, would be to have dynamic discovery mechanism which would create all the parent / child relationships and update the config files accordingly. I cant see this happening any time soon.
[*]You could bypass the previous fact by creating a service whose status was the same of its host (using check_dummy $HOSTSTATUS$ as service check). However, and again based on documentation, you migth define one by one a service dependency rule between that service and all their "brothers" (the rest of services associated to the host).
I found the link
http://nagios.sourceforge.net/docs/3_0/ ... ncies.html confusing to follow for what I was trying to achieve. Using the following host and services below how would I code these to fit your solution? The objective; to force all services to unknown state if host is down.
define host {
use windows-podium ;
host_name BUS-1025-26_Lab_Podium;
check_command check-host-alive;
alias Lab_Podium ;
address 192.168.91.96 ;
hostgroups windows-podiaIPs;
}
# dummy service as suggested
define service {
use generic-service
check_command check_dummy $HOSTSTATUS$
hostgroups windows-podiaIPs
}
# example service.
define service {
use generic-service
service_description CPU Detail
check_command check-wsc!cpu_detail!80%,90%
hostgroups windows-podiaIPs
}
... What happens to the dummy service ... what state will it be in if the host is down?
Regards
Liam