Service Escalations & matching based on service_description

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
mike.gomez
Posts: 1
Joined: Tue May 01, 2012 1:34 pm

Service Escalations & matching based on service_description

Post by mike.gomez »

Good afternoon folks! I'm having a bit of an issue with creating different sets of escalations for different services in Nagios Core 3.0.6 on RHEL 5.7. I have a globally defined set of escalations:

Code: Select all

# This is for notification escalations
define serviceescalation{
        host_name                       *
        service_description             *
        contact_groups                  everyone-group
        first_notification              4
        last_notification               0
        notification_interval           5
}

define hostescalation{
        host_name                       *
        contact_groups                  everyone-group
        first_notification              4
        last_notification               0
        notification_interval           5
}
That is supposed to take over on the 4th notification for a check if the first level guys don't acknowledge things. There are certain checks, though, that I want to *only* ever email a certain group, regardless of if it gets acknowledged. These are normally checks for things like disk space. I've created a service escalation definition that matches based on multiple service_description variables...but it doesn't seem to be working. Here's the more specific entry:

Code: Select all

define serviceescalation{
        host_name                       DBLOG001
        service_description             Disk Usage for C - Email,Disk Usage for T - Email,Disk Usage for V - Email
        contact_groups                  email-only-group
        first_notification              4
        last_notification               0
        notification_interval           15
}
I know that you can match on multiple service_descriptions within a single definition (http://nagios.sourceforge.net/docs/3_0/ ... ricks.html), and I've seen service_description match on entries that have whitespace (Disk Usage for C - Email), but I have not tried both before in the same escalation definition before, and it doesn't appear to be working. I cannot find any documentation on if this is supported or not. Has anyone gotten something like this to work before? Do I need to put the service_description variables in quotes, or am I just going to need to make separate service escalation definitions for each individual service_description that I want to match? I don't have a box that I can toy with, so I figured I'd ask around and see if anyone has run across this before. Thanks in advance for any assistance!

Mike
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Service Escalations & matching based on service_descript

Post by jsmurphy »

Try putting single quotes around the service descriptions, I've never attempted to do this before in Nagios Core but this seems like a situation for single quotes.
Locked