-
-
Notifications
You must be signed in to change notification settings - Fork 436
Support execution of custom functions at poller bottom for remote pollers #4417
Copy link
Copy link
Closed
Labels
enhancementGeneral tag for an enhancementGeneral tag for an enhancementresolvedA fixed issueA fixed issue
Milestone
Description
Feature Request
Hook 'poller_finishing' could probably used for that approach too, but I'm wondering why we are not supporting a hook to perform individual plugin tasks at the bottom of a remote poller run.
The current code of poller.php does not take this case into account - If I'm not totally wrong. From my point of view a remote poller is not just stupid collector. It should be workhorse.
`/* start post data processing */
if ($poller_id == 1) {
multiple_poller_boost_check();
poller_replicate_check();
snmpagent_poller_bottom();
boost_poller_bottom();
dsstats_poller_bottom();
dsdebug_poller_bottom();
reports_poller_bottom();
spikekill_poller_bottom();
automation_poller_bottom();
poller_maintenance();
api_plugin_hook('poller_bottom');
bad_index_check($mibs);
} else {
// flush the boost table if in recovery mode
if ($poller_id > 1 && $config['connection'] == 'recovery') {
cacti_log('NOTE: Remote Data Collection to force processing of boost records.', true, 'POLLER');
poller_recovery_flush_boost($poller_id);
}
automation_poller_bottom();
poller_maintenance();
}
`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementGeneral tag for an enhancementGeneral tag for an enhancementresolvedA fixed issueA fixed issue