registerups: Reworked configuration parsing.

It looks more complicated, but contains error handling.
This commit is contained in:
Sergey Morozov
2019-08-26 14:52:27 +03:00
parent 34fc66d20e
commit 098714d37d
2 changed files with 39 additions and 18 deletions

View File

@@ -2,7 +2,6 @@
# IP addres or hostname of UPS SNMP card
address = 192.168.0.105
# TCP port
# default - 3052
port = 3052
# Secret phrase for software authentication. This value must be the
# same as configured on the UPS web interface