温度を監視するハードウェアモニターデーモンのサンプルです。
* 下記、記載のインストール手順などは、ソースからのビルドインストール時のものです。
個別にインストール処理を行う場合は下記の内容を参考に行ってください。
$ cd (cohwmond directory)
$ make
→ ./cohwmond
$ make install
$ make service_start
$ make service_stop
$ make uninstall
note
cohwmond.config 初期値
# cohwmond settings # limited 128/line # ----- ----- ----- ----- ----- # temperature thresholds # Set a two-step upper limit. (th1 < th2) # range [0 - 120] # 0 : disable # 1-120 : enable # ----- ----- ----- ----- ----- # CPUTEMP_th1=80 # CPUTEMP_th2=85 # MBTEMP_th1=70 # MBTEMP_th2=75 # ----- ----- ----- ----- ----- #interval 2000 - 60000(msec.) # ----- ----- ----- ----- ----- Interval=2000 # ----- ----- ----- ----- ----- # syslog priority # set 0 ... emerg # 1 ... alart # 2 ... crit # 3 ... err # 4 ... warn # 5 ... notice # 6 ... info # 7 ... debug # ----- ----- ----- ----- ----- log_cputemp_th1=7 log_cputemp_th2=7 log_mbtemp_th1=7 log_mbtemp_th2=7 # ----- ----- ----- ----- ----- # alarm action # # ex.) # CPUTEMP_th1_Alarm=/usr/sbin/shutdown -h +10 "CPU temperature threshold 1 alarm!" # # ----- ----- ----- ----- ----- CPUTEMP_th1_Alarm= CPUTEMP_th2_Alarm= MBTEMP_th1_Alarm= MBTEMP_th2_Alarm=