Operating System - HP-UX
1748140 Members
3474 Online
108758 Solutions
New Discussion юеВ

Re: notification through email

 
Ricky_4
Frequent Advisor

notification through email

Hi All,

Is it possible on the M/C Service Guard to notify through email if there is fail over happened?

Thanks.

5 REPLIES 5
Sanjiv Sharma_1
Honored Contributor

Re: notification through email

Hi Adriatico,

Please check this link:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=228902
Everything is possible
G. Vrijhoeven
Honored Contributor

Re: notification through email

Hi,

What you can do i write a script. The script must monitor the syslog file ( tail -f ) and send an e-mail when a package stops/starts. You can also add a line in the costumer_defined_run_cmds and halt_cmds. mailx -s "package starts at $(date)" @email@domain.com

HTH,

Gideon
Kent Ostby
Honored Contributor

Re: notification through email

You can enter a command like "mailx" in the user_defined_run_commands or user_defined_stop_commands portion of a standard service guard package.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Mark Grant
Honored Contributor

Re: notification through email

Absolutely, see above messages. However, is not reccommended to alert anything by e-mail even though we all do it.
Never preceed any demonstration with anything more predictive than "watch this"
Stephen Doud
Honored Contributor

Re: notification through email

Check this document in the ITRC:
Doc. ID: UXSGKBQA00000051
TITLE: Serviceguard email and alert paging from packages

-Stephen Doud