receiving empties parameteres on nagios notifications

enediel gonzalez enediel at hotmail.com
Mon Jan 16 21:01:18 CET 2006


Thanks for the attention, this is the information related to this subject
I'm using debian sarge, if there is something specific about the OS, 
specially on the command definitions, let me know please,

Enediel

Nagios 2.0b3

define command{
        command_name    notify-by-email
        command_line    /usr/bin/printf "%b" "** Nagios Alert 
**\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVIC
EDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: 
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n
$SERVICEOUTPUT$" | /usr/bin/mail -a "From: Alert from Nagios 
<monitor at Nagios>" -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/
$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
        }

# 'host-notify-by-email' command definition
define command{
        command_name    host-notify-by-email
        command_line    /usr/bin/printf "%b" "** Nagios Alert 
**\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVIC
EDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: 
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n
$SERVICEOUTPUT$" | /usr/bin/mail -a "From: Alert from Nagios 
<monitor at Nagios>" -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/
$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
        }



Linux user 300141
Debian GNU/Linux




>From: Jim Perrin <jperrin at gmail.com>
>To: enediel gonzalez <enediel at hotmail.com>
>CC: nagios-users at lists.sourceforge.net
>Subject: Re: [Nagios-users] receiving empties parameteres on nagios 
>notifications
>Date: Mon, 16 Jan 2006 14:00:07 -0500
>
>On 1/16/06, enediel gonzalez <enediel at hotmail.com> wrote:
> > Hello
> > I've nagios running on debian sarge, but when I receive the 
>notifications I
> > get something similar to the following message
> > ?What should I do to receive the parameters Service, State: Additional 
>Info:
> > with values?
> >
> > 
>-------------------------------------------------------------------------
> >
> > Notification Type: PROBLEM
> >
> > Service:
> > Host: Cisco AeroNet 1310
> > Address: 218.200.35.21
> > State:
> >
> > Date/Time: Mon Jan 16 11:48:28 EST 2006
> >
> > Additional Info:
> >
> > ---------------------------------------------------------------------
> >
>
>You forgot some information, like what version of nagios you're
>running, your current notification statement that provides this  type
>of email etc. MORE DETAIL.
>
>--
>Jim Perrin
>System Architect - UIT
>Ft Gordon & US Army Signal Center




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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