It would appear that perhaps the quoted notification below is a host
notification and not a service notification. $SERVICE*$ macros are not
available for host notifications but you include them in your
host-notify-by-email command anyway, hence you see no output for those
values.

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

--
Marc

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of enediel gonzalez
> Sent: Monday, January 16, 2006 2:01 PM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] receiving empties parameteres on nagios
> notifications
> 
> 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
> <[EMAIL PROTECTED]>" -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
> <[EMAIL PROTECTED]>" -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/
> $SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
>         }
> 
> 
> 
> Linux user 300141
> Debian GNU/Linux
> 
> 
> 
> 
> >From: Jim Perrin <[EMAIL PROTECTED]>
> >To: enediel gonzalez <[EMAIL PROTECTED]>
> >CC: nagios-users@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 <[EMAIL PROTECTED]> 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.


-------------------------------------------------------
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_idv37&alloc_id865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to