Multiple service dependencies
Posted: Thu Sep 06, 2012 3:07 am
Dear Nagios support,
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:
Now, we are going to implement NRPE too to monitor additional services. Again, if NRPE fails we don't want to raise multiple alerts but only one stating that NRPE has failed. I tried to import the service dependency file with following config:
When I checked servicedependencies.cfg file it kept only the first version and NRPE dependency was missing. I tried again by putting both the configurations in the same file and imported again. Unfortunately, it did not work this time too and kept only the SNMP dependency version.
I understand that one way to overcome this is:
but this is not a good solution in my case since we have got over 500 servers and it would take lifetime to define all the service dependencies.
Is there another way to fix this by being able to define multiple service dependencies for a host?
Thanks in advance.
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.