Instance name "default" in backend "ndomy1" is not valid.

Bug #776039 reported by Brook Harty
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nagvis (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: nagvis

 When you install nagios3/ndoutils/nagvis/mysql together, nagvis cant connect to the DB with the normal default settings. This should work out of the box, but errors due to a unconfigured nagvis.ini.php.

Error: "Instance name "default" in backend "ndomy1" is not valid."

The install doesnt have a configure script, so you have to configure manually to generic defaults, but it still errors.

Edit file - /etc/nagvis/nagvis.ini.php

; in this example the ID of the Backend is "ndomy_1" you can define another ID.
[backend_ndomy_1]
; type of backend - MUST be set
backendtype="ndomy"
; hostname for NDO-db
dbhost=localhost
; portname for NDO-db
dbport=3306
; database name for NDO-db
dbname=ndoutils
; username for NDO-db
dbuser=root
; password for NDO-db
dbpass=XXXXX
; prefix for tables in NDO-db
dbprefix="nagios_"
; instance name for tables in NDO-db
dbinstancename="default"
; maximum delay of the NDO Database in seconds
maxtimewithoutupdate=180
; path to the cgi-bin of this backend
htmlcgi="/nagios/cgi-bin"

Revision history for this message
Brook Harty (brookharty) wrote :
Revision history for this message
Peter Newman (peternewman) wrote :

You also have to set ENABLE_NDOUTILS=1 in /etc/default/ndoutils and configure NDOUtils as a broker in Nagios as per Configure as per /usr/share/doc/ndoutils-nagios3-mysql/README.Debian . Restart everything and then it should start dumping into the DB and burst into life.

Another gotcha is the default database name and username/password combo for NDOUtils and NagVis differ, so if you just okay through the dialogs, as I did at first, then NagVis can't talk to the NDOUtils DB either.

Revision history for this message
jaromrax (jaromrax) wrote :

I am in troubles in debian squeeze. I followed the above advices and + I had to change output to
output=/tmp/ndo.sock
in both ndomod.cfg and ndo2db.cfg to see it running.
Really pain to get it run.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.