3.0 macro documentation inconsistency

Tedman Eng teng at dataway.com
Wed Jan 30 23:48:00 CET 2008


In the 3.0 documentation section describing Host and Service Macros:

There's some macros <macroname>, and there's some <last+macroname>:
Example:
$SERVICESTATE$          A string indicating the CURRENT state of the
service...
$LASTSERVICESTATE$      A string indicating the LAST state of the
service...



However, these macro descriptions have the text "LAST", which would
imply <last+macroname>:
$HOSTOUTPUT$ 	      The first line of text output from the LAST host
check...
$LONGHOSTOUTPUT$ 	      The full text output (aside from the first
line) from the LAST host check....
$HOSTPERFDATA$          This macro contains any performance data that
may have been returned by the LAST host check.
$SERVICEOUTPUT$         The first line of text output from the LAST
service check...
$LONGSERVICEOUTPUT$     The full text output (aside from the first line)
from the LAST service check...
$SERVICEPERFDATA$       This macro contains any performance data that
may have been returned by the LAST service check.


To be consistent, I think the documentation for these macros should
read:
$HOSTOUTPUT$            The first line of text output from the CURRENT
host check...
$LONGHOSTOUTPUT$        The full text output (aside from the first line)
from the CURRENT host check...
$HOSTPERFDATA$          This macro contains any performance data that
may have been returned by the CURRENT host check.
$SERVICEOUTPUT$         The first line of text output from the CURRENT
service check...
$LONGSERVICEOUTPUT$     The full text output (aside from the first line)
from the CURRENT service check...
$SERVICEPERFDATA$       This macro contains any performance data that
may have been returned by the CURRENT service check.


It would definately be nice if $LASTSERVICEOUTPUT$ did exist as a macro
though!
LAST OUTPUT is useful for calculating deltas, currently this is only
possible by recording such information externally.


(sorry for double posting, I'm not subscribed to nagios-devel so I'm not
sure if this messsage will reach that list)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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 Developers mailing list