alarm action email: change standard text?

We want to send some very critical alarms - like file system full or server down - as SMS, so the administrators get them even on weekends and can cope with the errors immediately.

But the standard text for the sender, the subject and the body of the mail are much too long for an SMS. How can we adjust them?

[322 byte] By [sgfscvcvsf] at [2007-11-26 10:22:46]
# 1

Hi sgfscvcvsf ,

> We want to send some very critical alarms - like file

> system full or server down - as SMS, so the

> administrators get them even on weekends and can cope

> with the errors immediately.

>

> But the standard text for the sender, the subject and

> the body of the mail are much too long for an SMS.

> How can we adjust them?

If you're using EventAction you can alter the "Subject:" and "Contents:" section of the message from the GUI:

http://www.halcyoninc.com/products/EventAction/help/HALEventAction-adding-h.htm l#HALEventAction-adding-information

If you're using just the basic SunMC bits, and are handy with scripting, you can alter the email script with some logic to do what you want:

/var/opt/SUNWsymon/bin/email.sh

Regards,

Mike.Kirk@HalcyonInc.com

http://www.HalcyonInc.com

Aronek at 2007-7-7 2:23:24 > top of Java-index,Administration Tools,Sun Management Center...
# 2

Thanks Mike,

since we dont use EventAction, I changed the script and it works.

But if I run es-setup -F to change the server (from test to real), /var/opt/SUNWsymon/bin/email.sh is replaced with the original one, and my changes are lost.

What can we do about that, since remembering it every time might be difficult.: you dont use es-setup -F very often.

regards

dvf

sgfscvcvsf at 2007-7-7 2:23:24 > top of Java-index,Administration Tools,Sun Management Center...
# 3
if you only want to change the server, you could edit /var/opt/SUNWsymon/cfg/domain-config.x and replace test to real.And perhaps after that you should (if applicable) regenerate the snmp security seed.
Quiksilver at 2007-7-7 2:23:24 > top of Java-index,Administration Tools,Sun Management Center...
# 4
Thanks for the hint, it works. es-config -r for re-seeding doesnt change the script.regardsdvf
sgfscvcvsf at 2007-7-7 2:23:24 > top of Java-index,Administration Tools,Sun Management Center...