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

Automation raises errors when default snmp options is set to none #3988

Closed
bmfmancini opened this issue Dec 7, 2020 · 2 comments
Closed
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@bmfmancini
Copy link
Member

Hey Guys I have been playing around with the latest release and found a issue with autom8

If you do a network scan with the below settings

image

You will net the below errors


2020-12-06  21:29:58 - CMDPHP SQL Backtrace:   (/poller_automation.php[358]:discoverDevices(),  /poller_automation.php[790]:db_execute(),  /lib/database.php[213]:db_execute_prepared())
--
2020-12-06 21:29:58 - CMDPHP ERROR: A DB Exec Failed!, Error:  Incorrect integer value: '' for column  `cacti`.`automation_devices`.`snmp_version` at row 1
2020-12-06 21:29:58 - CMDPHP SQL Backtrace:   (/poller_automation.php[358]:discoverDevices(),  /poller_automation.php[790]:db_execute(),  /lib/database.php[213]:db_execute_prepared())
2020-12-06 21:29:58 - CMDPHP ERROR: A DB Exec Failed!, Error:  Incorrect integer value: '' for column  `cacti`.`automation_devices`.`snmp_version` at row 1
2020-12-06 21:29:58 - CMDPHP SQL Backtrace:   (/poller_automation.php[358]:discoverDevices(),  /poller_automation.php[790]:db_execute(),  /lib/database.php[213]:db_execute_prepared())
2020-12-06 21:29:58 - CMDPHP ERROR: A DB Exec Failed!, Error:  Incorrect integer value: '' for column  `cacti`.`automation_devices`.`snmp_version` at row 1
2020-12-06 21:29:58 - CMDPHP SQL Backtrace:   (/poller_automation.php[358]:discoverDevices(),  /poller_automation.php[790]:db_execute(),  /lib/database.php[213]:db_execute_prepared())
2020-12-06 21:29:58 - CMDPHP ERROR: A DB Exec Failed!, Error:  Incorrect integer value: '' for column  `cacti`.`automation_devices`.`snmp_version` at row 1
2020-12-06 21:29:58 - CMDPHP SQL Backtrace:   (/poller_automation.php[358]:discoverDevices(),  /poller_automation.php[790]:db_execute(),  /lib/database.php[213]:db_execute_prepared())
2020-12-06 21:29:58 - CMDPHP SQL Backtrace:   (/poller_automation.php[358]:discoverDevices(),  /poller_automation.php[790]:db_execute(),  /lib/database.php[213]:db_execute_prepared())
2020-12-06 21:29:58 - CMDPHP ERROR: A DB Exec Failed!, Error:  Incorrect integer value: '' for column  `cacti`.`automation_devices`.`snmp_version` at row 1
2020-12-06 21:29:58 - CMDPHP ERROR: A DB Exec Failed!, Error:  Incorrect integer value: '' for column  `cacti`.`automation_devices`.`snmp_version` at row 1
@bmfmancini bmfmancini added bug Undesired behaviour unverified Some days we don't have a clue labels Dec 7, 2020
@TheWitness
Copy link
Member

Thanks for testing Sean. I'm not surprised in that it's totally biased towards snmp today. Good catch.

@TheWitness TheWitness removed the unverified Some days we don't have a clue label Dec 9, 2020
@TheWitness TheWitness added this to the v1.2.17 milestone Dec 9, 2020
@netniV
Copy link
Member

netniV commented Dec 14, 2020

This shouldn't occur if the snmp version is being read from an existing device, which is what the code suggests. The snmp_version in the db for both the host table and the automation table is a tinyint. This would suggest that the blank value is being sent in code.

@TheWitness TheWitness changed the title 1.2.16 Automation raises errors when default snmp options is set to none Automation raises errors when default snmp options is set to none Dec 18, 2020
TheWitness added a commit that referenced this issue Dec 18, 2020
Automation raises errors when default snmp options is set to none
@TheWitness TheWitness added the resolved A fixed issue label Dec 18, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 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

3 participants