Operating System - Linux
1752603 Members
5006 Online
108788 Solutions
New Discussion юеВ

Re: Serviceguard + mail communication.

 
SOLVED
Go to solution
skd
Occasional Advisor

Serviceguard + mail communication.

Hello All,

I am new to Serviceguard and started learning.

We have this setup on Linux server.

The customer requirment is - whenever the package is failed over to another node, he has to receive mail.

Could you please let me know how to configure on cluster configuration.

Please let me know if you need more details.

Thanks,
Divakar
4 REPLIES 4
Matti_Kurkela
Honored Contributor
Solution

Re: Serviceguard + mail communication.

Add a command that sends the necessary email to the package start-up script.

A simple example:

echo "Package now running on node $(hostname)" | mailx -s "Package status change" customer@company.example

MK
MK
skd
Occasional Advisor

Re: Serviceguard + mail communication.

Thanks for reply.


can we put the commands directly in cluster configuration file(if so where we need to put) or we need to put it in script file and call it on the cluster conf.

Please advise.

Thanks.
Steven E. Protter
Exalted Contributor

Re: Serviceguard + mail communication.

Shalom Divakar,

You can put the commands in the monitor script, or package control configuration. It needs to be a script to work.

The cluster configuration file is not a script.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
skd
Occasional Advisor

Re: Serviceguard + mail communication.

Thanks to all.

I have included the the pkg control file and have tested.

Once again thanks.