Update of /cvsroot/nagios/nagios/html/docs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8642/html/docs
Modified Files:
macros.html
Log Message:
Bug fixes and patches
Index: macros.html
===================================================================
RCS file: /cvsroot/nagios/nagios/html/docs/macros.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** macros.html 28 Oct 2004 22:49:15 -0000 1.9
--- macros.html 3 Dec 2004 02:01:55 -0000 1.10
***************
*** 172,175 ****
--- 172,183 ----
</p>
+ <p>
+ <strong><u>Macros as Environment Variables</u></strong>
+ </p>
+
+ <p>
+ Starting with Nagios 2.0, most macros have been made available as environment
variables. This means that scripts that are run from Nagios (i.e. service and
host check commands, notification commands, etc.) can reference these macros
directly as standard environment variables. For purposes of security and
sanity, <a href="#user">$USERn$</a> and "on-demand" host and service macros are
not made available as environment variables. Environment variables that
contain macros are named the same as their corresponding macro names (listed
below), with "NAGIOS_" prepended to their names. For example, the <a
href="#hostoutput">$HOSTNAME$</a> macro would be available as an environment
variable named "NAGIOS_HOSTNAME".
+ </p>
+
<p>
***************
*** 556,560 ****
</tr>
<tr>
! <td class='MacroName'><a href="#datetime">$DATETIME$</a></td>
<td class="MacroYes">Yes</td><td class="MacroYes">Yes</td><td
class="MacroYes">Yes</td><td class="MacroYes">Yes</td><td
class="MacroYes">Yes</td><td class="MacroYes">Yes</td><td
class="MacroYes">Yes</td><td class="MacroYes">Yes</td>
</tr>
--- 564,568 ----
</tr>
<tr>
! <td class='MacroName'><a href="#longdatetime">$LONGDATETIME$</a></td>
<td class="MacroYes">Yes</td><td class="MacroYes">Yes</td><td
class="MacroYes">Yes</td><td class="MacroYes">Yes</td><td
class="MacroYes">Yes</td><td class="MacroYes">Yes</td><td
class="MacroYes">Yes</td><td class="MacroYes">Yes</td>
</tr>
***************
*** 1150,1155 ****
<tr>
! <a name="datetime"></a>
! <td class="MacroName">$DATETIME$</td>
<td class="MacroDescription">Current date/time stamp (i.e. <i>Fri Oct 13
00:30:28 CDT 2000</i>). Format of date is determined by <a
href="configmain.html#date_format">date_format</a> directive.</td>
</tr>
--- 1158,1163 ----
<tr>
! <a name="longdatetime"></a>
! <td class="MacroName">$LONGDATETIME$</td>
<td class="MacroDescription">Current date/time stamp (i.e. <i>Fri Oct 13
00:30:28 CDT 2000</i>). Format of date is determined by <a
href="configmain.html#date_format">date_format</a> directive.</td>
</tr>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
|