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

Disabling a Data Collector can cause unexpected errors #3663

Closed
DatBoiTroy opened this issue Jul 7, 2020 · 1 comment · Fixed by #3680
Closed

Disabling a Data Collector can cause unexpected errors #3663

DatBoiTroy opened this issue Jul 7, 2020 · 1 comment · Fixed by #3680
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@DatBoiTroy
Copy link

Describe the bug

When Data Collection Enabled is unchecked under Console > Settings > Poller, undefined variable PHP errors are logged during each polling cycle until data collection is re-enabled.

To Reproduce

Steps to reproduce the behavior:

Cacti Version 1.2.12

  1. Go to Console > Settings > Poller and uncheck the box for Data Collection Enabled.
  2. Wait for polling cycle to pass then view the log.

Expected behavior

No PHP errors.

Error Output

020/07/06 22:00:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller.php[801]:CactiErrorHandler())

2020/07/06 22:00:02 - ERROR PHP NOTICE: Undefined variable: hosts_per_process in file: /var/www/html/cacti/poller.php on line: 801
2020/07/06 22:00:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller.php[800]:CactiErrorHandler())
2020/07/06 22:00:02 - ERROR PHP NOTICE: Undefined variable: method in file: /var/www/html/cacti/poller.php on line: 800

Desktop (please complete the following information)

  • OS: Ubuntu 18.04 LTS
  • PHP Version: 7.2
@DatBoiTroy DatBoiTroy added bug Undesired behaviour unverified Some days we don't have a clue labels Jul 7, 2020
@bmfmancini
Copy link
Member

I confirm I see the same thing

2020-07-07 09:53:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller.php[797]:CactiErrorHandler())
2020-07-07 09:53:01 - ERROR PHP NOTICE: Undefined variable: hosts_per_process in file: /var/www/html/cacti/poller.php on line: 797
2020-07-07 09:53:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller.php[796]:CactiErrorHandler())
2020-07-07 09:53:01 - ERROR PHP NOTICE: Undefined variable: method in file: /var/www/html/cacti/poller.php on line: 796

@TheWitness TheWitness added resolved A fixed issue and removed unverified Some days we don't have a clue labels Jul 11, 2020
@TheWitness TheWitness linked a pull request Jul 11, 2020 that will close this issue
@TheWitness TheWitness added this to the 1.2.13 milestone Jul 11, 2020
@netniV netniV changed the title v1.2.12 Disabling Data Collection Causes Undefined Variable PHP Errors Disabling a Data Collector can cause unexpected errors Jul 12, 2020
@netniV netniV closed this as completed Jul 13, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2020
netniV added a commit that referenced this issue Jun 30, 2021
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

Successfully merging a pull request may close this issue.

4 participants