Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • None
    • Discovery, Web Interface
    • At revision 3385.

    Description

      Hello,

      we use Cisco Nexus 5548 Switches and we can't see any connection to other Nexus 5548 in CDP-Map of Observium-Web Interface.

      The Problem is that the nexus show cdp neighbors <hostname>(serial number).

      It is possible to delete the (...), so that the format looks like as the old cdp-neighbors version.

      kind regards

      Hendrik

      Attachments

        Activity

          [OBS-131] cisco nexus cdp neighbors

          Fixed in r5042.

          landy Mike Stupalov added a comment - Fixed in r5042.
          martink2 Martin added a comment -

          This solves the problem for me:

          — discovery-protocols.inc.php.orig 2014-02-26 12:36:22.091052839 +0000
          +++ discovery-protocols.inc.php 2014-02-26 12:20:55.384368373 +0000
          @@ -59,6 +59,7 @@
          foreach (array_keys($cdp_if_array) as $entry_key)
          {
          $cdp = $cdp_if_array[$entry_key];
          + $cdp['cdpCacheDeviceId'] = preg_replace('/(.*)$/', "", $cdp['cdpCacheDeviceId']);
          if (is_valid_hostname($cdp['cdpCacheDeviceId']))
          {
          $remote_device_id = dbFetchCell("SELECT `device_id` FROM `devices` WHERE `sysName` = ? OR `hostname` = ?", array($cdp['cdpCacheDeviceId'], $cdp['cdpCacheDeviceId']));

          martink2 Martin added a comment - This solves the problem for me: — discovery-protocols.inc.php.orig 2014-02-26 12:36:22.091052839 +0000 +++ discovery-protocols.inc.php 2014-02-26 12:20:55.384368373 +0000 @@ -59,6 +59,7 @@ foreach (array_keys($cdp_if_array) as $entry_key) { $cdp = $cdp_if_array [$entry_key] ; + $cdp ['cdpCacheDeviceId'] = preg_replace('/(.*)$/', "", $cdp ['cdpCacheDeviceId'] ); if (is_valid_hostname($cdp ['cdpCacheDeviceId'] )) { $remote_device_id = dbFetchCell("SELECT `device_id` FROM `devices` WHERE `sysName` = ? OR `hostname` = ?", array($cdp ['cdpCacheDeviceId'] , $cdp ['cdpCacheDeviceId'] ));

          line 687 in common.php

          mrwebb Steffen Webb added a comment - line 687 in common.php

          Hi Hendrik

          Is

          "It is possible to delete the (...), so that the format looks like as the old cdp-neighbors version."

          that a question? or do you have a solution that can be configured on the Cisco Nexus platform.

          I'm having the same issues...but can live without the map. Though it would be nice

          By the way - LLDP wont work either on the Nexus platform.

          maybe the function [is_valid_hostname] used in discovery-protocols.inc.php line 60 "if (is_valid_hostname($cdp['cdpCacheDeviceId']))"
          can be changed to filter out special chars in beginning or end of the hostname.

          regards Steffen Webb

          mrwebb Steffen Webb added a comment - Hi Hendrik Is "It is possible to delete the (...), so that the format looks like as the old cdp-neighbors version." that a question? or do you have a solution that can be configured on the Cisco Nexus platform. I'm having the same issues...but can live without the map. Though it would be nice By the way - LLDP wont work either on the Nexus platform. maybe the function [is_valid_hostname] used in discovery-protocols.inc.php line 60 "if (is_valid_hostname($cdp ['cdpCacheDeviceId'] ))" can be changed to filter out special chars in beginning or end of the hostname. regards Steffen Webb

          People

            adama Adam Armstrong
            hendrik.schafer Hendrik Schäfer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: