[PATCH] new feature: automatic services for hosts

Hendrik BŠäcker andurin at process-zero.de
Thu Nov 20 22:06:41 CET 2008


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



Ignacio Goyret schrieb:
> At 07:00 AM 11/19/2008 +0100, Hendrik BŠäcker wrote:
>>> The patch adds a new directive "services" to the "host" definitions.
>>> This new directive lists one or more "service" templates which
>>> are used to automatically create "service" definitions for
>>> the host.
>> I've just did a fast read on your patch. Nice work that you patched the
>> documentiotion, too.
> 
> Thanks.
> 
> BTW, after I sent the patch, my nagios servers started abending.
> It seems that I "cleaned" up the patch too much. :-(
> I'll send an updated patch later in the week, once I'm 100%
> positive that it will be ok. I even found a better place to do
> the auto-instantiation that allows me to handle host templates
> as well.
> 
I wait for the new one ;)

> 
> Let me give you an example. We have a few dozen NetApps.
> All these netapps have the exact same function: file servers.
> But each one has a different number of volumes defined and in some
> cases, the volume names are not even consistent: eg, one of the
> netapps has vol0, vol1 and vol3 defined (vol2 was removed a while
> back) while others have the sequence vol0, vol1, vol2 and vol3;
> others have a single volume and others have a much larger number
> of volumes.
> 
Yes, you should build groups of same services and bind them to one
specific hostgroup representating this group of services. In your case
with more differences in the underlying group of services (I don't want
to say servicegroups ;) a more atomic way is usefull.

> If I were to use hostgroups, I would have to define a hostgroup
> per volume name, but then I'd lose the possibility of
> classification by function (well, not _lose_ but it would get
> clouded among hundreds of artifact hostgroups, required only
> by the config files).
> 
> Makes sense?

That was a nice speaking example.
Please send your patch and some config examples, so that we are able to
reproduce your enhancements.

If you don't break anything I will queue the enhancement into the
nagios-patch-queue.

Regards,
Hendrik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkkl0WEACgkQlI0PwfxLQjnUtACcCKEn1P/C1AKGYKnnuVq1WcOe
JR0An3UilUc/QrThMIVP/J1emZGu/4yw
=70eZ
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list