serviceescalations question

Marc Powell marc at ena.com
Thu Jun 4 20:22:42 CEST 2009


On Jun 4, 2009, at 9:35 AM, Matt Nelson wrote:

> I would like to apply this serviceescalation to all services.   
> Anyway to say:
>
> service_description     *
>
> this does not work ---^^^^
>
> define serviceescalation{
>         hostgroup_name          All Hosts
>         service_description    (I HAVE TO SPECIFY THIS FOR EACH  
> SERVICE...)
>         contact_groups          managers
>         first_notification      5
>         last_notification       0
>         notification_interval   60
> }

Specific example at http://nagios.sourceforge.net/docs/3_0/objecttricks.html#serviceescalation 
. You must have 'use_regexp_matching' enabled --

All Hosts:
If you want to create identical service escalations for services of  
the same name/description that are assigned to all hosts that are  
defined in your configuration files, you can use a wildcard in the  
host_name directive. The definition below would create a service  
escalation for all services called SOMESERVICE on all hosts that are  
defined in your configuration files. All the instances of the service  
escalation would be identical (i.e. have the same contact groups,  
notification interval, etc.).

	define serviceescalation{
		host_name		*
		service_description	SOMESERVICE
		other escalation directives ...
		}

There's also an example for all hosts in specific hostgroups.

--
Marc


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list