Service Dependency config help

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Service Dependency config help

Post 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
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Service Dependency config help

Post by kwhogster »

Forgot to define the services first.


All Good

Please lock this one.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Service Dependency config help

Post by tmcdonald »

I'll be closing this up now, but feel free to open another thread if you need anything in the future!
Former Nagios employee
Locked