Thursday, July 15, 2010

Issues when installing NagVis to Nagios on CentOS 5.x

Installing Nagvis on Nagios 3.x is quite a challenge on CentOS 5.x. Still in the process of doing it. But I thought I record some of the notes during installation of Nagvis prerequisties.

Before you install the Nagvis prerequisties, do install the following:

1. Install mySQL database
# yum install mysql mysql-devel mysql-server gcc-c++

2. Install PHP and required PHP modules
# yum install php* php-gd php php-mbstring php-mysql

It is useful to install NDOutils as Nagios' NDOutils store all configuration and event data from Nagios into a database, which will help facilidate quicker retrieval and processing event data. Lots of other Nagios-related tools (e.g. NagVis rely on the MySQL backend made available by NDOUtils. Do refer to this excellent article NDOutils on CentOS


3. Compiling Nagvis on CentOS 5.x
Finally, here the unfinished portion, first go to Nagvis Download site
Untar the Nagvis package and install
# tar -zxvf nagvis-1.5.1.tar.gz
# cd nagvis-1.5.1
# ./install.sh -B /usr/bin/nagios

You want to take a look at Install and Configure NagVis although the instruction is for Debian Derivative

1 comment:

Unknown said...

I cannot install ndoutils. It is showing errors like
conftest.c:66:18: error: ltdl.h: No such file or directory