Add information in notification
John Kramme
jkramme at crownpack.com
Wed Mar 5 15:15:58 CET 2008
This is a perl script that I use. very informational, very configurable
________________________________
From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Bráulio H. Soares
Sent: Wednesday, March 05, 2008 6:53 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Add information in notification
Hi people,
I need to send the notifications with a comment, including information about the incident, instead only information about host or service...
I think to achieve this using event handler, with scripts that send e-mail containing that message, but I not able to do this, because the user could receive two e-mail, the first could be a notification and the second the "incident information", generated by the script.
Can I to add "environment variables" (like $HOSTALIAS$ or $HOSTSTATE$) in the Nagios, using to send the enhanced information?
(The attachment contains a example of the e-mail I need. The additional information should be below the "topic" Techinical Info).
Thanks for advance.
Best Regards,
brHS.
Aviso de Confidencialidade: As informações contidas nesta mensagem de e-mail, incluindo quaisquer anexos, são confidenciais, e estão destinadas apenas à pessoa ou entidade para a qual foi diretamente endereçada. Se você não é o destinatário, nem o empregado ou agente responsável por encaminhar esta mensagem ao destinatário, então você está notificado de que não deverá rever, retransmitir, imprimir, copiar, usar ou distribuir esta mensagem de e-mail ou seus anexos. Se você recebeu este e-mail por engano, por favor, contate o remetente imediatamente e apague (delete) esta mensagem de seu computador ou de qualquer outro banco de dados. Opiniões pessoais, comentários e conclusões não são endossados pela Halógica Tecnologia e devem ser desconsideradas. Obrigado.
Confidentiality Notice: The information contained in this email message, including any attachment, is confidential and is intended only for the person or entity to which it is addressed. If you are neither the intended recipient nor the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that you may not review, retransmit, convert to hard copy, copy, use or distribute this email message or any attachments to it. If you have received this email in error, please contact the sender immediately and delete this message from any computer or other data bank. Personal opinions, remarks and conclusions are not endorsed by Halógica Tecnologia, and must be disconsidered. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080305/5bba3891/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: send_mail.pl
Type: application/octet-stream
Size: 10418 bytes
Desc: send_mail.pl
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080305/5bba3891/attachment.obj>
-------------- 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