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

Hostname vs sysName in devices lists

Details

    Description

      We're adding most of our devices by IP addresses instead of hostname as we don't have DNS records for most of our networking equipment and are using an nmap script to try and add devices answering on their SNMP port with our known communities. Devices are listed and displayed by hostname instead of sysname pretty much everywhere in the UI meaning that by default all devices are listed by IP address. I get around this every time I update my install by changing the $device['hostname'] by $device['sysName'] in the $text variable generation in the html/includes/entities/device.inc.php file but is this something that could be configured in the config.php file or in the global settings instead of being manually adjusted after every update?

      That would go a long way towards helping other people in my team manage our NMS

      Thanks in advance

      Attachments

        Activity

          [OBS-3916] Hostname vs sysName in devices lists
          bot Observium Bot made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          landy Mike Stupalov made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          landy Mike Stupalov made changes -
          landy Mike Stupalov made changes -
          Status Original: In Review [ 10101 ] New: In Progress [ 3 ]
          landy Mike Stupalov made changes -
          Comment [ Please make and attach additional information about the device:
           * full snmp dump from device:
          {noformat}
          snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1 > myagent.snmpwalk
          snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk
          {noformat}
            _If device not support SNMP version 2c, replace -v2c with -v1._

           * If you have problems with discovery or poller processes, please do and attach these debugs:
          {noformat}
          ./discovery.php -d -h <device>
          ./poller.php -d -h <device>
          {noformat}
           
          * additionally attach device and/or vendor specific MIB files

          {color:#505F79}_Note, this comment is added automatically._{color} ]
          landy Mike Stupalov made changes -
          Issue Type Original: Add New Device / OS [ 10002 ] New: Improvement [ 4 ]
          landy Mike Stupalov made changes -
          Assignee Original: Adam Armstrong [ adama ] New: Mike Stupalov [ landy ]
          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 ]
          aarsenault Alexandre Arsenault-Jetté created issue -

          People

            landy Mike Stupalov
            aarsenault Alexandre Arsenault-Jetté
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: