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
# 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