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

When moving a device between pollers, errors may occur #4659

Closed
bmfmancini opened this issue Apr 2, 2022 · 1 comment
Closed

When moving a device between pollers, errors may occur #4659

bmfmancini opened this issue Apr 2, 2022 · 1 comment
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@bmfmancini
Copy link
Member

In the event of a remote poller outage you may want to re-asign devices to another remote poller
while testing this scenario I found that cacti contiously tries to call back to the offline poller

Even if you disable the offline remote poller cacti still tries to call back to the poller
it would be better to have logic if the poller is disabled or in heartbeat status dont try to connect at all
A warning or notice should follow for admin they must resync the poller when it comes online to make sure the host table is up to date

2022-04-01 21:32:29 - CMDPHP PHP ERROR WARNING Backtrace: (/host.php[72]:form_actions(), /host.php[304]:api_device_change_options(), /lib/api_device.php[329]:api_device_purge_from_remote(), /lib/api_device.php[106]:CactiErrorHandler())
2022-04-01 21:32:29 - ERROR PHP WARNING: Invalid argument supplied for foreach() in file: /var/www/html/cacti/lib/api_device.php on line: 106
2022-04-01 21:32:29 - REPLICATE ERROR: Unable to connect to Remote Data Collector poller1
2022-04-01 21:32:27 - SYSTEM STATS: Time:25.7039 Method:spine Processes:1 Threads:1 Hosts:16 HostsPerProcess:16 DataSources:32 RRDsProcessed:0
2022-04-01 21:32:11 - CMDPHP PHP ERROR WARNING Backtrace: (/host.php[72]:form_actions(), /host.php[304]:api_device_change_options(), /lib/api_device.php[329]:api_device_purge_from_remote(), /lib/api_device.php[106]:CactiErrorHandler())
2022-04-01 21:32:11 - ERROR PHP WARNING: Invalid argument supplied for foreach() in file: /var/www/html/cacti/lib/api_device.php on line: 106
2022-04-01 21:32:11 - REPLICATE ERROR: Unable to connect to Remote Data Collector poller1
2022-04-01 21:31:53 - CMDPHP PHP ERROR WARNING Backtrace: (/host.php[72]:form_actions(), /host.php[304]:api_device_change_options(), /lib/api_device.php[329]:api_device_purge_from_remote(), /lib/api_device.php[106]:CactiErrorHandler())
2022-04-01 21:31:53 - ERROR PHP WARNING: Invalid argument supplied for foreach() in file: /var/www/html/cacti/lib/api_device.php on line: 106
2022-04-01 21:31:53 - REPLICATE ERROR: Unable to connect to Remote Data Collector poller1
2022-04-01 21:31:35 - CMDPHP PHP ERROR WARNING Backtrace: (/host.php[72]:form_actions(), /host.php[304]:api_device_change_options(), /lib/api_device.php[329]:api_device_purge_from_remote(), /lib/api_device.php[106]:CactiErrorHandler())
2022-04-01 21:31:35 - ERROR PHP WARNING: Invalid argument supplied for foreach() in file: /var/www/html/cacti/lib/api_device.php on line: 106
2022-04-01 21:31:35 - REPLICATE ERROR: Unable to connect to Remote Data Collector poller1

@bmfmancini bmfmancini added bug Undesired behaviour unverified Some days we don't have a clue labels Apr 2, 2022
@TheWitness TheWitness added resolved A fixed issue and removed unverified Some days we don't have a clue labels Apr 2, 2022
@TheWitness TheWitness added this to the v1.2.20 milestone Apr 2, 2022
@bmfmancini
Copy link
Member Author

Testing is good on this one

@netniV netniV changed the title [1.2.20] - Errors thrown when moving device from a offline poller to another poller When moving a device between pollers, errors may occur Apr 3, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants