From c096abf09482f0016894f4830d6c556594f978b0 Mon Sep 17 00:00:00 2001 From: Sergey Morozov Date: Mon, 26 Aug 2019 18:55:14 +0300 Subject: [PATCH] Update readme --- registerups/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/registerups/README.md b/registerups/README.md index 757b0b2..76b6988 100644 --- a/registerups/README.md +++ b/registerups/README.md @@ -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. \ No newline at end of file +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 + +```