Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • Professional Edition
    • Discovery
    • None

    Description

      Hi,

      Would it be possible to get a lldp discovered device like below automatically added in some way?

      SQL[SELECT `device_id` FROM `devices` WHERE `sysName` = '<FQDN>' AND `disabled` = '0']
      ROWS[0]
      SQL RUNTIME[0.00030303s]
      AUTODISCOVERY DEVEL: hostname & ip DB found

       > $db_entry /opt/observium/includes/discovery/functions.inc.php:636 
      array(
        [autodiscovery_id]      => string(4) "2967"
        [poller_id]             => string(1) "0"
        [device_id]             => string(3) "235"
        [remote_hostname]       => string(31) "<FQDN>"
        [remote_ip]             => string(7) "0.0.0.0"
        [remote_device_id]      => null
        [protocol]              => string(4) "LLDP"
        [added]                 => string(19) "2022-05-16 16:35:51"
        [last_checked]          => string(19) "2022-05-19 14:27:47"
        [last_reason]           => string(12) "no_ip_permit"
        [last_checked_unixtime] => string(10) "1652963267"
      )
      Remote device checked 26s ago (less than 1 day)
       o Trying to discover host <****> (0.0.0.0) through LLDP (xdp)
      <FQDN> passed with invalid IP (0.0.0.0), not permitted for autodiscovery.

      SQL[UPDATE `autodiscovery` set `last_checked` =CURRENT_TIMESTAMP() WHERE `autodiscovery_id` = '2967']
      ROWS[1]

      Real FQDN replaced with <FQDN>.

       

      It seems like we can't get passed the fact that discovery use remote_address or remote_ip (0.0.0.0), even thou remote_hostname value <FQDN> is resolvable.

      We can add device manually using <FQDN>.

      Is there any trick available to fix this?

       

      Best Regards
      Emil Vedin

      Attachments

        Activity

          [OBS-4117] Discover on hostname
          bot Observium Bot made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          landy Mike Stupalov made changes -
          Issue Type Original: Help [ 10200 ] New: Improvement [ 4 ]
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          landy Mike Stupalov made changes -
          Status Original: Pending Response [ 10000 ] New: In Progress [ 3 ]
          landy Mike Stupalov made changes -
          Status Original: In Review [ 10101 ] New: Pending Response [ 10000 ]
          landy Mike Stupalov made changes -
          Description Original: Hi,

          Would it be possible to get a lldp discovered device like below automatically added in some way?

          SQL[SELECT `device_id` FROM `devices` WHERE `sysName` = '<FQDN>' AND `disabled` = '0']
          ROWS[0]
          SQL RUNTIME[0.00030303s]
          AUTODISCOVERY DEVEL: hostname & ip DB found


           > $db_entry /opt/observium/includes/discovery/functions.inc.php:636 
          array(
            [autodiscovery_id]      => string(4) "2967"
            [poller_id]             => string(1) "0"
            [device_id]             => string(3) "235"
            [remote_hostname]       => string(31) "<FQDN>"
            [remote_ip]             => string(7) "0.0.0.0"
            [remote_device_id]      => null
            [protocol]              => string(4) "LLDP"
            [added]                 => string(19) "2022-05-16 16:35:51"
            [last_checked]          => string(19) "2022-05-19 14:27:47"
            [last_reason]           => string(12) "no_ip_permit"
            [last_checked_unixtime] => string(10) "1652963267"
          )
          Remote device checked 26s ago (less than 1 day)
           o Trying to discover host esx010.pcl.seki.gic.ericsson.se (0.0.0.0) through LLDP (xdp)
          <FQDN> passed with invalid IP (0.0.0.0), not permitted for autodiscovery.

          SQL[UPDATE `autodiscovery` set `last_checked` =CURRENT_TIMESTAMP() WHERE `autodiscovery_id` = '2967']
          ROWS[1]

          Real FQDN replaced with <FQDN>.

           

          It seems like we can't get passed the fact that discovery use remote_address or remote_ip (0.0.0.0), even thou remote_hostname value <FQDN> is resolvable.

          We can add device manually using <FQDN>.

          Is there any trick available to fix this?

           

          Best Regards
          Emil Vedin
          New: Hi,

          Would it be possible to get a lldp discovered device like below automatically added in some way?

          SQL[SELECT `device_id` FROM `devices` WHERE `sysName` = '<FQDN>' AND `disabled` = '0']
          ROWS[0]
          SQL RUNTIME[0.00030303s]
          AUTODISCOVERY DEVEL: hostname & ip DB found


           > $db_entry /opt/observium/includes/discovery/functions.inc.php:636 
          array(
            [autodiscovery_id]      => string(4) "2967"
            [poller_id]             => string(1) "0"
            [device_id]             => string(3) "235"
            [remote_hostname]       => string(31) "<FQDN>"
            [remote_ip]             => string(7) "0.0.0.0"
            [remote_device_id]      => null
            [protocol]              => string(4) "LLDP"
            [added]                 => string(19) "2022-05-16 16:35:51"
            [last_checked]          => string(19) "2022-05-19 14:27:47"
            [last_reason]           => string(12) "no_ip_permit"
            [last_checked_unixtime] => string(10) "1652963267"
          )
          Remote device checked 26s ago (less than 1 day)
           o Trying to discover host <****> (0.0.0.0) through LLDP (xdp)
          <FQDN> passed with invalid IP (0.0.0.0), not permitted for autodiscovery.

          SQL[UPDATE `autodiscovery` set `last_checked` =CURRENT_TIMESTAMP() WHERE `autodiscovery_id` = '2967']
          ROWS[1]

          Real FQDN replaced with <FQDN>.

           

          It seems like we can't get passed the fact that discovery use remote_address or remote_ip (0.0.0.0), even thou remote_hostname value <FQDN> is resolvable.

          We can add device manually using <FQDN>.

          Is there any trick available to fix this?

           

          Best Regards
          Emil Vedin
          landy Mike Stupalov made changes -
          Status Original: Pending Response [ 10000 ] New: In Review [ 10101 ]
          bot Observium Bot made changes -
          Status Original: Open [ 1 ] New: Pending Response [ 10000 ]
          eemived Emil Vedin created issue -

          People

            landy Mike Stupalov
            eemived Emil Vedin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: