Skip to content

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

Closed
@bmfmancini

Description

@bmfmancini

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

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