Notification alerts customization

Harper Mann hmann at itgroundwork.com
Mon Sep 20 18:20:46 CEST 2004


It's kind of fun to embed URLs in Notifications to make corrective actions
easy.  Here is an example.  The sendEmail program is a perl script that
makes sending Email easy to format.

http://caspian.dotconf.net/menu/Software/SendEmail/

# 'notify-by-email' command definition
define command {
    command_name    notify-by-email
    command_line    /usr/local/bin/sendEmail -f nagios at customer.com -t
$CONTACTEMAIL$ -s mail.mailer.net -u "$NOTIFICATIONTYPE$: Service
$SERVICEDESC$ on $HOSTNAME$ is $SERVICESTATE$" -m "Service: $SERVICEDESC$
Host: $HOSTNAME$ Address: $HOSTADDRESS$ State: $SERVICESTATE$ Date/Time:
$DATETIME$ Additional Info: $OUTPUT$ Acknowledge alarms at:
http://nagiosserver.customer.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34&host=$HOS
TNAME$&service=$SERVICEDESC$"
    
}

- Harper

Harper Mann
Groundwork Open Source Solutions
510-599-2075 (cell)

________________________________________
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of
bcotta at unimedbh.com.br
Sent: Monday, September 20, 2004 7:55 AM
To: nagios-users at lists.sourceforge.net
Subject: RES: [Nagios-users] Notification alerts customization

Hi all,

I think that I´d like to do the same thing below.
I´d like to customize mail notification, like that:

***** Nagios  *****

Notification Type: PROBLEM
Host: server01
State: DOWN
Address: 172.26.1.159
Info: CRITICAL - Plugin timed out after 10 seconds

Date/Time: Tue Sept 21 09:38:45 GMT 2004
Additional Info: Service Description!, What can I do to solve the problem!,
Which service stop if this server stop...... .
 
 
Regards,
--
Breno Andrade Cotta
bcotta at unimedbh.com.br
Network Administrator
Fone: (31) 9977-2841 - (31) 3229-6273


-----Mensagem original-----
De: Jack M [mailto:mwanikij at yahoo.com]
Enviada em: terca-feira, 14 de setembro de 2004 07:02
Para: Dale Hobbs; Cook, Garry; nagios-users at lists.sourceforge.net
Assunto: [Nagios-users] Notification alerts customization


Below is a sample of the Nagios alerts that I receive
on e-mail. Does any one know where/how to modify these
alerts?


***** Nagios  *****

Notification Type: PROBLEM
Host: srve-1
State: DOWN
Address: 10.194.8.71
Info: CRITICAL - Plugin timed out after 10 seconds

Date/Time: Tue Sept 14 10:05:43 GMT 2004


               
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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