Page 1 of 1

Service Dependency config help

Posted: Sat Mar 17, 2018 11:51 am
by kwhogster
Nagios Core 4.34

Error: Could not find a service matching host name 'TGCS013' and description 'Veeam Backup Enterprise Manager' (config file '/usr/local/nagios/etc/objects/servicedependency.cfg', starting on line 25)
Error: Could not find a service matching host name 'TGCS014' and description 'MSSQLSERVER' (config file '/usr/local/nagios/etc/objects/servicedependency.cfg', starting on line 25)
Error: Could not expand master service(s) (config file '/usr/local/nagios/etc/objects/servicedependency.cfg', starting at line 25)
Error: Could not expand dependent service(s) (at config file '/usr/local/nagios/etc/objects/servicedependency.cfg', starting on line 25)
Error processing object config files!

Code: Select all

define servicedependency{
    host_name                           TGCS013
    service_description                 Veeam Backup Enterprise Manager
    dependent_host_name                 TGCS014
    dependent_service_description       MSSQLSERVER
    execution_failure_criteria          w,u
    notification_failure_criteria       w,u,c
    }

Host TGCS014 Runs SQL Server
Host TGCS013 has a service that depends on the SQL Server for being up and running

Thanks

Tom

Re: Service Dependency config help

Posted: Sun Mar 18, 2018 6:54 pm
by kwhogster
Forgot to define the services first.


All Good

Please lock this one.

Re: Service Dependency config help

Posted: Mon Mar 19, 2018 10:25 am
by tmcdonald
I'll be closing this up now, but feel free to open another thread if you need anything in the future!