Skip to content

Commit 229b9e0

Browse files
Added maintenance policy to update health diagnostics failures table on enterprise hubs
ChangeLog: Title Ticket: ENT-6228
1 parent cfd5ed1 commit 229b9e0

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

cfe_internal/enterprise/CFE_hub_specific.cf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,28 @@ bundle agent cfe_internal_refresh_events_table
650650
if => fileexists( "$(cfe_internal_hub_vars.docroot)/api/resource-v1/Event.php" );
651651
}
652652

653+
bundle agent cfe_internal_update_health_failures
654+
# @brief Update table that contains health diagnostics failures hosts
655+
{
656+
meta:
657+
658+
(policy_server|am_policy_hub).enterprise_edition::
659+
660+
"tags" slist => { "enterprise_maintenance" };
661+
662+
commands:
663+
664+
(policy_server|am_policy_hub).enterprise_edition.active_hub::
665+
666+
"$(sys.workdir)/httpd/php/bin/php" -> { "ENT-6228" }
667+
args => "$(cfe_internal_hub_vars.public_docroot)/index.php cli_tasks update_health_failures",
668+
contain => silent,
669+
comment => "This updates health diagnostics failures table. If the table is not updated then it will contain stale data.",
670+
handle => "mpf_update_health_failures",
671+
if => isgreaterthan(countlinesmatching(".*update_health_failures.*", "$(cfe_internal_hub_vars.docroot)/application/controllers/Cli_tasks.php"), 0);
672+
673+
}
674+
653675
body classes cfe_internal_log_utilization(time)
654676
# @brief Define persistent class for period of time to control log volume
655677
{

0 commit comments

Comments
 (0)