Refer to parent in host checks
Posted: Sun Apr 29, 2012 6:17 am
I am trying to write checks that refer to a parent. In its most simplistic form, that would mean a check where the host pings its parent
The reason I want to find an 'easy' way to do this is that I would only have to define a host as a child of a parent and the checks would "update". And more importantly, if I change the parent of a host to another one, it would start pinging that parent instead
I actually want to extend this in the end for more complex checks as well, such as I want to make a command based on check_by_ssh that would connect to the parent and probe the host (as the host is not directly reachable, and moves between various sites - aka parent firewalls), if anyone has a better way that would do as well! So in the end if that host moves to another site I just update it's parent and the probes now go via the new parent not the old one
Thanks
The reason I want to find an 'easy' way to do this is that I would only have to define a host as a child of a parent and the checks would "update". And more importantly, if I change the parent of a host to another one, it would start pinging that parent instead
I actually want to extend this in the end for more complex checks as well, such as I want to make a command based on check_by_ssh that would connect to the parent and probe the host (as the host is not directly reachable, and moves between various sites - aka parent firewalls), if anyone has a better way that would do as well! So in the end if that host moves to another site I just update it's parent and the probes now go via the new parent not the old one
Thanks