Help on creating Servicedepency
Posted: Sat Aug 25, 2012 3:33 am
Hi All,
I am trying to create a service dependency but it seems not to work.
The setup:
I have a backup server (host_name idefix) which has a seperate partation for a group of virtual servers (host_group vservers).
I have a service check "Space Backup" which checks the resource on the backup host but is assigned to the vserver host. Now, when the backup server goes down, I get a service failure in all of my vserver hosts :/
As it seems to be impossible to nail a service dependency to a host state, I used the "SSH" Service on the backup server as master service, here is the relevant part of the config so far:
Current state: I put down the backup server for maintenance, the SSH service is on "CRITICAL" state, the host is in scheduled downtime, so I wont get any notifications from the master host.
Anyway, I get notifications from each host in the vserver group about the failed check on "Space Backup".
What am I doing wrong?
Oliver
I am trying to create a service dependency but it seems not to work.
The setup:
I have a backup server (host_name idefix) which has a seperate partation for a group of virtual servers (host_group vservers).
I have a service check "Space Backup" which checks the resource on the backup host but is assigned to the vserver host. Now, when the backup server goes down, I get a service failure in all of my vserver hosts :/
As it seems to be impossible to nail a service dependency to a host state, I used the "SSH" Service on the backup server as master service, here is the relevant part of the config so far:
Code: Select all
define service {
use prio3
hostgroup vservers
servicegroups overlays, backup
normal_check_interval 60
service_description Space Backups
check_command check_backupspace
normal_check_interval 60
}
define servicedependency {
host_name idefix
service_description SSH
dependent_hostgroup_name vservers
dependent_service_description Space Backups
execution_failure_criteria c
notification_failure_criteria c
}
Anyway, I get notifications from each host in the vserver group about the failed check on "Space Backup".
What am I doing wrong?
Oliver