First of all I am pretty new to nagios and really like the product.
My System is working as expected but I have one issue with testing the dependencies.
I took the servicedependency from the documentation and configured as described.
Code: Select all
define servicedependency{
host_name TRUNK
service_description check-host-alive
dependent_host_name Database
dependent_service_description Unprocessed_queued_alerts
execution_failure_criteria c
notification_failure_criteria w,u,c,p
}
I get the Error Message:
referenced host 'DATABASE' does not exist in TRUNK.cfg:11
This makes sense because DATABASE is defined in a different config file.
Is there a solution for this to use service dependency with multi config files?
In other words:
Is there a way to use the host "DATABASE" which is configured in DATABASE.cfg in the config file TRUNK.cfg?