librenms / librenms-agent

LibreNMS Agent & Scripts
GNU General Public License v2.0
118 stars 188 forks source link

Change UPS name to be from arg value rather than hard coded #371

Closed adamus1red closed 3 years ago

adamus1red commented 3 years ago

Will still fallback to APCUPS

This change allows the UPS name to be specified in the configuration rather than fixed in code, and allows multiple UPS's be monitored without having multiple copies of the script i.e.

extend ups-nut /etc/snmp/ups-nut.sh tripplite
extend ups-nut /etc/snmp/ups-nut.sh ups2
CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.