Centreon-Community / centreon-gmap

Display your resources on maps with Centreon Google Map module.
0 stars 2 forks source link

Cannot delete double (or more) exactly the same host definitions #1

Closed leoncx closed 9 years ago

leoncx commented 9 years ago

Author Name: Zlatko Trescec (Zlatko Trescec) Original Redmine Issue: 1567, https://community.centreon.com/issues/1567 Original Date: 2012/02/28


Hi,

When adding host definitions everything is OK. But, this adding has no check if there is already a definition of that host. Maybe this is suppose to behave like that after all, but, this contradict with the deletion actions of those duplicates. When I try to delete some host, there is no duplicate entries which I need/want to delete. Clicking on that red X does nothing.

However, I managed to delete those duplicates by doing some query directly to the database "centreon":

delete locations.* from locations,locations as vtable where (locations.l_id>vtable.l_id) and (locations.h_id=vtable.h_id);