zabbixでWeb監視を設定する

OS:CentOS 7.2.1511 64bit
zabbixのバーsジョン:3.0.3

Web監視を利用するにはcURLが必要のようです。
また、Web監視を有効にするにはWebシナリオを定義する必要があるようです。

Zabbix公式では以下で記載されています
8.ウェブ監視

With Zabbix you can check several availability aspects of web sites.
To perform web monitoring Zabbix server must be initially configured with cURL (libcurl) support.
To activate web monitoring you need to define web scenarios. A web scenario consists of one or several HTTP requests or “steps”. The steps are periodically executed by Zabbix server in a pre-defined order.

ということでまずはcURL(libcurl)のインストール

[root@zabbix ~]# yum install -y libcurl-devel
読み込んだプラグイン:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.tsukuba.wide.ad.jp
 * epel: ftp.iij.ad.jp
 * extras: ftp.tsukuba.wide.ad.jp
 * updates: ftp.tsukuba.wide.ad.jp
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ libcurl-devel.x86_64 0:7.29.0-25.el7.centos を インストール
--> 依存性解決を終了しました。

依存性を解決しました

====================================================================================================================================================================================
 Package                                      アーキテクチャー                      バージョン                                            リポジトリー                         容量
====================================================================================================================================================================================
インストール中:
 libcurl-devel                                x86_64                                7.29.0-25.el7.centos                                  base                                297 k

トランザクションの要約
====================================================================================================================================================================================
インストール  1 パッケージ

総ダウンロード容量: 297 k
インストール容量: 622 k
Downloading packages:
libcurl-devel-7.29.0-25.el7.centos.x86_64.rpm                                                                                                                | 297 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  インストール中          : libcurl-devel-7.29.0-25.el7.centos.x86_64                                                                                                           1/1
  検証中                  : libcurl-devel-7.29.0-25.el7.centos.x86_64                                                                                                           1/1

インストール:
  libcurl-devel.x86_64 0:7.29.0-25.el7.centos

完了しました!

次にWebシナリオを設定するためホストを登録します。

①設定→ホスト
②監視対象ホストの新規登録
2016-09-17_14h49_06

続いてシナリオの作成

①設定→ホスト一覧からWEBを選択します。
②画面右上の「Webシナリオの作成」を選択します。
2016-09-17_18h59_19
③続いてステップの入力
2016-09-17_19h07_00

以上でWeb監視の登録が完了しました。
2016-09-17_19h11_06

スポンサーリンク
google

シェアする

  • このエントリーをはてなブックマークに追加

フォローする

スポンサーリンク
google