Page 1 of 1
Service parent to host
Posted: Tue Jun 30, 2015 1:01 pm
by snapon_admin
Does anyone know of a way to set a service as a parent to several hosts? Is this currently possible with Nagios?
Re: Service parent to host
Posted: Tue Jun 30, 2015 1:13 pm
by jdalrymple
Service as a Nagios construct cannot be set as the parent of a host. It's just not part of the logic.
Host dependency on service - that's a nogo also
The hack is to turn your service into a host - if you wish to have a hack. Just set your host check_command to whatever you would have used in the service. This does adjust the state logic though:
0 - Up
1 - Up
2 - Down or Unreachable
3 - Down or Unreachable
There is no easy (built in) way of doing host dependent on service.