notification question...

Aaron Segura Aaron.Segura at cabelas.com
Fri Jan 12 19:42:43 CET 2007


http://nagios.sourceforge.net/docs/2_0/macros.html#servicedesc

$OUTPUT$ -> $HOSTOUTPUT$
$DATETIME$ -> either $SHORTDATETIME$ or $LONGDATETIME$

-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lacayo,
Luis F
Sent: Friday, January 12, 2007 11:34 AM
To: Nagios Users mailinglist
Subject: [Nagios-users] notification question...

HI all, 

I have a very strange problem.  I just upgrade to NAGIOS 2.6 from a
version 1. (Don't ask please).

On my previous production server, I had the host-notify-by-email command
define as:

define command{
        name            host-notify-by-email
        command_name    host-notify-by-email
        command_line    $USER1$/notify-email.pl --HOSTNAME="$HOSTNAME$"
--HOSTALIAS="$HOSTALIAS$" --HOSTADDRESS="$HOSTADDRESS$"
--LASTSTATECHANGE="$LASTSTATECHANGE$" --TIMET="$TIMET$"
--HOSTSTATE="$HOSTSTATE$" --OUTPUT="$OUTPUT$" --DATETIME="$DATETIME$"
--NOTIFICATIONTYPE="$NOTIFICATIONTYPE$" | /bin/mail -s 'Host $HOSTSTATE$
alert for $HOSTALIAS$! ($HOSTNAME$)' $CONTACTEMAIL$
        }

The same as the new production version, however when I get an alert I am
not getting the same information on the email. 

The $OUTPUT$ and the $DATETIME$ is not being sent on the email. 

It works fine on the previous version. 

Any help is greatly appreciated.

Luis Lacayo

------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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