Re: [Nagios-devel] Arguments to check commands (including macros)

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] Arguments to check commands (including macros)

Post by Guest »


In message ,
Paul Dubuc writes:
>William Leibzon wrote:
>> Don't use macros as arguments to commands at service definition. I
>> don't think this was ever documented in nagios 3 as being ok either
>> even if it worked....
>
>I sure hope this continues to work. I think it allows us to write much
>simpler command objects that can more easily be reused by different
>services.
>
>Command definitions are often kept in a separate file. It makes the
>service definition much more readable and maintainable if all the
>service specific args (including user defined macros which are
>defined in the service definition or a template used by it) are
>passed to the command in the service definition.

I have to agree. I have many commands defined with parameters that are
required for every service and I use macros to supply the value.

Specifying them in the command definition makes much more sense and is
less error prone IMO.

--
-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.





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