I have already written a step-by-step howto here
But this one is for CentOS,Fedora,RedHat and the new version of NagVis 1.4.4 released on 2009-10-15.
Requiriments:
Add grpahviz repo
# vim /etc/yum.repos.d/graphviz.repo
[graphviz-stable]
name=Graphviz – RHEL $releasever – $basearch
baseurl=http://www.graphviz.org/pub/graphviz/stable/redhat/el$releasever/$basearch/os/
enabled=1
gpgcheck=0
# yum -y install grpahviz
# yum –enablerepo=graphviz-snapshot update ‘graphviz*’
Install NagVis
# wget https://sourceforge.net/projects/nagvis/files/NagVis%201.4%20%28stable%29/NagVis-1.4.4/nagvis-1.4.4.tar.gz/download
# tar -zxvf nagvis-1.4.4.tar.gz
# cd nagvis-1.4.4.tar.gz
# ./install.sh -i ndo2db -u apache -g apache
Set the user/name/db where the NDO DB is at inside also dbinstancename (uncomment it):
# vim /usr/local/nagios/share/nagvis/etc/nagvis.ini.php
[backend_ndomy_1]

; instance name for tables in NDO-db
dbinstancename=”Central”
If you dont know your dbinstancename take a look in ndomod.cfg, should
be the same name as its set there
# service httpd restart
Then just open your browser in EDIT mode go to:
http:///nagios/nagvis/wui/index.php
Then just open your browser in USER mode go to:
http:///nagios/nagvis/index.php
Automap is quite nice and it does work.
More about NagVis here:
http://felipeferreira.net/?p=524

Tags: , , , , , , ,

2 thoughts on “How to install nagvis

  1. I don’t understand the DB relationship between NDO and Nagios configs.
    Could you please post the contents of the following files?
    1. /usr/local/nagios/share/nagvis/etc/nagvis.ini.php
    2. /usr/local/nagios/etc/ndo2db.cfg
    3. /usr/local/nagios/etc/ndomod.cfg
    Also, I don’t have a “NDO” or “nagios” database. Centreon installed 3 databases:
    1. centreon
    2. centstatus
    3. centstorage
    Additionally, there is no mysql database for Nagios. Just Centreon.
    -Sean

  2. Hello,
    I am sorry to bother with that little problem, but i cant resolve it anyway…
    I use a FAN operating system (centreon with nagios,nagvis etc…) and i am able to access at any webpage of the system but i cant administrate the maps on nagvis.
    When i want to create a map for exemple, it says nagiosadmin has no permission to do it…. i dont know where i have to change something to solve that issue…
    thank you 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *