Skip to content

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

@bmfmancini

Description

@bmfmancini

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions