missing info in notifications
Nelson Serafica
ntserafica at yahoo.com
Mon Mar 10 04:11:45 CET 2008
Thanks. My host_notification_commands is notify-by-email. Here is the snippet of notify-by-email:
define command{
command_name notify-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HO
STALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "**
$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
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?
I'm using Nagios 2.10
----- Original Message ----
From: Marc Powell <marc at ena.com>
To: Nagios Users Mailinglist <nagios-users at lists.sourceforge.net>
Sent: Monday, March 10, 2008 10:27:44 AM
Subject: Re: [Nagios-users] missing info in notifications
On Mar 9, 2008, at 9:12 PM, Nelson Serafica wrote:
> I have enabled notification via email. I just notice there are some
> missing info in the notification. Here is a sample
>
> ***** Nagios *****
>
> Notification Type: PROBLEM
>
> Service:
> Host: BAP Web1 Server
> Address: X.X.X.X
> State:
>
> Date/Time: Mon Mar 10 09:49:55 PHT 2008
>
> Additional Info:
>
> ------------------------------------- Nothing follows
>
> It doesn't indicated the service,state and additional info. I have
> checked misscommands.cfg but don't know where to look for the
> variables.
Look at the *_notification_commands specified for the contact{}. Look
at that command{} definitions for those commands. Verify that you are
using $MACROS$ appropriate for your version of nagios. You almost
certainly are not.
These links are for 2.x, the version you should probably be using... --
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contact
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#command
http://nagios.sourceforge.net/docs/2_0/macros.html
--
Marc
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
____________________________________________________
Tired of spam? Yahoo! Mail has the best spam protection around
http://ph.mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080309/4b323cf6/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
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