玄箱&cactiでHDD温度を取得する為のメモ

closeこの投稿は、 3 年 1 ヶ月 15 日 前に書かれた記事になります。
最新の情報と異なる場合がありますので、ご注意ください。

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の温度だけを取って来る・・なんて事が出来ます。

このエントリーを含むはてなブックマークはてなブックマーク - 玄箱&cactiでHDD温度を取得する為のメモ このエントリをつぶやくこのWebページのtweets Share on Tumblr
Clip to Evernote

Post a Comment

Your email is never published nor shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt="">