Operating System - HP-UX
1834624 Members
2498 Online
110069 Solutions
New Discussion

Send email when ups kicks in

 
SOLVED
Go to solution
Colin Jensen
Occasional Advisor

Send email when ups kicks in

We have a RP5470 running B.11.11. I'd like to receive an email when the ups kicks in. In looking at this site, the only way possible is to have a cron job run every minute to see if the ups has kicked in. What do I test for in my cron script to check if the ups has kicked in? Thanks....colin
6 REPLIES 6
Patrick Wallek
Honored Contributor
Solution

Re: Send email when ups kicks in

What kind of UPS? Some UPS systems come with software that allow you to monitor and send messages or do other actions, like shutdown the machine, if on UPS power for XXX amount of time.
Colin Jensen
Occasional Advisor

Re: Send email when ups kicks in

Hi Patrick,
I'm not at work at the moment. I'll check it out tomorrow and update this forum. To the best of my understanding, it was just a basic UPS, purchased with the RP5470. The ups daemon is configured to do a system shutdown when the UPS kicks in, however, I'm not sure what kind of "smarts" exist on the UPS side. Thanks.
Steven E. Protter
Exalted Contributor

Re: Send email when ups kicks in

If its a powertrust, you can connect it to the machine via a serial cable.

It probably has a lan module for snmp.

If so, you can configure the snmp trap to email you whenever there is a reportable event.

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
Colin Jensen
Occasional Advisor

Re: Send email when ups kicks in

The UPS is a PowerTrust II-LR, part # A1356A. It is connected to the server, because the server starts automatically when the UPS is on, and stop when the UPS dies. I'm not sure what the cable is connecting it, but can find out. Can you comment further on the snmp and lan module please? Thanks.
TwoProc
Honored Contributor

Re: Send email when ups kicks in

Colin, many many brands will generate an email if you have smtp module with IP interface configured. From that you can hook up email to your HP server by a) fully configuring your server to be an email client to your whole email infrastructure, or b) take a cheap and easy route and hook up with just a pop mail reader - take a look at the porting archive http://hpux.cs.utah.edu/ and get a pop mail reader from there.

Once you've gotten your email notice from the email server and into the hands of an empowered automated process - it's a pretty simple thing to take action: shutdown databases, flush disk caches, shutdown system... etc.
We are the people our parents warned us about --Jimmy Buffett
Colin Jensen
Occasional Advisor

Re: Send email when ups kicks in

Thanks everyone. I think that points me in the right direction. Much appreciated. I'll assign points to all of you!