Tested On
OS: CentOS 6.2 x86_64
Nagios Version: 3.5
Nagvis Version: 1.7.7
Hardware: Virtual Machine (VMware Server 2.0.0.2712)
About
Nagvis is an visualization addon for Nagios that can create beautiful maps for Nagios objects.
Prerequisite
Nagios Installation
- we need to install the folllowing prerequisites packages: rrdtool perl-GD
|
|
yum install php-gd php-mbstring graphviz gcc-c++ rsync -y
|
Install and configure mk-livestatus
- Download and install mk-livestatus
|
|
cd /usr/local/src/nagios/
wget http://mathias-kettner.de/download/mk-livestatus-1.2.2p2.tar.gz -O mk-livestatus.tar.gz
tar zxvf mk-livestatus.tar.gz
cd mk-livestatus-*
./configure && make && make install
|
- Add the following lines to Nagios configuration file to configure nagios to load livestatus module
|
|
vi /usr/local/nagios/etc/nagios.cfg
|
|
|
...
broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live
event_broker_options=-1
...
|
|
|
/etc/init.d/nagios reload
|
Install Nagvis
|
|
cd /usr/local/src/nagios/
wget "http://downloads.sourceforge.net/project/nagvis/NagVis%201.7/nagvis-1.7.9.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fnagvis%2Ffiles%2FNagVis%25201.7%2F&ts=1378635410&use_mirror=garr" -O nagvis.tar.gz
tar zxf nagvis.tar.gz
cd nagvis-*
|
- Start Nagvis installation
|
|
chmod +x install.sh
./install.sh -n /usr/local/nagios -p /usr/local/nagvis -l "unix:/usr/local/nagios/var/rw/live" -b mklivestatus -u apache -g apache -w /etc/httpd/conf.d -a y
|
Nagvis installation completed.
Browse to http://
nagios_server_ip_address/nagvis to configure new maps
Please visit
http://www.nagvis.org/ for information about Nagvis configuration and usage.
Post a Comment
Post a Comment