notifications are missing information
Jamie Bohr
Jamie_Bohr at Agilent.com
Mon Jun 27 19:41:03 CEST 2005
Thank you.
With your and Marc Powell's help I was able to solve my problem. I
accidental copied my old misccommands.cfg file from my Nagios 1.2
install - completely my fault.
- Jamie
On Fri, 2005-06-24 at 15:07 -0400, Mark Andrews wrote:
> Jamie Bohr wrote:
> > I just upgraded to Nagios 2b3 and have found that notifications are
> > not missing information.
> >
> > For example Date/Time and Additional information are missing
> > information:
> > ***** Nagios *****
> >
> > Notification Type: ACKNOWLEDGEMENT
> >
> > Service: httpd
> > Host: xxx
> > Address: XXXXXXX
> > State: WARNING
> >
> > Date/Time: $
> >
> > Additional Info:
> >
> > $
> >
> >
> > I use the default command to notify:
> >
> > define command {
> > command_name notify-by-email
> > command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
> > }
> >
> >
> > I have searched to list archive but have not found any thing that
> > guides me to an answer. The addition information shows up as
> > comments on the web page. Please point me in the right direction.
> In the 'notify-by-email' command, change $OUTPUT$ to $SERVICEOUTPUT$.
>
> In the 'host-notify-by-email' command, change $OUTPUT$ to $HOSTOUTPUT
> $.
Jamie Bohr
IT | Technical Computing
telnet: 719 590 2396
email: Jamie_Bohr at Agilent.com
i.m.: jamie.bohr
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the
material from any computer.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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