Sinple Checkについて

お世話になります。

zabbix-1.4.4を使用して、電源管理装置に対してICMPpingとsshの
Sinple Checkを行いたいのですが、うまくいきません。

ICMP ping:何も表示さず
ssh:Down(0)

サーバから電源管理装置に対しては、pingもsshも可能です。

何が原因かご教授いただけませんでしょうか。

また、同じsinple Checkでもhttpの監視は正常にUp(1)となっ
ています。

以上、宜しくお願い致します。

コメント表示オプション

お好みのコメント表示方法を選び「設定の保存」をクリックすると変更が反映されます。
ユーザー kodai の写真

こんにちは。

アイテムの設定はどのようにされているのでしょう?
設定値を教えて頂けるでしょうか。

ユーザー ash の写真

インストール時に入っているTemplate_Standaloneの中の
ICMP pingとSSH server is runningを使用しています。

こちらはそのままでは使用できないのでしょうか。

○ICMP ping
Description :ICMP ping
Type :Simple check
Key :icmpping
Type of information : Numeric(integer 64bit)
Units
Use multiplier :Do not use
Update interval (in sec) :30
Flexible intervals (sec) No flexible intervals
New flexible interval Delay :50 Period :1-7,00:00-23:59
Keep history (in days) :90
Keep trends (in days) :365
Status :Active
Store value : As is
Show value throw map :As is
Applications -None-

○SSH server is running
Description :SSH server is running
Type :Simple check
Key :ssh
Type of information : Numeric(integer 64bit)
Units
Use multiplier :Do not use
Update interval (in sec) :30
Flexible intervals (sec) No flexible intervals
New flexible interval Delay :50 Period :1-7,00:00-23:59
Keep history (in days) :90
Keep trends (in days) :365
Status :Active
Store value : As is
Show value throw map :As is
Applications -None-

以上よろしくお願いします。

ユーザー kodai の写真

Pingについては、fpingコマンドはインストールされたでしょうか?また、zabbixユーザからfpingコマンドが実行できるように、パーミッションを変更しておき、/etc/zabbix/zabbix_server.confのfping=のパスと実際のパスが合っている必要があります。

sshはその設定のままで問題ないはずです。ZABBIXサーバから監視対象にsshできることは確認されたでしょうか?

ユーザー ash の写真

fpingはインストールしております。

which fping
/usr/sbin/fping

zabbix_server.confのfpingパスも問題ありませんでした。

FpingLocation=/usr/sbin/fping

sshについては、ZABBIXサーバからsshで接続できることを
確認しております。

また、telnet xxx.xxx.xxx.xxx 22でポートも空いていること
を確認しました。

ユーザー kodai の写真

fpingのパーミッションはどうなっているでしょう?以下のように、zabbixユーザから実行できるようになっている必要があります。

$ ls -la /usr/sbin |grep fping
-rwsr-xr-x 1 root adm 36239 2月 17 2005 fping
-rwsr-xr-x 1 root adm 37150 2月 17 2005 fping6

sshについては、ZABBIXサーバからsshで接続できることを
確認しております。

最初の投稿に書かれていましたね。失礼しました。
こちらでも試してみたところ、デフォルトのTemplate_standaloneにある設定をそのまま利用して問題なく動作しました。

zabbixサーバの設定ファイル/etc/zabbix/zabbix_server.confのDebugLevel=を4に設定して、ログファイル/var/log/zabbix/zabbix_server.logに何かエラーが出力されないでしょうか?

ユーザー ash の写真

お世話になります。

ping監視の件ですが、パーミッションの変更を行ったところ
正常に監視できました。

ありがとうございました。

sshについては、ログに以下のようにありました。

8292:20080229:172153 Timeout while answering request
8292:20080229:172153 SSH check error: ZBX_TCP_READ() failed [Interrupted system call]
8292:20080229:172153 End get_value()
8292:20080229:172153 Query [begin;]
8292:20080229:172153 In process_new_value(ssh)
8292:20080229:172153 In add_history(key:ssh,value_type:3,type:1)
8292:20080229:172153 In add_history(itemid:22548,UINT64:0)
8292:20080229:172153 In add_history_uint()
8292:20080229:172153 Query [insert into history_uint (clock,itemid,value) values (1204273313,22548,0)]
8292:20080229:172153 In add_trend()
8292:20080229:172153 Query [select num,value_min,value_avg,value_max from trends where itemid=22548 and clock=1204272000]
8292:20080229:172153 Query [update trends set num=18, value_min=0.000000, value_avg=0.000000, value_max=0.000000 where itemid=22548 and clock=1204272000]
8292:20080229:172153 End of add_history

ちなみに対象機器の電源管理装置へsshで接続する時間は約15秒ぐらいかかります。

こちらは関係ありますでしょうか。

以上よろしくお願いします。

ユーザー kodai の写真

ちなみに対象機器の電源管理装置へsshで接続する時間は約15秒ぐらいかかります。

デフォルトのタイムアウトは5秒になっていますので、それが原因かもしれないですね。

/etc/zabbix/zabbix_server.confの、Timeout=の数字を大きくしてから試してみてください。(最大は30秒です)

ユーザー ash の写真

kodai様

TimeOut=30にしたところ正常に監視することができました。

いろいろとご指導いただきありがとうございました。

またよろしくお願いします。