Re: [Nagios-devel] Service dependencies broken in CVS HEAD?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Service dependencies broken in CVS HEAD?

Post by Guest »

Thomas Guyot-Sionnest wrote:
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On Behalf
>> Of Ethan Galstad
>> Sent: February 26, 2007 12:38
>> To: Nagios Developers List
>> Subject: Re: [Nagios-devel] Service dependencies broken in CVS HEAD?
>>
>>
>> You shouldn't need to apply your patch - I've already implemented
>> similar functionality in the CVS code. If you want same host
>> dependencies, don't use the "dependent_host_name",
>> "dependent_hostgroup", or "dependent_servicegroup" directives.
>>
>> define servicedependency{
>> host h1,h2
>> service_description svc1
>> dependent_service_description svc2,svc3
>> }
>>
>> I just posted an update to CVS with some code cleanups, but
>> no change in
>> functionality. Should make it easier to understand the code in
>> duplicate_objects().
>
> Thanks; I'm glad to see this is finally going in (and as I suggested, by
> simply ommiting the dependent_ hosts). I just tested it and it works :)
>
> I'm not sure where (you patch is big) but you definately fixed something. It
> works now with exactly the same config as with yesterday's checkout. I don't
> understand where you do it though, I'll have to look closer...
>
> Thomas
>
>

Hmm, well perhaps the ugly variable names got me mixed up when I was
writing the initial code. I guess changing the vars to better suited
names resulted in a bug fix. :-)


Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org





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