Event handler to propogate state
Posted: Mon Mar 03, 2014 6:01 am
Hi all!
We have a requirement and wanted to get opinion from the experts out here.
Cluster
--- Host
------ Disk (Each of the physical disk is configured as a separate service, attached to the host)
Now if one of the disk state changes to Critical, the Host state should change to Warning or Critical depending on the number of disks on that host. And if host state changes to Critical, the cluster state should change to Critical, again depending on the state of other hosts (only if all hosts are CRITICAL).
We were thinking of achieving this via event handlers
So on Disk event handler, check the other disks' state and then use external command queue to change host state if required..and so on.
Is this the right way to handle this requirement? We looked at check_host_cluster plugin, but the question is if the disk and host check plugins are passive checks (NSCA based), how do we change state of another service when one of the dependent service state changes?
We have a requirement and wanted to get opinion from the experts out here.
Cluster
--- Host
------ Disk (Each of the physical disk is configured as a separate service, attached to the host)
Now if one of the disk state changes to Critical, the Host state should change to Warning or Critical depending on the number of disks on that host. And if host state changes to Critical, the cluster state should change to Critical, again depending on the state of other hosts (only if all hosts are CRITICAL).
We were thinking of achieving this via event handlers
So on Disk event handler, check the other disks' state and then use external command queue to change host state if required..and so on.
Is this the right way to handle this requirement? We looked at check_host_cluster plugin, but the question is if the disk and host check plugins are passive checks (NSCA based), how do we change state of another service when one of the dependent service state changes?