Update readme

This commit is contained in:
Sergey Morozov 2019-08-26 18:55:14 +03:00
parent 1b103eea9c
commit c096abf094
1 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
# 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.
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
```