Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Check Synology NAS

Rating
3 votes
Favoured:
0
Current Version
1.1
Last Release Date
2015-06-18
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
BSD
Hits
43801
Files:
FileDescription
check_snmp_syno.shcheck_snmp_syno.sh
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This plugin uses SNMP to check NAS devices from Synology
This plugin uses SNMP to check NAS devices from Synology. The following parameters are tested:

- System health
- Disk health
- Disk temperature
- RAID health
- RAID status

Tested with Synology DSM 5.x (Models RS214 and RS3614xs) and Nagios 3.2.3 in GroundWork 6.5

This plugin checks the health parameters of Synology systems (system, disks, raids) according to the MIB guide published by Synology: https://global.download.synology.com/download/Document/MIBGuide/

The official Nagios Plugin Development Guidelines have been followed as much as possible:
http://nagios-plugins.org/doc/guidelines.html

Bug in DSM: Spare disks and SSD cache disks are reported as "NotInitialized" by the SNMP server in DSM. There is no workaround known to me. I've reported this to the Synology forum: http://forum.synology.com/enu/viewtopic.php?f=3&t=94177

v1.1 from 18.06.2015:
- File encoding adapted to utf-8
- Syntax of if statements corrected
- New link to official MIB Guide from Synology
Reviews (3)
##################################
Here is my "commands.cfg" file:

define command{
command_name check_synology_temp
command_line $USER1$/check_snmp_syno.sh -H $HOSTADDRESS$ -C test123 -w 45 -c 50
}
##################################
Here is my "nas.cfg" file:

define service{
use generic-service,srv-pnp
host_name NAS_62
service_description Temperature
check_command check_synology_temp
check_interval 5
retry_interval 1
}
##################################
Command Output:

./check_snmp_syno.sh -H 172.16.1.62 -C n0cgnr -w 45 -c 50
WARNING: 172.16.1.62 has 47 °C
##################################
bychris1337c, March 6, 2019
I am trying to use this plugin:
Synology NAS: RS2414RP+
DSM 6.0.3-8754 Update 8


Error:
03-06-2019 15:19:34] SERVICE ALERT: DC_SAN;Global Health Status;UNKNOWN;HARD;3;Usage: ./check_snmp_syno.sh -H hostname -C community -w temperature warning -c temperature critical [-v]
bynosage, July 14, 2014
Nice! For others: if this is your first snmp check you will need the snmp utils, for centos/redhat: yum install net-snmp-utils. Question for the author: is the status information supposed to be blank when the system is OK? I can run the check manually and get an output fine, verbose or not, just no output with the Nagios panel, weird! Thanks for the plugin!
Owner's reply

Thanks for your reveiw. The script returns OK and a return value of 0 if everything is fine. I cannot reproduce the behaviour of a blank status line you observe with the script. Can you tweak something in Nagios to get it displayed in the panel?