<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Thanks. My host_notification_commands is notify-by-email. Here is the snippet of notify-by-email:<br><br><font size="2">define command{<br> command_name notify-by-email<br> command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HO<br>STALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "**<br> $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$<br>
}<br><br><font size="3">If macros are not enabled, why $HOSTALIAS$ and $HOSTADDRESS$ has a value? Do you think the problem is in the services.cfg only because most of the missing variables is related to services?<br><br>I'm using Nagios 2.10<br></font><br></font><br><br><br><br><br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Marc Powell <marc@ena.com><br>To: Nagios Users Mailinglist <nagios-users@lists.sourceforge.net><br>Sent: Monday, March 10, 2008 10:27:44 AM<br>Subject: Re: [Nagios-users] missing info in notifications<br><br><br>On
Mar
9,
2008,
at
9:12
PM,
Nelson
Serafica
wrote:<br><br>>
I
have
enabled
notification
via
email.
I
just
notice
there
are
some <br>>
missing
info
in
the
notification.
Here
is
a
sample<br>><br>>
*****
Nagios
*****<br>><br>>
Notification
Type:
PROBLEM<br>><br>>
Service:<br>>
Host:
BAP
Web1
Server<br>>
Address:
X.X.X.X<br>>
State:<br>><br>>
Date/Time:
Mon
Mar
10
09:49:55
PHT
2008<br>><br>>
Additional
Info:<br>><br>>
-------------------------------------
Nothing
follows<br>><br>>
It
doesn't
indicated
the
service,state
and
additional
info.
I
have <br>>
checked
misscommands.cfg
but
don't
know
where
to
look
for
the <br>>
variables.<br><br><br>Look
at
the
*_notification_commands
specified
for
the
contact{}.
Look <br>at
that
command{}
definitions
for
those
commands.
Verify
that
you
are <br>using
$MACROS$
appropriate
for
your
version
of
nagios.
You
almost <br>certainly
are
not.<br><br>These
links
are
for
2.x,
the
version
you
should
probably
be
using...
--<br><br><a href="http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contact" target="_blank">http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contact</a><br><br><a href="http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#command" target="_blank">http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#command</a><br><br><a href="http://nagios.sourceforge.net/docs/2_0/macros.html" target="_blank">http://nagios.sourceforge.net/docs/2_0/macros.html</a><br><br>--<br>Marc<br><br><br>-------------------------------------------------------------------------<br>This
SF.net
email
is
sponsored
by:
Microsoft<br>Defy
all
challenges.
Microsoft(R)
Visual
Studio
2008.<br><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>_______________________________________________<br>Nagios-users
mailing
list<br><a ymailto="mailto:Nagios-users@lists.sourceforge.net" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>:::
Please
include
Nagios
version,
plugin
version
(-v)
and
OS
when
reporting
any
issue. <br>:::
Messages
without
supporting
info
will
risk
being
sent
to
/dev/null<br></div><br></div></div><br>
<hr size="1"><FONT face=Arial size=-1>
Tired of spam? Yahoo! Mail has the best spam protection around<BR>
<a href="http://sg.rd.yahoo.com/mail/ph/footer/def/*http://ph.mail.yahoo.com ">http://ph.mail.yahoo.com</a></FONT></body></html>