[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bigsister-general] Customizing Mail Messages


Hi Silviu,
 
I followed your instruction but it doesn't work.
 
1. cd /var/lib/bigsister/www/skins/
2. cp -r default sms
3. modify sms
    Subject: @suppressed@item@ @ARG0@ @hour@:@minute@
    To: @toaddress@
 
    # more mailalarm_down.proto
   @(mailalarm.sub:down:down)@
4. Configure /etc/bigsister/bb_event_generator.cfg
*.*             down=red up=yellow repeat=5 mail=MAIL:alert
 
PAGER{$pager eq "MAIL" and $mail eq "alert"} pager="/usr/sbin/sendmail" skin=sms suppressed
 
 
I can see the log as below.
Nov 22 10:31:45 bubble bsmon: sending page for abc.ldap with severity 50 via /usr/lib/sendmail to MAIL:alert: &red  Connection refused (-1s)|>
However, when I checked the mail, the subject is still not changed. Please tell me how to fix. Thanks!!
 
After


----- Original Message -----
Sent: Wednesday, June 22, 2005 3:33 PM
Subject: RE: [Bigsister-general] Customizing Mail Messages

Hi Mike,

 

This should be easy: find the ?skins? subdir of your install (/var/lib/bigsister/www/skins in the Debian package 0.99c3). You could either modify one of the existing skins or create your own. For instance, I created a skin called ?SMS? for sending on cell phones. Here are the files I created in a new ?sms? subdir:

 

==> mailalarm.sub <==

Subject: @hour@:@minute@ - @item@ on @host@ is @ARG0@ (@textstatus@)

 

==> mailalarm_ack.proto <==

Subject: ack @suppressed@item@ @ack_mode@ by @ack_user@: @short@

To: @toaddress@

 

==> mailalarm_down.proto <==

@(mailalarm.sub:down:down)@

 

==> mailalarm_reminder.proto <==

@(mailalarm.sub:reminder:down)@

 

==> mailalarm_up.proto <==

@(mailalarm.sub:up:up)@

 

 

You may use it by customizing the alarms in /etc/bigsister/bb_event_generator.cfg, for instance:

 

# We have two groups: PROD and TEST

#

 

# failures on production servers are notified by SMS

@PROD.* mail=MAIL:alert

 

# non-critical servers failures are sent by e-mail

@TEST.* mail=MAIL:info

 

#

# delivery rules

PAGER{$pager eq "SMS" and $mail eq "alert"} pager="/usr/bin/exim" skin=sms suppressed

PAGER{$pager eq "MAIL" and $mail eq "info"} pager="/usr/bin/exim" skin=text_mail suppressed

 

As you can see I use the ?sms? skin and also a ?text_mail? one which sends mail in plain text instead of HTML/rich format.

 

Hope this helps,

 

Silviu

 


De : suppressed [mailto:suppressed De la part de Shoup, Mike
Envoyé : mardi 21 juin 2005 21:17
À : suppressed
Objet : [Bigsister-general] Customizing Mail Messages

 

How does one go about customizing the e-mail BigSis sends out? Mainly, I want to modify them to be cell phone friendly, so we can send alarms out to the admins? cell phones.

 

Mike Shoup

303.706.4921 (x64921)

EchoStar Satellite L.L.C.

Inverness IT Linux Intern

 


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.