Re: [Nagios-devel] Mass define servicedependency for NRPE services
Posted: Wed Sep 02, 2009 11:58 am
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mathieu Gagné wrote:
> Hi,
>
> Thomas Guyot-Sionnest wrote:
>> Just add the host_name or hostgroup_name directive (you can put all
>> hostgroups for instance, or enable wildcards and use *) and you're set.
>
> Unfortunately, it doesn't work. This explains why I asked the
> mailinglist. If I do as you suggested, all NRPE based services will be
> depending on the NRPE service on ALL hosts. (not only their respective host)
>
> Here is my servicedependency definition:
>
> define servicedependency {
> hostgroup_name hosts-with-nrpe
> service_description NRPE
> dependent_servicegroup_name nrpe-services
> execution_failure_criteria n
> notification_failure_criteria c,u
> }
And what result you get with that? I have pretty much the same, but with
a "dependent_service_name" directive, and it should do the same. If it
don't, it's a bug.
There have been lots of changes in Nagios3 in that area so I'll have to
take a deeper look, but I'm pretty confident my nagios2 patch would work
in your case, if you're interested in it.
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkqea84ACgkQ6dZ+Kt5BchbOIwCg0oJz/lfP8PEdMSJqRHD4X2N8
p6wAoPf2iWueZCVRABg7Ga8WN98q5X+j
=uOlF
-----END PGP SIGNATURE-----
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Hash: SHA1
Mathieu Gagné wrote:
> Hi,
>
> Thomas Guyot-Sionnest wrote:
>> Just add the host_name or hostgroup_name directive (you can put all
>> hostgroups for instance, or enable wildcards and use *) and you're set.
>
> Unfortunately, it doesn't work. This explains why I asked the
> mailinglist. If I do as you suggested, all NRPE based services will be
> depending on the NRPE service on ALL hosts. (not only their respective host)
>
> Here is my servicedependency definition:
>
> define servicedependency {
> hostgroup_name hosts-with-nrpe
> service_description NRPE
> dependent_servicegroup_name nrpe-services
> execution_failure_criteria n
> notification_failure_criteria c,u
> }
And what result you get with that? I have pretty much the same, but with
a "dependent_service_name" directive, and it should do the same. If it
don't, it's a bug.
There have been lots of changes in Nagios3 in that area so I'll have to
take a deeper look, but I'm pretty confident my nagios2 patch would work
in your case, if you're interested in it.
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkqea84ACgkQ6dZ+Kt5BchbOIwCg0oJz/lfP8PEdMSJqRHD4X2N8
p6wAoPf2iWueZCVRABg7Ga8WN98q5X+j
=uOlF
-----END PGP SIGNATURE-----
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]