I hacked up the smsplus script a little (to use a different subject
line) and we use it here. It's a winner.
-- --Ben Benjamin P. August System Administrator - VPUE Stanford University
Quoting Galen Johnson <Galen.Johnson at sas.com>:
There's an example script on The Shire for sms pages:
http://www.trantor.org/theshire/doku.php/alerts:smsplus=G=
-----Original Message----- From: Thangappandi, Arun (Ge Money, consultant)
[mailto:arun.thangappandi at ge.com] Sent: Tuesday, March 25, 2008 1:07 PM To: hobbit at hswn.dk; henrik at hswn.dk Subject: RE: [hobbit] Customizing the Alerts mails sent my hobbitCan you please give me an example script,because I can take forward from easily.
Thanks & Regards, Arunkumar -----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Tuesday, March 25, 2008 6:13 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Customizing the Alerts mails sent my hobbit
On Tue, Mar 25, 2008 at 06:53:14AM -0400, Thangappandi, Arun (Ge Money, consultant) wrote:
Can any body help me; how to customize the hobbit alert mails so that it shows the IP of the server which we monitor instead of showing the hostname in it.
Use a SCRIPT instead of MAIL command in hobbit-alerts.cfg, and create a script which composes your mail with the information you want and sends it off.
See the hobbit-alerts.cfg(5) man-page to get information about how you extract the alert message, hostname, IP etc. to your script.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk