Hostgroups and servicegroups escalation not working
Posted: Mon Sep 19, 2016 2:48 pm
Simple service escalations using hostgroups and servicegroups in Nagios Core 4.1.1 isn't working. I see conflicting results in the forums that it should or shouldn't. Documentation at https://assets.nagios.com/downloads/nag ... escalation says nothing about a servicegroup_name or servicegroups parameter (source code shows it's looking for servicegroup, servicegroups, or servicegroup_name).
However, documentation at https://assets.nagios.com/downloads/nag ... escalation says it's possible (search for "All Services In Multiple Servicegroups").
So if I do the following, I get a valid escalation (yes, "eloyd" is a valid contact):
If I change service_description to servicegroup_name or servicegroups, I get an invalid config check result:
So which is it, and how can I get it to work? And why isn't it spewing out an appropriate error during the verification run?
However, documentation at https://assets.nagios.com/downloads/nag ... escalation says it's possible (search for "All Services In Multiple Servicegroups").
So if I do the following, I get a valid escalation (yes, "eloyd" is a valid contact):
Code: Select all
define serviceescalation{
hostgroup_name public
service_description Port:80
first_notification 2
last_notification 0
notification_interval 30
contacts eloyd
}
Code: Select all
define serviceescalation{
hostgroup_name public
servicegroups Ports
first_notification 2
last_notification 0
notification_interval 30
contacts eloyd
}
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.