Last active
April 4, 2016 20:36
-
-
Save josy1024/8af576b39d7b6d1dec47547d86f4a020 to your computer and use it in GitHub Desktop.
synology NAS temperature monitoring with SNMP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rrdtool create nas.rrd --step 900 \ | |
DS:disk1:GAUGE:1200:-40:80 \ | |
DS:disk2:GAUGE:1200:-40:80 \ | |
RRA:AVERAGE:0.5:1:960 \ | |
RRA:MIN:0.5:96:3600 \ | |
RRA:MAX:0.5:96:3600 \ | |
RRA:AVERAGE:0.5:96:3600 | |
http://exchange.nagios.org/directory/Plugins/Network-and-Systems-Management/Others/Synology-status/details | |
plugin | |
/opt/icinga/check_snmp_synology.pl -2 community -h 10.0.0.200 -v | |
gehause=`/opt/icinga/check_snmp_synology.pl -2 community -h 10.0.0.200 -v | grep Temp | awk '{ print $2;}'` | |
/usr/bin/rrdtool update nas.rrd -t disk1 N:$gehause | |
disk1=`/opt/icinga/check_snmp_synology.pl -2 community -h 10.0.0.200 -v | grep 'Disk 1' | cut -d':' -f4` | |
/usr/bin/rrdtool update nas.rrd -t disk1 N:$disk1 | |
disk2=`/opt/icinga/check_snmp_synology.pl -2 community -h 10.0.0.200 -v | grep 'Disk 2' | cut -d':' -f4` | |
/usr/bin/rrdtool update nas.rrd -t disk2 N:$disk2 | |
# php und lighttpd: | |
#https://www.df.eu/at/support/df-faq/cloudserver/anleitungen/lighttpd-und-php-installieren-debian-ubuntu/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment