大网数据广告活动
服务器运维问答

Out of band notification when UPS loses mains power?

· 52CE 我爱测

We're currently looking into upgrading our UPS and possibly having a small petrol generator on site in the eventuality that the UPS battery is used long enough to drain it completely. Realistically, we can only afford a UPS that …

问题原文

原帖链接 · dannymcc · CC BY-SA 3.0

We're currently looking into upgrading our UPS and possibly having a small petrol generator on site in the eventuality that the UPS battery is used long enough to drain it completely.

Realistically, we can only afford a UPS that would give us around 45 minutes. It's not unheard of for our building to have outages of 4-6 hours. It is very rare though.

What products are available that are capable of sending notification (SMS, automated call, etc.) when a UPS switches to battery power? Some UPS's we've looked at have serial connections. How do you deal with this kind of thing?

The plan is that when the power goes down, the battery takes over and alerts the team. One of us (whomever is on call) drives the the building and starts the generator. Unless of course a notification comes through that the power is back on.

We do currently use Pingdom to monitor uptime of our services. It's just a ping test though so we can't rely on a lost host to explain why it's lost. For example; if the network connection went down and so did the backup link, we would get a notification. That doesn't necessarily mean the generator needs to be started.

已采纳解答

原帖链接 · the-wabbit · CC BY-SA 3.0

The serial comms port is an indication of either an old or a small UPS (unlikely to provide you with the 45 mins of coverage for any notable number of server machines, network infrastructure and peripherals). It has been the state-of-the-art interface around 1995, but has been superseded by SNMP-capable Ethernet interfaces since.

Most of the available monitoring systems are capable of using a custom check or script to get the current UPS state over the serial port (obviously, it would need to be physically connected via a serial cable) or listening to SNMP traps and raising alerts and notifications in various ways - feel free to choose one to your liking.

If you already do have UPSes in place which cannot be upgraded with SNMP cards and have no other means of connecting to the UPS to monitor its status but are using servers with redundant power supplies, you might consider a setup where at least one PSU is connected directly to the mains, while the other(s) is(are) fed through through the UPS. Upon a power failure, you should get a PSU power loss event on the mains-connected PSUs, which you could forward and treat accordingly in your monitoring / notification system.

Note: if you are using your UPS as the single surge protection for your servers, you might want to add an external surge protector to reduce the risk of a potential PSU damage upon voltage spikes in the last scenario.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2013-01-04)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。