Service parent to host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Service parent to host

Post 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?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Service parent to host

Post 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.
Locked