NUT with LLD and dependent items
Description
This package has been done to monitor UPSes which have been configured with NUT package.
Yes, you read it, this package is able to monitor several UPSes by using LLD rules.
This way, you can track UPS status, power loss, battery charge and UPS load and get graphs for all your UPSes.
First based on templates found on share.zabbix.com I recreated everything from scratch:
- to use dependent items
- because I lost everything due to database loss
Prerequesites
- Zabbix >= 4.2: LLD JSON structure changed: https://www.zabbix.com/documentation/4.2/manual/discovery/low_level_discovery. Easy to change to support older Zabbix versions.
- NUT setup: the UPS should reply to upsc
Installation instructions
- Install nut.sh in ${SCRIPTS_FOLDER}. I used /etc/zabbix/sh.
- Modify userparameter_nut.conf to replace /etc/zabbix/sh by ${SCRIPTS_FOLDER}
- Check that the script called without any parameter lists your UPSes
- Check that the script gives all values related to one UPS by typing `${SCRIPTS_FOLDER}/nut.sh ${UPS}`
- Import template
- Check if {$UPS_BATTERY_CRITICAL} and {$UPS_BATTERY_LOW} macros are OK for you
- Wait for the LLD rule to trigger (12h by default)
Usage
${SCRIPTS_FOLDER/nut.sh ==> List all UPSes discovered
${SCRIPTS_FOLDER/nut.sh ==> List all variables known for this UPS
Limitations
ups.alarm not managed yet (my devices do not provide it)
Listing Details
Type
Min Zabbix version
4.2.x
Features
Created
Modified
Version 4.2
Download (251 downloads)
1 version, '2019-12-11 12:12' modified
1 version, '2019-12-11 12:12' modified
Tags
Author
Jérôme Blion
Owner