Configuration of escalation with servicegroup excluded

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
aww-yiss
Posts: 1
Joined: Mon Dec 09, 2013 8:12 am

Configuration of escalation with servicegroup excluded

Post by aww-yiss »

Hi All,

I'm dealing with a fairly large installation of nagios core 3.3.1 which has gotten a bit long in the tooth. We have some new service checks which we'd like to only notify our DEV teams via email, and not roll through the escalations to the on call admins. My thought was to add these new services to a service group, and then exclude that group from the service escalation configs. However nagios despite parsing the file correctly, it doens't seem to respect the exclusion. The notifications will still escalate even after excluding these, any thoughts? Example config below

Code: Select all

define serviceescalation {
        host_name               *
        hostgroup_name          *,!no-escalation
        service_description     *
        servicegroup_name       *,!no_escalation
        contact_groups          sysadmins,oncall,oncall-lvl2
        first_notification      2
        last_notification       0
        notification_interval   10
}

define servicegroup {
	servicegroup_name       no_escalation
	alias                   No escalation services
	notes				  "These services will not escalate beyond their initial notification"
	members			   cass-node-1,Cassandra Repair,cass-node-2,Cassandra Repair
}

define host {
    use         standard-linux-host
    host_name   cass-node-1
    alias       cass-node-1
    address     10.0.0.50
    hostgroups  +cassandra
}

define service {
    use                     generic-service
    hostgroup_name          cassandra
    service_description     Cassandra Repair
    active_checks_enabled   0
    passive_checks_enabled  1
    check_freshness         1
    # freshness_threshold set at 26 hours, to allow for some time variation
    freshness_threshold     93600
    check_command           no_sourcecheck_status
    normal_check_interval   5
    retry_check_interval    1
    max_check_attempts      1
    contact_groups          cassandra-admin
}

--
aww-yiss
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Configuration of escalation with servicegroup excluded

Post by sreinhardt »

Does the no-escalation hostgroup have the same hosts as the no-escalation servicegroup? Looking through, I believe hostgroups can be excluded, but not service groups, or at least nothing is specifically mentioned about excluding them as it is mentioned with hostgroups. (man thats a messy sentence) In fact, looking at the object definitions of service escalations, there is no definition options for service groups it seems, unless I am missing it. So you did define a hostgroup no-escalation as well, or just that one servicegroup?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked