Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Getting backup battery to send email alerts....?

Hello! I've got an APC RS1500 UPS hooked up to my Mac Mini server running 10.6.

Obviously, I've already used System Preferences to configure how we want the battery to manage the power to the machine in the event of an outage. But since APC's PowerChute software (which, from what I understand, used to have the ability to send email alerts in such a case) only works up until about 10.4 until they started implementing the native support we have "lost" the ability for the server to send out an email alert whenever should there be a power issue.

So far, I've found no native way to do this within OSX and the APC software that used to do this for you is no longer supported on 10.5 or 10.6.....how can we do this?

I'm looking for something, anything, really to just get the server to send me an email should the power go down. Terminal command, Automator workflow, AppleScript, third party software....whatever.
Just....something?

Surely there are other people out there running Mac servers on a battery backup with some kind of notification system in place?

Thanks in advance.

Mac OS X (10.6.7)

Posted on Apr 5, 2011 12:07 PM

Reply
14 replies

Nov 1, 2012 12:30 PM in response to interconnect

Which problem are you looking to solve?


Automatic shutdowns? Those happen by default with the APC Smart UPS 1500, using a USB connection.


Notifications on power outages? You can either write a script that polls for the power status locally (using pmset or such) and sends an email or whatever, scrounge something similar, or that operates remotely by using Pingdom or another similar free or commercial polling service.


If you're just looking for uptime or such, it's also possible to use an SNMP service elsewhere on your network, assuming you're willing to start and maintain SNMP on the box you're monitoring.

Nov 3, 2012 12:39 PM in response to MitchSharpe

Pingdom does what you are asking for. It detects the web server outage. It sends email, SMS or a tweets. And it's a free service.


If you're working on an internal server of some sort (or otherwise outside of what pingdom can reach), then this is going to involve a quick script, or some add-on software.


If you're working on the script, do you have a local mail server running on this box? (That'll make sending mail easier.)


And do you want to know about every outage, or do you want notifications when the shutdown happens? (If it's the latter that you're after, then you can send mail from the shutdown script.)


Some of the more capable and less-interruptible power supplies have notification capabilities. (eg: APC less-interruptible power supplies with the APC Web/SNMP card.)


The apcupsd tool might be of interest, too. Whether that update works on Mountain Lion, I don't know.

Getting backup battery to send email alerts....?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.