mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Create a case for routeros. RouterOS doesn't support the bgpPeerInUpdateElapsedTime object, so when LibreNMS does to insert a peer update into the database from a MikroTik router, you see the following error: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `librenms`.`bgpPeers`.`bgpPeerInUpdateElapsedTime` at row 2 (Connection: mysql, SQL: UPDATE `bgpPeers` set `bgpPeerAdminStatus`=start,`bgpPeerInUpdateElapsedTime`=... To fix this, special-case routeros and note that the object is not yet supported. * Use spaces, not tabs. * Use set_numeric() to ensure bgpPeerInUpdateElapsedTime is a number. --------- Co-authored-by: Joe Clarke <jclarke@cisco.com>