Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Your review has been submitted and is pending approval.
Nagios Check for NAS QNAP via SNMP and bash script. based on check_qnap and check_qnap2
Current Version
1.21
Last Release Date
2017-01-22
Owner
Nicola
Website
https://github.com/nikband/check_qnap3.sh
Download URL
https://github.com/nikband/check_qnap3.sh/archive/master.zip
License
GPL
Compatible With
Check for NAS QNAP using SNMP and bash script.
Based on two different version of check_qnap: - version 1.03 from: http://localhost/directory/Plugins/Hardware/Storage-Systems/Others/check_qnap/details and - last version from: http://localhost/directory/Plugins/Hardware/Storage-Systems/Others/check_qnap2/details
Fixed minor errors, introduced more check and did some cleanup of the status information and performance info.
Monitoring of: - System Information - HD Status (for all disk into NAS) - Temperature system - Temperature disks - Status RAID volume - CPU usage - Memory usage - Diskspace usage - Uptime (System and Network) - Fans (for all fan)
Tested on a Qnap TS-853U-RP
Add to Nagios commands.cfg:
define command{ command_name check_qnap command_line $USER1$/check_qnap3.sh $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ }
Use for example this check_command into service definition: check_command check_qnap!$HOSTADDRESS!public!diskused!80!90
The plugin work well. But when my NAS is off, all the services have the status "ok", however, the results are empty. Is it normal? (I am a beginner on Nagios) Thanks
It mostly works, and does what we need. However, I fixed a few things to make it work better. - The volstatus check, I change -le (less-equal) to -ge (greater-equal) e.g. if [ "$VOLPCT" -ge "$strCritical" ]; then .. Otherwise, it would report as 'critical', that you haven't flooded the drive.. - also in volstat, I change the awk part to this: awk -F: '{print substr($2,2)}' otherwise it can't handle spaces in the status text, which in our case meant it wouldnt show the relevant error text. but otherwise, a great plugin that is easy to adjust.
Works perfect with our TS-253A, TS-269Pro and TS-EC880U. The only problem was the volstatus, it take some time to figure out that the values are for the free disk space and not the used disk space
A very complete plugin but with some problems with big disks.. Volume #1: CRITICAL: Unknown, Total Size (bytes): 3.5, Free: 732.6 (20931%)|FreeSize_Volume-1=20931%;1;2;0;100 CRITICAL: Total:3TB - Used:2TB - Free:0GB = 79%|Used=2857.36;35;71;0;3590.00
Thanks for your feedback I check this part of code it's a possible bug.
You must be logged in to submit a review.
To:
From: