Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote pollers do not force connection when online #4477

Closed
bmfmancini opened this issue Nov 25, 2021 · 4 comments
Closed

Remote pollers do not force connection when online #4477

bmfmancini opened this issue Nov 25, 2021 · 4 comments
Labels
automation Automation related issue bug Undesired behaviour poller Data Collection related issue resolved A fixed issue
Milestone

Comments

@bmfmancini
Copy link
Member

Hey Guys,

When running automation on 1.2.19 I see that when you select a remote poller
the scan does not fire but if you select the main poller it works

automation_issue

@bmfmancini bmfmancini added bug Undesired behaviour unverified Some days we don't have a clue labels Nov 25, 2021
@bmfmancini
Copy link
Member Author

Reverting back to poller_automation.php fixes my issue not many changes that I see

@bmfmancini
Copy link
Member Author

Issue is with this block here

if ($config['poller_id'] > 1) {
	if ($config['connection'] == 'online') {
		db_force_remote_cnn();
	} else {
		cacti_log('WARNING: Main Cacti database offline or in recovery.  Can not run automation', false, 'AUTOM8');
		admin_email(__('Cacti System Warning'), __('WARNING: Main Cacti database offline or in recovery'));
	}

	exit(1);
}

I removed exit(1) and the issue is resolved for the original file however this is not a good fix
Will need to debug this

@netniV
Copy link
Member

netniV commented Nov 25, 2021

The exit looks like it should be in the warning section

@bmfmancini
Copy link
Member Author

bmfmancini commented Nov 25, 2021 via email

@netniV netniV changed the title [1.2.19] Automation does not work on remote pollers Remote pollers do not force connection when online Nov 25, 2021
@netniV netniV added automation Automation related issue poller Data Collection related issue resolved A fixed issue and removed unverified Some days we don't have a clue labels Nov 25, 2021
@netniV netniV closed this as completed Nov 25, 2021
@netniV netniV added this to the v1.2.20 milestone Nov 25, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Feb 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automation Automation related issue bug Undesired behaviour poller Data Collection related issue resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants