Re: [Nagios-devel] [PATCH] Fix to allow incomplete

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] [PATCH] Fix to allow incomplete

Post by Guest »

Gaspar, Carson wrote:
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On Behalf
>> Of Ethan Galstad
>> Sent: Monday, December 11, 2006 3:05 PM
>> To: Nagios-Devel
>> Subject: Re: [Nagios-devel] [PATCH] Fix to allow incomplete
>> service dependency templates
>>
>> Jason Hoos wrote:
>>> Since it's not a registered object, the servicedependency template
>>> should be valid, but Nagios reports "Could not expand dependent
>>> hostgroups and/or hosts specified in service dependency" instead.
>>>
>> Actually, I think this should result in an error message, even
>> though the template dependency isn't going to be registered.
>> Better to catch a problem earlier, rather than later when the
>> template is being used.
>
> I violently disagree. Templates are, by definition, semantically
> incomplete. Why is this config line any more or less vital than every
> other missing config line? By your logic, templates shouldn't exist at
> all.
>

You are partially correct. Templates are usually incomplete, but they
should not contain incorrect data. In your example the template
references a hostgroup, which in turn has a bad membership list (one
host does not exist).


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