Arguments to check commands (including macros)

rouilj+nagiosdev at cs.umb.edu rouilj+nagiosdev at cs.umb.edu
Wed Feb 27 17:49:04 CET 2013


In message <512E2A7E.1010101 at paul.dubuc.org>,
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.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb




More information about the Developers mailing list