Acknowledgement notifications, getting details

Charles Breite Charles.Breite at altertrading.com
Thu Mar 11 21:48:03 CET 2010


Heres is the one we use which give all those details.

 

command_line    $USER1$/mime_mail "[NG] $HOSTNAME$ $HOSTSTATE$" "Type:
$NOTIFICATIONTYPE$\\nHost: $HOSTACKAUTHOR$\\nInfo:
$HOSTACKCOMMENT$\\nComment: $SERVICEACKAUTHOR$\\nInfo:
$SERVICEACKCOMMENT$\\nComment: $HOSTNAME$\\nState:
$HOSTSTATE$\\nAddress: $HOSTADDRESS$\\nInfo: $HOSTOUTPUT$\\nDate/Time:
$LONGDATETIME$\\n" $CONTACTEMAIL$

 

From: Marcel [mailto:mitsuto at gmail.com] 
Sent: Thursday, March 11, 2010 2:06 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Acknowledgement notifications, getting
details

 

there is the notify-service-bby-email command, you should try: 

# 'notify-service-by-email' command definition
define command{
        command_name    notify-service-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:
$LONGDATETIME$\n\nAdditional
 
Info:\n\n$SERVICEOUTPUT$\n$LONGSERVICEOUTPUT$\n\n$USER10$?host=$HOSTNAME
$\n\n$S
ERVICEACKCOMMENT$\n$SERVICEACKAUTHORALIAS$" | /bin/mail -s "**
$NOTIFICATIONTYPE
$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
$CONTACTEMAIL$
        }



On Thu, Mar 11, 2010 at 3:28 PM, Rob Tanner <rtanner at linfield.edu>
wrote:

Hi,

When an acknowledgement notification gets sent, it includes the
hostname, the state and the IP address, and that's all.  I would also
like to see the time and date, the name of the tech that acknowledged
the problem, and the text of his or her comment.  I presume the command
I need to modify is notify-by-email in misccommand.cfg, but the command
line includes "Date/Time: $LONGDATETIME$" while all I see in the actual
email message is "Date/Time: $".

Any idea what's going on?

Thanks,
Rob



Rob Tanner
UNIX Services Manager
Linfield College, McMinnville Oregon


------------------------------------------------------------------------
------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100311/a109a712/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- 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