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

During discovery, Automation can throw unexpected errors due to null values #4036

Closed
jdcoats opened this issue Jan 6, 2021 · 3 comments
Closed
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@jdcoats
Copy link

jdcoats commented Jan 6, 2021

Cacti 1.2.17 + PHP7.4

These errors are replicated buy the hundreds when discovering. I assume it is one for each timeout?

2021/01/06 10:54:40 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[430]:automation_get_dns_from_ip(), /lib/api_automation.php[3412]:CactiErrorHandler())
2021/01/06 10:54:40 - ERROR PHP NOTICE: Trying to access array offset on value of type null in file: /var/www/localhost/htdocs/cacti/lib/api_automation.php on line: 3412
@jdcoats jdcoats added bug Undesired behaviour unverified Some days we don't have a clue labels Jan 6, 2021
@TheWitness
Copy link
Member

Thanks, we are prepping the release. So, the timing could not be better.

@TheWitness TheWitness removed the unverified Some days we don't have a clue label Jan 6, 2021
@TheWitness TheWitness added this to the v1.2.17 milestone Jan 6, 2021
TheWitness added a commit that referenced this issue Jan 6, 2021
Automation Discovery Trying to access array offset on value of type null
@TheWitness
Copy link
Member

Fixed. Let us know through separate tickets if you find anything else.

@TheWitness TheWitness added the resolved A fixed issue label Jan 6, 2021
TheWitness added a commit that referenced this issue Jan 6, 2021
Issue after last commit
@TheWitness
Copy link
Member

Try again.

@netniV netniV changed the title Automation Discovery Trying to access array offset on value of type null During discovery, Automation can throw unexpected errors due to null values Apr 12, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 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

No branches or pull requests

2 participants