We are using SNMP to monitor most of our Linux infrastructure.
To avoid raising and sending multiple alerts if SNMP failed or stopped we defined servicedependencies, example:
Code: Select all
define servicedependency {
dependent_host_name server1.example.com
dependent_service_description atd,Cron,Disk Monitor,ntpd,syslog,sysstat,xinet
host_name server1.example.com
service_description SNMP
inherits_parent 1
execution_failure_criteria w
notification_failure_criteria w,u,c
}Code: Select all
define servicedependency {
dependent_host_name server1.example.com
dependent_service_description Current Users,Disk Monitor /boot,Load Average
host_name server1.example.com
service_description NRPE
inherits_parent 1
execution_failure_criteria w
notification_failure_criteria w,u,c
}
I understand that one way to overcome this is:
Code: Select all
CCM -> Advanced -> Service Dependencies -> Add New -> and then use different config nameIs there another way to fix this by being able to define multiple service dependencies for a host?
Thanks in advance.