Page 1 of 1

[Nagios-devel] notification inheritance

Posted: Mon May 24, 2010 3:40 pm
by Guest
This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_ascension.private.dragonsdawn.net-20615-1274719222-0001-2
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

The documentation for object inheritance[1] indicates that where a
notification_period is not available for a service, the
notification_period from the associated host will be implicitly inherited.

In my nagios configuration, I have a number of services which are
applied to hostgroups. Rather than inheriting any notification period,
each service has a "NULL" notification period which is treated as a
'24x7' period. With the attached patch, nagios will check for a NULL
period and use the period from the associated host as the documentation
states will happen.

I have no idea whether or not similar issues exist with the other
implied inheritance values.


1: http://nagios.sourceforge.net/docs/3_0/ ... tance.html

--=_ascension.private.dragonsdawn.net-20615-1274719222-0001-2
Content-Type: text/plain; name="nagios-inherit-notification.patch";
charset=iso-8859-1
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="nagios-inherit-notification.patch"

LS0tIG5hZ2lvcy0zLjIuMS9iYXNlL25vdGlmaWNhdGlvbnMuYy5vcmlnCTIwMTAtMDUtMjIg
MjA6NTc6MjUuMDMwMDAzNTQ5IC0wNzAwCisrKyBuYWdpb3MtMy4yLjEvYmFzZS9ub3RpZmlj
YXRpb25zLmMJMjAxMC0wNS0yMiAyMTo1MDozMC4zOTcyNTM3NDkgLTA3MDAKQEAgLTI5NCw2
ICsyOTQsNyBAQAogLyogY2hlY2tzIHRoZSB2aWFiaWxpdHkgb2Ygc2VuZGluZyBvdXQgYSBz
ZXJ2aWNlIGFsZXJ0ICh0b3AgbGV2ZWwgZmlsdGVycykgKi8KIGludCBjaGVja19zZXJ2aWNl
X25vdGlmaWNhdGlvbl92aWFiaWxpdHkoc2VydmljZSAqc3ZjLCBpbnQgdHlwZSwgaW50IG9w
dGlvbnMpewogCWhvc3QgKnRlbXBfaG9zdDsKKwl0aW1lcGVyaW9kICp0ZW1wX3BlcmlvZDsK
IAl0aW1lX3QgY3VycmVudF90aW1lOwogCXRpbWVfdCB0aW1lcGVyaW9kX3N0YXJ0OwogCQpA
QCAtMzI0LDggKzMyNSwxNCBAQAogCQlyZXR1cm4gRVJST1I7CiAJICAgICAgICB9CiAKKwkv
KiBpZiB0aGUgc2VydmljZSBoYXMgbm8gbm90aWZpY2F0aW9uIHBlcmlvZCwgaW5oZXJpdCBv
bmUgZnJvbSB0aGUgaG9zdCAqLworCXRlbXBfcGVyaW9kID0gc3ZjLT5ub3RpZmljYXRpb25f
cGVyaW9kX3B0cjsKKwlpZih0ZW1wX3BlcmlvZCA9PSBOVUxMKXsKKwkJdGVtcF9wZXJpb2Qg
PSBzdmMtPmhvc3RfcHRyLT5ub3RpZmljYXRpb25fcGVyaW9kX3B0cjsKKwl9CisKIAkvKiBz
ZWUgaWYgdGhlIHNlcnZpY2UgY2FuIGhhdmUgbm90aWZpY2F0aW9ucyBzZW50IG91dCBhdCB0
aGlzIHRpbWUgKi8KLQlpZihjaGVja190aW1lX2FnYWluc3RfcGVyaW9kKGN1cnJlbnRfdGlt
ZSxzdmMtPm5vdGlmaWNhdGlvbl9wZXJpb2RfcHRyKT09RVJST1IpeworCWlmKGNoZWNrX3Rp
bWVfYWdhaW5zdF9wZXJpb2QoY3VycmVudF90aW1lLHRlbXBfcGVyaW9kKT09RVJST1Ipewog
CiAJCWxvZ19kZWJ1Z19pbmZvKERFQlVHTF9OT1RJRklDQVRJT05TLDEsIlRoaXMgc2Vydmlj
ZSBzaG91bGRuJ3QgaGF2ZSBub3RpZmljYXRpb25zIHNlbnQgb3V0IGF0IHRoaXMgdGltZS5c
biIpOwogCg==
--=_ascension.private.dragonsdawn.net-20615-1274719222-0001-2--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]