Operating System - HP-UX
1834814 Members
3015 Online
110070 Solutions
New Discussion

Re: ups notification dm_ups

 
Nick D'Angelo
Super Advisor

ups notification dm_ups

When there is any kind of power interruption, my server notifies me via email that the UPS AC power has been interrupted.

However, is there any way that I can configure the dm_ups to send me an email that the power has been restored?

Always learning
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: ups notification dm_ups

UPS notifications do go to /var/adm/syslog/syslog.log if I'm not mistaken.

You can scan that file for keywords and send email notification on that basis.

I am attaching you a hardware script that looks for lbolts. Just replace lbolt with the keyword you need and change the email subject and addresse and you'll be all hooked up.

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
Nick D'Angelo
Super Advisor

Re: ups notification dm_ups

Thanks Steven, but I was looking for a more automated solution. If my memory serves me correctly, this is the way it was previously configured on another HPUX server, but we no longer have that machine.

Also, you missed attaching the script.

Thanks,

Nickd
Always learning
Steven E. Protter
Exalted Contributor

Re: ups notification dm_ups

I run checkhardware with cron, thats about as automated as it gets.

Its not a big CPU user so you can run it pretty regularly.

I understand what you want though.

I would look at snmp. You can set up mibs to trigger email on that basis. toptools is a free tool from HP but it only runs on HP intel hardware.

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
Nick D'Angelo
Super Advisor

Re: ups notification dm_ups

SEP,

What is checkhardware, your own script?
Always learning