Description
shows the same neighbor on many neighbor ethernet ports
debug output
+----------+--------+---------------------------------+------+----------------------+---------+
|
| Protocol | ifName | Remote: hostname | port | platform | version |
|
+----------+--------+---------------------------------+------+----------------------+---------+
|
| LLDP | 1:25 | bv-itgrp-sw.itgrp.dk | 1:52 | ExtremeXOS (X460G... | ... |
|
| LLDP | 1:30 | BV20-itgruppen (172.16.200.190) | 1:52 | ExtremeXOS (X460G... | ... |
|
| LLDP | 1:41 | kb-bv18.bjerg.info (10.0.0.33) | 1:52 | ExtremeXOS (X460G... | ... |
|
| LLDP | 1:42 | GS1920 (192.168.1.100) | 1:52 | ExtremeXOS (X460G... | ... |
|
| LLDP | 1:44 | bv-esxi-sw.itgrp.dk | 1:52 | ExtremeXOS (X460G... | ... |
|
| LLDP | 1:51 | sw14-bv12.itgrp.dk | 1:52 | ExtremeXOS (X460G... | ... |
|
| LLDP | 1:52 | sw12-bv30.itgrp.dk | 1:52 | ExtremeXOS (X460G... | ... |
|
+----------+--------+---------------------------------+------+----------------------+---------+
|
|
|
|
^[[1;44;96m > $valid[$module]^[[0m^[[44;36m /opt/observium/includes/discovery/neighbours.inc.php:61 ^[[0m
|
array(
|
[2894] => array(
|
[bv-itgrp-sw.itgrp.dk] => array(
|
[1:48] => int(1)
|
)
|
)
|
[2899] => array(
|
[BV20-itgruppen-172.16.200.190] => array(
|
[74 AC B9 29 E9 83 ] => int(1)
|
)
|
)
|
[2910] => array(
|
[kb-bv18.bjerg.info-10.0.0.33] => array(
|
[Gi1/0/48] => int(1)
|
)
|
)
|
[2911] => array(
|
[GS1920-192.168.1.100] => array(
|
[25] => int(1)
|
)
|
)
|
[2913] => array(
|
[bv-esxi-sw.itgrp.dk] => array(
|
[1:48] => int(1)
|
)
|
)
|
[2920] => array(
|
[sw14-bv12.itgrp.dk] => array(
|
[1:52] => int(1)
|
)
|
)
|
[2921] => array(
|
[sw12-bv30.itgrp.dk] => array(
|
[1:52] => int(1)
|
)
|
)
|
)
|
just found the reason for this problem
in .mysql_history
drop tables neighbours;
CREATE TABLE `neighbours` ( `neighbour_id` int(11) NOT NULL, `device_id` int(11) DEFAULT 0, `port_id` int(11) DEFAULT NULL, `remote_port_id` int(11) DEFAULT NULL, `active` tinyint(1) NOT NULL DEFAULT 1, `protocol` varchar(11) CHARACTER SET utf8 DEFAULT NULL, `remote_hostname` varchar(253) CHARACTER SET utf8 NOT NULL, `remote_port` varchar(128) CHARACTER SET utf8 NOT NULL, `remote_platform` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `remote_version` text COLLATE utf8_unicode_ci DEFAULT NULL, `remote_address` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
----------------------------
i have maked a clone of my vm, and the try run
DROP TABLE `neighbours`;
CREATE TABLE `neighbours` ( `neighbour_id` int(11) NOT NULL, `device_id` int(11) DEFAULT 0, `port_id` int(11) DEFAULT NULL, `remote_port_id` int(11) DEFAULT NULL, `active` tinyint(1) NOT NULL DEFAULT 1, `protocol` varchar(11) CHARACTER SET utf8 DEFAULT NULL, `remote_hostname` varchar(253) CHARACTER SET utf8 NOT NULL, `remote_port` varchar(128) CHARACTER SET utf8 NOT NULL, `remote_platform` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `remote_version` text COLLATE utf8_unicode_ci DEFAULT NULL, `remote_address` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
ALTER TABLE `neighbours` ADD INDEX `count` (`port_id`, `active`);
ALTER TABLE `neighbours` CHANGE `remote_version` `remote_version` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;
ALTER TABLE `neighbours` CHANGE `remote_platform` `remote_platform` VARCHAR(256) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;
UPDATE `neighbours` SET `remote_port_id` = NULL WHERE `remote_port_id` = '0';
ALTER TABLE `neighbours` ADD `device_id` INT NULL DEFAULT '0' AFTER `neighbour_id`, ADD INDEX `device_id` (`device_id`);
UPDATE `neighbours` INNER JOIN `ports` ON `neighbours`.`port_id` = `ports`.`port_id` SET `neighbours`.`device_id` = `ports`.`device_id`;
DELETE FROM `neighbours` WHERE `device_id` = '0';
ALTER TABLE `neighbours` CHANGE `protocol` `protocol` VARCHAR(11) CHARACTER SET latin1 COLLATE latin1_general_ci NULL DEFAULT NULL, CHANGE `remote_hostname` `remote_hostname` VARCHAR(253) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL, CHANGE `remote_platform` `remote_platform` VARCHAR(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `remote_address` `remote_address` VARCHAR(128) CHARACTER SET latin1 COLLATE latin1_general_ci NULL DEFAULT NULL;
ALTER TABLE `neighbours` ADD `autodiscovery_id` INT NULL DEFAULT NULL AFTER `active`;
ALTER TABLE `neighbours` ADD `last_change` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `remote_address`;
and then run a /opt/observium/discovery.php -h all -m neighbours
hope this will work