cyberpower/registerups
Sergey Morozov c096abf094 Update readme 2019-08-26 18:55:14 +03:00
..
README.md Update readme 2019-08-26 18:55:14 +03:00
registerups.cfg.example registerups: Reworked configuration parsing. 2019-08-26 14:52:27 +03:00
registerups.py registerups: More errors handling in config parsing 2019-08-26 14:57:17 +03:00

README.md

registerups

By using SNMP protocol, we can monitor an UPS state and shutdown a hosts connected to the UPS without using a proprietary Cyber Power software. But, some features works only with Power Panel software. For example, SNMP card can send signal to the Power Panel clients when UPS performs scheduled shutdown. In this case we can handle SNMP trap from SNMP card to shutdown non- Power Panel clients. But if there are no Power Panel clients, UPS not sends signal, and not sends an SNMP trap. Therefore, if we whant to shutdown SNMP clients correctly, we should install at lest one Power Panel client. Or we can use a registerups python script to register a host on the ups without using a Power Panel.

Place a configuration file to the preffered location (e.g. to the /etc directory) and edit it. You can use a provided example. Path to the configuration file is the first argument to the registerups.py script. You shold setup cron to periodically update host registration.

Example for update registration every 5 minutes:

*/5  *  *  *  * nobody /usr/local/bin/registerups.py /etc/registerups.cfg