Page 1 of 1

Service Escalation setup

Posted: Fri Feb 20, 2015 6:26 pm
by JohnFLi
I am trying to setup a service escalation for my SQL machines.

I create a new service escalation, give it a name, the numbers, who to contact

Then I add the various hosts managed hosts section
Then managed Service, I add the various SQL services (all differently named)

When I go to apply I get the following error

Code: Select all

Error: Could not find a service matching host name 'SQL9' and description 'G1PPSRT03 SQL Service' (config file '/usr/local/nagios/etc/serviceescalations.cfg', starting on line 82
The host SQL9 has the SQL service named 'SQL9 -MSSQL ECOMSYNC Service'
While the service description 'G1PPSRT03 SQL Service' is with the host named G1PPSRT03

So if I take that host and service that it complained about out, and try to apply again, it complains about another host/service pair.

Am I just not getting how to set this up right??

Re: Service Escalation setup

Posted: Fri Feb 20, 2015 8:09 pm
by Box293
When using multiple hosts AND you individually specify the services, each host must have the identically named service for this to work.

For example:

define serviceescalation {
host_name windows01,localhost
service_description Drive C: Disk Usage,Root Partition
first_notification 3
last_notification 7
notification_interval 1
escalation_period 24x7
escalation_options c,
}

This WON'T work as I know my windows01 host doesn't have a 'Root Partition' service and my localhost doesn't have a 'Drive C: Disk Usage' service.

You will need to create a separate escalation definition per host.

When using multiple hosts AND you specify all services (*), nagios determines that services are for what hosts and it works.

Re: Service Escalation setup

Posted: Tue Feb 24, 2015 11:37 am
by JohnFLi
I was afraid of that. :o :o :o :o

Guess you can close this item

Re: Service Escalation setup

Posted: Tue Feb 24, 2015 12:30 pm
by tgriep
OK, we will close this for you.