[Pkg-nagios-devel] Bug#626456: nagvis: configuration after install does not work (error MySQLConnectionFailed)

Knaller, Thomas thomas.knaller at jaw.or.at
Thu May 12 05:48:39 UTC 2011

Package: nagvis
Version: 1:1.4.6-1.1
Severity: important

After installing nagvis by apt-get install nagvis, the url http://ip-address/nagvis does not work.

In order to get it working, you need to edit several files:
remove # in front of SOCKET=..

add line broker_module=/usr/lib/ndoutils/ndomod-mysql-3x.o config_file=/etc/nagios3/ndomod.cfg

restart ndoutils and nagios3 services

under the section [backend_ndomy_1]
you need to specify dbname, dbuser and dbpass, even though it's stored
under /etc/dbconfig-common/ndoutils-mysql.conf and there is a file called
/etc/dbconfig-common/nagvis.conf in which there is nothing configured.

after that http://ip-address/nagvis works fine.

automatically adding a link to nagvis from nagios menu would also be great,
this is an edit in /usr/share/nagios3/htdocs/side.php,
specifying something like this:
<li><a href="/nagvis" target="<?php echo $link_target;?>">Nagvis</a></li>

somewhere the nagvis-link fits (i.e. under the link to "Map".

It would be nice to have those changes done automatically after the install or at least have some documentation in /usr/share/doc/nagvis/README.Debian about it.

This issue applies to both x86 and x64 versions of debian 6.

-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nagvis depends on:
ii  dbconfig-common         1.8.46+squeeze.0 common framework for packaging dat
ii  debconf [debconf-2.0]         Debian configuration management sy
ii  graphviz                2.26.3-5         rich set of graph drawing tools
ii  libapache2-mod-php5     5.3.3-7+squeeze1 server-side, HTML-embedded scripti
ii  php5-common             5.3.3-7+squeeze1 Common files for packages built fr
ii  php5-gd                 5.3.3-7+squeeze1 GD module for php5
ii  php5-mysql              5.3.3-7+squeeze1 MySQL module for php5
ii  ucf                     3.0025+nmu1      Update Configuration File: preserv

Versions of packages nagvis recommends:
ii  nagios3                       3.2.1-2    A host/service/network monitoring
ii  ndoutils-nagios3-mysql [ndout 1.4b9-1.1  This provides the NDOUtils for Nag

nagvis suggests no packages.

-- no debconf information

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20110512/eec25f8c/attachment.htm>

More information about the Pkg-nagios-devel mailing list