プロが教える店舗&オフィスのセキュリティ対策術

fedora4で、MRTGでhddtempを集計しようとすると、以下のようなエラーがcronから帰ってきます。
(cronでmrtgを5分ごとに設定しており,mrtgでは以下のコマンドを設定しています)

自分で「'/usr/bin/hddtemp /dev/hda | awk '{print $3}''」と打つと、ちゃんと温度が「43C」とか返ってくるのですが、corn-mrtg経由の場合には、何か設定が必要なのでしょうか?
よろしくお願いします。

WARNING: Could not get any data from external command
'/usr/bin/hddtemp /dev/hda | awk '{print $3}''
Maybe the external command did not even start. (Illegal seek)

WARNING: Problem with External get '/usr/bin/hddtemp /dev/hda | awk
'{print $3}'':
Expected a Number for 'in' but nothing'

WARNING: Problem with External get '/usr/bin/hddtemp /dev/hda | awk
'{print $3}'':
Expected a Number for 'out' but nothing'

ERROR: Target[hddtemp][_IN_] ' $target->[5]{$mode} ' did not eval into
defined data
ERROR: Target[hddtemp][_OUT_] ' $target->[5]{$mode} ' did not eval into
defined data

A 回答 (1件)

crontab に設定したエントリと MRTG の設定ファイルの関連行を見せていただくともう少し分かると思いますが、ちょっと情報が不足です。



現時点で分かる範囲で回答しますと、MRTG は『in と out という二つのデータを要求しているにも関わらず何も得られなかった』という文句を言っています。元々

 /usr/bin/hddtemp /dev/hda | awk '{print $3}'

では値が一つしか得られないのでは無いでしょうか?

なお Google で hddtemp を調べたら参考 URL が引っ掛かりました。同じことをしているようですから、一読してみてはいかがでしょうか。

参考URL:http://www.loveloveheart.com/turbolinux/hddtemp. …
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!