cacti導入後を想定。完全にメモです。
※Debian+Cacti@KUROBOX(玄箱)メモの続き
■SNMPの設定(hddtempの結果をSNMPで呼べるように)
debian-box:~# grep hddtemp /etc/snmp/snmpd.conf
exec hddtemp /usr/sbin/hddtemp -n /dev/hda
■SNMPでひいた結果。
debian-box:~# snmpget -v1 -c public 127.0.0.1 .1.3.6.1.4.1.2021.8.1.101.1
UCD-SNMP-MIB::extOutput.1 = STRING: 32
debian-box:~# hddtemp /dev/hda
/dev/hda: HDS722580VLAT20: 32 C
これをやっておくと他のサーバーにCactiとかMRTG入れて、
SNMP GETでHDDの温度だけを取って来る・・なんて事が出来ます。