evil.czProblem: 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.
link: http://forum.centreon.com/showthread.php?t=6993
Solution: 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
[*] How to re-create ndo database:
=====================================
Use this script and run it as a root.
------------------------------
#!/bin/sh
echo -n 'Provide MySQL root (administrator) password: '
read pwd
mysqldump -u root --password=$pwd --add-drop-table --no-data ndo > ndo.sql
mysql -u root --password=$pwd ndo < ndo.sql
/etc/init.d/ndo2db restart
/etc/init.d/nagios restart
------------------------------
Recent comments
5 days 11 hours ago
6 days 22 hours ago
2 weeks 3 days ago
2 weeks 3 days ago
2 weeks 6 days ago
2 weeks 6 days ago
3 weeks 4 days ago
3 weeks 4 days ago
4 weeks 3 days ago
9 weeks 3 days ago