インストール時に入っている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-
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
kodai - 投稿数: 1341
こんにちは。
アイテムの設定はどのようにされているのでしょう?
設定値を教えて頂けるでしょうか。
ash - 投稿数: 18
インストール時に入っている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 - 投稿数: 1341
Pingについては、fpingコマンドはインストールされたでしょうか?また、zabbixユーザからfpingコマンドが実行できるように、パーミッションを変更しておき、/etc/zabbix/zabbix_server.confのfping=のパスと実際のパスが合っている必要があります。
sshはその設定のままで問題ないはずです。ZABBIXサーバから監視対象にsshできることは確認されたでしょうか?
ash - 投稿数: 18
fpingはインストールしております。
which fping
/usr/sbin/fping
zabbix_server.confのfpingパスも問題ありませんでした。
FpingLocation=/usr/sbin/fping
sshについては、ZABBIXサーバからsshで接続できることを
確認しております。
また、telnet xxx.xxx.xxx.xxx 22でポートも空いていること
を確認しました。
kodai - 投稿数: 1341
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
最初の投稿に書かれていましたね。失礼しました。
こちらでも試してみたところ、デフォルトのTemplate_standaloneにある設定をそのまま利用して問題なく動作しました。
zabbixサーバの設定ファイル/etc/zabbix/zabbix_server.confのDebugLevel=を4に設定して、ログファイル/var/log/zabbix/zabbix_server.logに何かエラーが出力されないでしょうか?
ash - 投稿数: 18
お世話になります。
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 - 投稿数: 1341
デフォルトのタイムアウトは5秒になっていますので、それが原因かもしれないですね。
/etc/zabbix/zabbix_server.confの、Timeout=の数字を大きくしてから試してみてください。(最大は30秒です)
ash - 投稿数: 18
kodai様
TimeOut=30にしたところ正常に監視することができました。
いろいろとご指導いただきありがとうございました。
またよろしくお願いします。