Macro Expansion Problem

Terry Carmen terry at cnysupport.com
Sat May 21 14:15:06 CEST 2011


Quoting Jonathan Angliss <jon at netdork.net>:

> On 05/20/11 22:11, Terry Carmen wrote:
>> Quoting Jonathan Angliss <jon at netdork.net>:
>>
>>
>>
>>  > That's not to say you won't see it defined in a service, but less likely
>>  > than a command. What made you think $HOSTNAME$ was valid there? If it
>>  > was valid, what value should it take? What are you trying to achieve?
>>
>> I would like to define it in the "define host" section as below, and
>> have it expanded in the "define service" section right below it (in the
>> same file).
>
> Nagios has no concept of what is in each file.  It simply reads them
> all, then parses the collective, rather than individually.

OK, that explains it.

Thanks!

Terry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110521/d9d88f6b/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list