1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

Change UPS to pull from arg[1] for UPS name (#371)

Will still fallback to APCUPS
This commit is contained in:
adamus1red
2021-07-27 00:01:03 +01:00
committed by GitHub
parent ef381d780d
commit 183dec1655

View File

@ -9,7 +9,7 @@
# 4. restart snmpd on the host #
# 5. activate the app for the desired host in LibreNMS #
################################################################
UPS_NAME='APCUPS'
UPS_NAME="${1:-APCUPS}"
PATH=$PATH:/usr/bin:/bin
TMP=$(upsc $UPS_NAME 2>/dev/null)