empty tokes with devel version service checks

Andreas Ericsson ae at op5.se
Mon May 16 23:29:50 CEST 2005


Rui Miguel Seabra wrote:
> Hi,
> 
>   I'm having a weird problem with nagios (cvs version, from end of
> April):
> 

The file "UPGRADING" as distributed with nagios CVS in its entirety;

---%<---%<---%<---
Upgrading to Nagios 2.0
-----------------------

If you're upgrading from Nagios 1.0, there will be a few modifications
that you'll need to make to your config files.  Read the "What's New"
section of the HTML documentation for more information.

--%<---%<---%<----

Wouldn't hurt to read the docs once in a while, would it?


>   This is on a simple https test:
> 
> ***** Nagios  *****
> 
> Notification Type: PROBLEM
> 
> Service: HTTPS Frontend
> Host: MBNet
> Address: XXX.YYY.ZZZ
> State: CRITICAL
> 
> Date/Time: $
> 
> Additional Info:
> 
> 
> So it would seem like 
> 
> # 'notify-by-email' command definition
> define command{
>         command_name    notify-by-email
>         command_line    /usr/bin/printf "%b" "***** Nagios  *****\n
> \nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
> $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
> $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /bin/mail -s "**
> $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$
> **" $CONTACTEMAIL$
>         }
> 
> is losing $OUTPUT$ and $DATETIME$.
> 
> I tried digging around the code, but I didn't exactly get where those
> variables are set in order to discove where to problem could be.
> 
> So, is this known? Should I just update the build?
> 
> Thanks, Rui
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click




More information about the Developers mailing list