Acknowledgement notifications, getting details

Rob Tanner rtanner at linfield.edu
Fri Mar 12 00:07:09 CET 2010


Thanks.  Very helpful.


On 3/11/10 12:07 PM, "Marcel" <mitsuto at gmail.com> wrote:

> Ops, my USER10 macro is to place a link for the service in question.
> 
> On Thu, Mar 11, 2010 at 5:06 PM, Marcel <mitsuto at gmail.com> wrote:
>> 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
>> 
> 
> 
> 
> ------------------------------------------------------------------------------
> 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/0c57e6f2/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