Check QNAP Health
Description
This plugin checks CPU / System / HDs of the most QNAP devices via SNMP. It's also an alternative to the simple check_snmp which isn't enough precise. Originally made for a QNAP TS-809, i could also successfully test it with a TS-419. It should works fine with all the QNAP "TS" series. Please give me your feedbacks if you've any problem.
IMPORTANT : It seems CPU Temp cannot be obtained on all QNAP or maybe thanks to an other OID. I could obtain it on the TS-809 but not on the TS-419 so i added it only for the 809. But if you really need and if it wotks on your QNAP, you can easily add it :). I made this plugin with Celsius support only, feel free to add Fahrenheit support if you need.
Usage
Usage : ./check\_qnap\_temp.sh -H -v -C -w -c
-H ADDRESSÂ - Hostname to query (default: 127.0.0.1)
-v STRINGÂ -> SNMP version to use, only compatible with v1 and v2c (default: 1)
-C STRINGÂ - Community for the host SNMP agent (default: public)
-w INTEGERÂ - Warning threshold in percentage (default: 0)
-c INTEGERÂ - Critical threshold in percentage (default: 0)
-h  - Print this help
-VÂ Â - Print the Plugin version and warranty
Output example : "OK - CPU Temp : 20 Deg. / System Temp : 31 Deg. / HDs Temp : 33 33 34 33 32 31Â 31Â 32 Deg."