centreon / centreon-archived

Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
https://www.centreon.com
GNU General Public License v2.0
574 stars 240 forks source link

generation of escalations.cfg not correct with multiple pollers #1036

Closed centreon closed 9 years ago

centreon commented 13 years ago

Author Name: Fred Roeling (Fred Roeling) Original Redmine Issue: 2450, https://forge.centreon.com/issues/2450 Original Date: 2011-05-24 Original Assignee: Sylvestre Ho


With multiple pollers the generation of escalations does not show all hostgroups. possible solution include as a diff (version centreon_2.2.0) bug in genEscalations.php

centreon commented 13 years ago

Original Redmine Comment Author Name: Sylvestre Ho (Sylvestre Ho) Original Date: 2011-05-24T13:09:44Z


Hi,

I'll review this patch and keep you updated on this. Thanks :)

centreon commented 13 years ago

Original Redmine Comment Author Name: Sylvestre Ho (Sylvestre Ho) Original Date: 2011-05-24T14:00:16Z


Hi Fred,

Would you please confirm with revision r12274? I wasn't able to apply the patch directly.

Thanks in advance. Regards,

centreon commented 13 years ago

Original Redmine Comment Author Name: Fred Roeling (Fred Roeling) Original Date: 2011-05-24T14:55:10Z


Sylvestre Ho wrote:

Hi Fred,

Would you please confirm with revision r12274? I wasn't able to apply the patch directly.

Thanks in advance. Regards,

Hi Sylvestre Ho,

For as I can see, that patch is correct. It gives the modification that works for me.

FYI. I don't know if it matches all possible configurations. (mixed hostgroups and hosts in the escalation etc). But there were two major fixes.. The SQL queries to insert the correct escalations, and a bug in the keys for the hgHostGenerated array (changed somewhere from hg_id to the hg_name with the new version 2.2.0)

Hope it helps,

Best regards, Fred Roeling Delft University of Technology