情シス - 雑多メモ

基本は情シス、たまに開発を担当

Zabbixサーバ fping設定

ZabbixでICMP Pingを使用する場合は、fpingユーティリティが必要
(試した環境はZabbix-2.4.5)

[zabbix_server.conf]

### Option: FpingLocation
# Location of fping.
# Make sure that fping binary has root ownership and SUID flag set.
#
# Mandatory: no
# Default:
# FpingLocation=/usr/sbin/fping

デフォルトは /usr/sbin/fping

 

インストールされていない場合はfpingをrpmなどで入手し、手動インストール


インストール後は、Zabbixユーザがfpingを実行できるように、パーミッション変更する。

[変更前]

$ ls -l /usr/sbin/fping
-rwsr-xr-x 1 root root 27776  7月  6  2010 /usr/sbin/fping

 

[変更]

$ chown root:zabbix /usr/sbin/fping
$ chmod 710 /usr/sbin/fping
$ chmod ug+s /usr/sbin/fping

$ ls -l /usr/sbin/fping
-rws--s--- 1 root zabbix 27776  7月  6  2010 /usr/sbin/fping