How to install nagvis

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.

Add grpahviz repo
# vim /etc/yum.repos.d/graphviz.repo
name=Graphviz – RHEL $releasever – $basearch
# yum -y install grpahviz
# yum –enablerepo=graphviz-snapshot update ‘graphviz*’

Install NagVis
# wget
# tar -zxvf nagvis-1.4.4.tar.gz
# cd nagvis-1.4.4.tar.gz
# ./ -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

; instance name for tables in NDO-db

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:

Then just open your browser in USER mode go to:

Automap is quite nice and it does work.

More about NagVis here:

2 Thoughts

  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.


  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 *