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 adding a device, errors may be reported whilst updating templates #4683

Closed
bmfmancini opened this issue Apr 6, 2022 · 0 comments
Closed
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Milestone

Comments

@bmfmancini
Copy link
Member

bmfmancini commented Apr 6, 2022

when running add_device.php from cli erros are thrown

php /var/www/html/cacti/cli/add_device.php --description=testing45678  --ip=4.5.6.9 --template=7  --version=2 --community=(string)--avail=pingorsnmp --poller=2 --timeout=800  
Adding testing45678 (4.5.6.9) as "template" using SNMP v2 with community "(string)"
PHP Notice:  Undefined variable: device_id in /var/www/html/overwatch/lib/api_device.php on line 1077
Success - new device-id: (5446)

From the cacti log

2022-04-06 10:32:07 - CMDPHP PHP ERROR NOTICE Backtrace: (/cli/add_device.php[457]:api_device_save(), /lib/api_device.php[980]:api_device_update_host_template(), /lib/api_device.php[1077]:CactiErrorHandler())
2022-04-06 10:32:07 - ERROR PHP NOTICE: Undefined variable: device_id in file: /var/www/html/overwatch/lib/api_device.php on line: 1077
@bmfmancini bmfmancini added bug Undesired behaviour unverified Some days we don't have a clue labels Apr 6, 2022
@netniV netniV changed the title [1.2.20] - Errors thrown when using add_device.php When adding device, errors may be reported whilst updating templates Apr 6, 2022
@netniV netniV added confirmed Bug is confirm by dev team resolved A fixed issue and removed unverified Some days we don't have a clue labels Apr 6, 2022
@TheWitness TheWitness added this to the v1.2.21 milestone Apr 9, 2022
@netniV netniV changed the title When adding device, errors may be reported whilst updating templates When adding a device, errors may be reported whilst updating templates May 15, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

3 participants