Different notifications times for same service on different hosts?

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Sep 29 02:56:07 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28/09/09 12:33 PM, Glyn Astill wrote:
> --- On Mon, 28/9/09, Mark Gius <mgius at createspace.com> wrote:
> 
>> notification_period inherited from the host only applies if
>> you have NO 
>> notification_period defined.  Do you have some master
>> service template 
>> that defines a default notification_period for services (I
>> know we do). 
>>
>> You could use a custom variable attached to the host and
>> then set the 
>> notification period with
>>
>> notification_period $_HOSTCUSTOMNOTIFICATIONPERIOD$
>>
>> or similar.  However, if you'd like to do this sort of
>> thing on a wide 
>> scale I'd reconfigure nagios to use the builtin inheritance
>> rather than 
>> trying to re-implement it using custom object vars
>>
>> -Gius
>>
> 
> Aha, thats it then. notification_period was defined in templates.cfg and after commenting it out it's now getting inherited from the host.

I finally found where theyy define what is inherited from where...
useful tip!

Normally you should be able to undefine inherited options with the
special "null" value. ex:

define service {
  description         blah
  ...
  notification_period null
  use                 service_template
}

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKwVsn6dZ+Kt5BchYRAm12AJ4/orkKETUbPwsaIYUqhf0uWmCnIQCfWxQB
kzi+ODha1xHHd6/jXA21s2E=
=uKD8
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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