Operating System - HP-UX
1836590 Members
1559 Online
110102 Solutions
New Discussion

Re: MCSG 11.16 e-mail notification

 
Mahadev Pednekar
Frequent Advisor

MCSG 11.16 e-mail notification

Hi,
I have 2 nodes in MCSG 11.16 and working fine. I want to configure MCSG to send e-mail notification if there is any shifting of lan, package and node down. I tried with Service Guard Manager but not able to find any luck, does anybody can help me in this issue.

Regards,
Mahadev
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: MCSG 11.16 e-mail notification

Best bet is to build it into the package startup scripts. That way anytime a failover occurs and email will go out.

If there is some kind of total loss of network, the email isn't going to get anywhere until network service is restored.

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
Mahadev Pednekar
Frequent Advisor

Re: MCSG 11.16 e-mail notification

Hi Steven,
Can you send the procedure for e-mail notification.

regds,
Mahadev
Stephen Doud
Honored Contributor

Re: MCSG 11.16 e-mail notification

To report when a package moves, add something like this the customer_defined_run_cmds of the package control script:

HOSTNAME=`uname -n`
echo "Package starting on $HOSTNAME" \
| elm -s "ACLK PACKAGE STARTING ON $HOSTNAME" yourname@yourco

To report a LAN failure, configure an EMS (Event Monitoring Service) monitor to send an email when a LAN failure occurs.
To report the status possibilities (example):
# resls /net/interfaces/lan/status/lan1
Use monconfig to configure an EMS monitor.

A node failure must be detected by another server. Consider writing a script which sends an email when a ping to the other node fails to respond.
Mahadev Pednekar
Frequent Advisor

Re: MCSG 11.16 e-mail notification

Hi Stephen,
I will try this and update accordingly.
regds,
Mahadev