2008/03/11

CentOS 4.6 で、ZABBIX 1.4.4

社内のサーバ監視に、ZABBIX日本語サイト)を使用しているのですが、ZABBIX 1.4 では、「WEB monitoring」というWebサイトを簡単に監視できる機能が搭載されたようなので、この機能を使いたいがため、1.1.3 からアップデートしてみました。


New in ZABBIX 1.4 FEATURES日本語サイト


  • Installation Wizard

  • Installation Wizard automatically checks pre-requisites, database connectivity and generates configuration file for WEB front end.




  • Support of new database engines

  • Support of SQLite has been implemented. It allows use of ZABBIX in embedded environments.




  • WEB interface improvements

  • Speed and usability of WEB interface has been improved very much.




  • New notification methods

  • Native support of Jabber messaging has been introduced.




  • Distributed monitoring

  • ZABBIX distributed monitoring is made for complex environments consisting of different locations.
    ZABBIX supports monitoring of unlimited number of nodes. Centralized configuration allows easy configuration of all nodes from a single location.




  • Auto-discovery

  • ZABBIX distributed monitoring module allows easy deployment of ZABBIX systems. The discovery support IP ranges, service checks, agent and SNMP checks for efficient auto-discovery.




  • Many-to-many template linkage

  • More flexible host-template linkage saves time and make configuration of hosts more flexible and straight forward.




  • Database watchdog

  • ZABBIX server will automatically warn group of users if database is down and continues normal operations when database is back.




  • WEB monitoring

  • WEB monitoring module allows flexible and easy monitoringof availability and performanceof WEB sites and WEB based applications. It supports passing of GET and POST variables.




  • XML data import/export

  • New XML data import and export functionality is an excellent way of sharing templates, hosts configuration and items/triggers related information.




  • Support of Windows Vista

  • ZABBIX Windows agent supports Windows Vista, both 32 and 64 bit versions.




  • More flexible actions

  • Multiple operations (notifications, script execution) per action are supported. Choice of action calculation algorithm was introduced.




  • Server-side external checks

  • Server-side external checks can be used to introduce custom checks executed on ZABBIX server side.




  • New user permission schema

  • Old user permission schema is no longer support. It was replaced by new more efficient, yet simple, schema working on level of user groups and host groups.




  • Support of hysteresis

  • ZABBIX support use of different trigger expressions for going to ON and OFF states.




  • Support of slide show

  • Several screens can be grouped into a slide show for better presentation.




  • ZABBIX server can spread load across several servers

  • Groups of server side processes (discoverer, poller, HTTP poller, trapper, etc) can be located on different physical servers for better performance and availability.




  • Other improvements

  • See Release Notes for a complete list of improvements.




CentOS 4.6 の環境で、いくつか躓いたところがあったので、メモです。


CURLのバージョン


Web Monitoring機能を有効にするには、--with-libcurlオプションを付けてインストールします。


$ ./configure --enable-server --with-mysql --with-net-snmp --with-libcurl

すると、次のようなエラーが出て止まってしまいます。


checking for libcurl >= version 7.13.1... no
configure: error: Not found Curl library

CentOS 4.x では、curlのバージョンは7.12なのでダメなようです。

いろいろ調べてみると、結局、curlを自身でバージョンアップするしかないようです。

以下のようにして解決です。


centosinstall

$ cd ~/src/
$ wget ftp://ftp.planetmirror.com/pub/curl/libcurl4-devel-7.16.2-1.i386.rpm
$ wget ftp://ftp.planetmirror.com/pub/curl/libcurl4-7.16.2-1.i386.rpm
$ sudo yum install openssl096b
$ sudo yum remove curl-devel
$ sudo rpm -i libcurl4*


PHP4


ZABBIXのフロントエンドはPHPなのですが、やっとインストールが成功して管理画面にアクセスすると以下のエラーが発生。


PHP Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /u02/zabbix/web/include/copt.lib.php on line 112

調べてみると、PHP5用のコードになっているのが原因のようです。

以下のようにして解決です。


Blank web install - ZABBIX Forums

includes/copt.inc.php を修正し、'static function' を 'function' にすべて置き換えます。


$ vi includes/copt.inc.php
:%s/static function/function/g


これで、無事にアップデートすることができました。

0 件のコメント: