[Nagios-users] $OUTPUT$

stan stanb at panix.com
Thu Dec 16 20:08:36 UTC 2010

On Thu, Dec 16, 2010 at 05:21:43PM +0100, Andreas Ericsson wrote:
> On 12/16/2010 04:11 PM, stan wrote:
> > We are working on our first Nagios parent chiled system. As I understand
> > it, on the chile I need to invoke something that looks like:
> > 
> > /usr/share/nagios/sbin/submit_check_result $HOSTNAME$ '$SERVICEDESC$'
> > 
> > That script then does something like this:
> > 
> > /usr/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" |
> > /usr/sbin/send_nsca pnoc -c /etc/send_nsca.cfg
> > 
> > Ny current issue is that $OUTPUT$ does ot seem to be getting expanded.
> > Insteadit is literaly showing up on the Nagios run time web screen as
> > $OUTPUT$.
> > 
> Check the docs for what macros are available for obsessive host and
> service check commands.
> Or use merlin. It was designed for things like this.
losure for the list archives:

THis sugestion led to a Google search for "Nagios Macors" Which led to a
page listing the macros and "where" they are avail;able. Turns out that the
actual macro is $HOSTOUTPT".

Question, why does the Nagios parser not complain about invalid macros?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

More information about the Nagios-users mailing list