PDA

View Full Version : 2 hosts in monitoring 1 host in configuration


dengruns
11-10-2008, 05:47 PM
Hi,
I've installed Nagios 3.04, ndo-utils 1.4b7, and centreon 2 rc7. After I exported the settings from centreon to nagios, I see in centreon under monitoring 2 hosts: localhost and centreon-server. Under configuration, hosts, I see only the centreon-server. Also in Nagios I see only centreon-server and not localhost. How can I delete localhost?

I've also tried to import localhost settings from my Nagios installation, with a fresh install of both Nagios and Centreon. But then I get all checks double for the localhost.

I hope someone can help me with this.

Greetings,

Dennis

dengruns
11-18-2008, 11:06 AM
Hi,

I've solved the problem. I've deleted the ndo database and recreated it. After that the problem was solved.

There was also a problem with ndo database. I got errors in /var/log/messages:
ndo2db: Error: mysql_query() failed for 'INSERT INTO nagios_configfilevariables SET instance_id='2', configfile_id='12', varname='cfg_file', varvalue='/usr/local/nagios/etc/meta_contact\.cfg''

I've solved this with on the ndo database:
Mysql> alter table nagios_configfilevariables drop index instance_id;
Mysql> alter table nagios_configfilevariables add index (instance_id, configfile_id, varname);

Greetings,
Dennis

Jogarem
01-07-2009, 01:11 PM
Hi,
I've solved this with on the ndo database:
Mysql> alter table nagios_configfilevariables drop index instance_id;
Mysql> alter table nagios_configfilevariables add index (instance_id, configfile_id, varname);

Greetings,
Dennis

Many thanks Dennis!
I had the same problem and this fixed it for me..

Jogarem