Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Loading hosts.cfg configuration file #2154

Closed
centreon opened this issue May 16, 2008 · 2 comments
Closed

Loading hosts.cfg configuration file #2154

centreon opened this issue May 16, 2008 · 2 comments
Milestone

Comments

@centreon
Copy link
Collaborator


Author Name: Damien Duponchelle (Damien Duponchelle)
Original Redmine Issue: 15, https://forge.centreon.com/issues/15

Original Assignee: Julien Mathis


Loading hosts.cfg configuration file in Configuration > Nagios > Load results in a doubloon. Hosts appear twice with the exact same ID. During the loading process, a [[MySQL]] query error message appear.

@centreon
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Nicolas Cordier (Nicolas Cordier)
Original Date: 2008-05-16T13:38:41Z


problem for hosts is solved in SVN version, but loading a hosts.cfg still results in duplicate entries for host templates

@centreon
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Sylvestre Ho (Sylvestre Ho)
Original Date: 2008-05-21T09:25:31Z


Problem is solved in SVN. A new function hostExists() has been added in configObject/host/DB-Func, it checks whether or not the host/host template exists, before inserting a new entry.
Also, there is no more error message due to mysql query.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants