Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4117

Discover on hostname

    XMLWordPrintable

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: