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:
@ -9,7 +9,7 @@
|
|||||||
# 4. restart snmpd on the host #
|
# 4. restart snmpd on the host #
|
||||||
# 5. activate the app for the desired host in LibreNMS #
|
# 5. activate the app for the desired host in LibreNMS #
|
||||||
################################################################
|
################################################################
|
||||||
UPS_NAME='APCUPS'
|
UPS_NAME="${1:-APCUPS}"
|
||||||
|
|
||||||
PATH=$PATH:/usr/bin:/bin
|
PATH=$PATH:/usr/bin:/bin
|
||||||
TMP=$(upsc $UPS_NAME 2>/dev/null)
|
TMP=$(upsc $UPS_NAME 2>/dev/null)
|
||||||
|
Reference in New Issue
Block a user