Zabbix-NUT-Template
Zabbix-NUT-Template copied to clipboard
UPS status
Hello,
My UPS produces more than 1 state at once. mail sh # upsc mustek ups.status OL TRIM mail sh # upsc mustek ups.status OL mail sh # upsc mustek ups.status OL TRIM mail sh #
ups_status.sh fails on that data.
in ups_status.sh : TRIM) echo 11 ;; #'UPS is trimming incoming voltage (called "buck" in some hardware)' ;; OL TRIM) echo 11 ;;
I saw more than 2 statuses over the internet. Thus just adding all my statuses to ups_status.sh is not a generic solution. There can be 2 or 3 statuses simultaneously by UPS nature. Seems, Zabbix is not ready for that.
Tnx, try at the weekend
Need to write just "key" in the string 21. Not "$key" )))