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

Discovery fails on Didactum EMS boxes

Details

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

    Description

      Our three didactum environmental sensor boxes failed to be discovered correctly. Observium just showed them as "generic linux devices" and therefore did not query the private mibs correctly.

      The problem was with os discovery because the system Object ID reported by the devices was .1.3.6.1.4.1.46501, not .1.3.6.1.4.1.8072.3.2.10 as stated in the os-detection include file.

      Solution was to change the file /opt/observium/includes/definitions/os/didactum.inc.php to:

      $config['os'][$os]['discovery'][] = array(
      'sysObjectID' => '.1.3.6.1.4.1.8072.3.2.10',
      'sysDescr' => '/Didactum EMS/',
      );

       

      After a new discovery, the boxes where shown correctly with the private mibs enabled.

       

      Thanks,

      David Sandfort

      Attachments

        Activity

          [OBS-3814] Discovery fails on Didactum EMS boxes

          Tnx, fixed in r11479.

          landy Mike Stupalov added a comment - Tnx, fixed in r11479.
          DavidSandfort David Sandfort added a comment - - edited

          Standard version of didactum.inc.php as delivered by observium svn:

          root@observium:/opt/observium# ./discovery.php -d -m os -h 192.168.12.25
          DEBUG!
           
          CMD[/usr/bin/svn info /opt/observium]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0045s]
          CMD EXITDELAY[10ms]
          STDOUT[
          Path: .
          Working Copy Root Path: /opt/observium
          URL: http://svn.observium.org/svn/observium/branches/stable
          Relative URL: ^/observium/branches/stable
          Repository Root: http://svn.observium.org/svn
          Repository UUID: 61d68cd4-352d-0410-923a-c4978735b2b8
          Revision: 11477
          Node Kind: directory
          Schedule: normal
          Last Changed Author: adama
          Last Changed Rev: 11450
          Last Changed Date: 2021-07-01 13:06:28 +0200 (Thu, 01 Jul 2021)
           
          ]
           
          SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'dbSchema';]
          SQL RUNTIME[0.00023389s]
           
          SQL[SELECT @@SESSION.sql_mode;]
          SQL RUNTIME[0.00005984s]
           
          SQL[SET SESSION `sql_mode` = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION']
          SQL RUNTIME[0.00005221s]
          DB mode(s) disabled: STRICT_TRANS_TABLES, ONLY_FULL_GROUP_BY, NO_ZERO_DATE, NO_ZERO_IN_DATE, ERROR_FOR_DIVISION_BY_ZERO
           
          CMD[date "+%:z"]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0008s]
          CMD EXITDELAY[10ms]
          STDOUT[
          +02:00
          ]
           
          SQL[SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);]
          SQL RUNTIME[0.00011706s]
           
          SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'current_rev';]
          SQL RUNTIME[0.00016189s]
           
          SQL[SELECT * FROM `config`]
          SQL RUNTIME[0.00010395s]
           
          CMD[/bin/hostname -f]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0009s]
          CMD EXITDELAY[10ms]
          STDOUT[
          observium.ranger.mkt
          ]
           
          ___ _ _
           / _ \ | |__ ___ ___ _ __ __ __(_) _ _ _ __ ___
          | | | || '_ \ / __| / _ \| '__|\ \ / /| || | | || '_ ` _ \
          | |_| || |_) |\__ \| __/| | \ V / | || |_| || | | | | |
           \___/ |_.__/ |___/ \___||_| \_/ |_| \__,_||_| |_| |_|
           Observium Professional 21.7.11450
           https://www.observium.org
           
           
          CMD[/opt/observium/scripts/distro]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0047s]
          STDOUT[
          Linux|4.4.0-79-generic|amd64|Ubuntu|16.04|vmware|
          ]
           
          CMD[/usr/bin/env python --version 2>&1]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.001s]
          CMD EXITDELAY[10ms]
          STDOUT[
          Python 2.7.12
          ]
           
          SQL[SELECT version();]
          SQL RUNTIME[0.00014281s]
           
          CMD[/usr/bin/snmpget --version 2>&1]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0011s]
          CMD EXITDELAY[10ms]
          STDOUT[
          NET-SNMP version: 5.7.3
          ]
           
          CMD[/usr/bin/rrdtool --version | head -n1]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0042s]
          STDOUT[
          RRDtool 1.5.5 Copyright by Tobias Oetiker <tobi@oetiker.ch>
          ]
           
          CMD[/usr/bin/fping -v 2>&1]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0008s]
          CMD EXITDELAY[10ms]
          STDOUT[
          /usr/bin/fping: Version 3.13
          /usr/bin/fping: comments to david@schweikert.ch
          ]
           
          CMD[/usr/sbin/apache2 -v | awk '/Server version:/ \{print $3}']
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0199s]
          STDOUT[
          Apache/2.4.18
          ]
           
          SQL[SELECT @@SESSION.sql_mode;]
          SQL RUNTIME[0.00017619s]
           
          SQL[SHOW VARIABLES LIKE 'character_set_connection']
          SQL RUNTIME[0.00118685s]
           
          ##### Software versions #####
           
          o OS Linux 4.4.0-79-generic [amd64] (Ubuntu 16.04)
           o Apache 2.4.18
           o PHP 7.0.33-0ubuntu0.16.04.16 (OPcache: DISABLED)
           o Python 2.7.12
           o MySQL 5.7.33-0ubuntu0.16.04.1 (extension: mysqli 5.0.12-dev)
           o SNMP NET-SNMP 5.7.3
           o RRDtool 1.5.5
           o Fping 3.13 (IPv4 and IPv6)
           
          ##### Memory Limit #####
           
          o PHP Unlimited
           
          ##### MySQL mode #####
           
          o MySQL NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
           
          ##### Charset info #####
           
          o PHP UTF-8
           o MySQL utf8
           
          ##### Timezones info #####
           
          o Date Tuesday, 13-Jul-21 08:55:36 CEST
           o PHP +02:00
           o MySQL +02:00
           
           
          SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'last_versioncheck';]
          SQL RUNTIME[0.00016093s]
           
          SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'latest_rev';]
          SQL RUNTIME[0.00008988s]
          ##### Starting discovery run at 2021-07-13 08:55:36 #####
           
           
          SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `hostname` LIKE '192.168.12.25' AND `status` = '1' AND `poller_id` = '0' ORDER BY `last_discovered_timetaken` ASC]
          SQL RUNTIME[0.00029302s]
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUs -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' sysObjectID.0 sysUpTime.0]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0271s]
          CMD EXITDELAY[10ms]
          STDOUT[
          sysObjectID.0 = enterprises.46501
          sysUpTime.0 = 26:18:39:23.69
          ]
          SNMP STATUS[TRUE]
           
          SQL[SELECT * FROM `entity_attribs` WHERE `entity_type` = 'device' AND `entity_id` = '97']
          SQL RUNTIME[0.00038099s]
           
          SQL[SELECT * FROM `observium_processes` WHERE `process_name` = 'discovery.php' AND `device_id` = '97' AND `poller_id` = '0']
          SQL RUNTIME[0.00013900s]
           
          SQL[INSERT INTO `observium_processes` (`process_pid`,`process_name`,`process_ppid`,`process_uid`,`process_command`,`process_start`,`device_id`) VALUES ('28567','discovery.php','26696','0','php ./discovery.php -d -m os -h 192.168.12.25','1626159336','97')]
          SQL RUNTIME[0.00235295s]
          ##### 192.168.12.25 [97] #####
           
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' sysDescr.0]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0325s]
          CMD EXITDELAY[10ms]
          STDOUT[
          Didactum EMS
          ]
          SNMP STATUS[TRUE]
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUvn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' sysObjectID.0]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0264s]
          CMD EXITDELAY[10ms]
          STDOUT[
          .1.3.6.1.4.1.46501
          ]
          SNMP STATUS[TRUE]
          +-------------+--------------------+
          | OID | |
          +-------------+--------------------+
          | sysDescr | Didactum EMS |
          | sysObjectID | .1.3.6.1.4.1.46501 |
          +-------------+--------------------+
           
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m WOWZA-STREAMING-ENGINE-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/wowza 'udp':'192.168.12.25':'161' serverCounterGetVersion.1]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0307s]
          CMD EXITDELAY[10ms]
          STDOUT[
          No Such Object available on this agent at this OID
          ]
          SNMP STATUS[FALSE]
          SNMP ERROR[#1000 - Failed response]
          Store in cache OID: WOWZA-STREAMING-ENGINE-MIB::serverCounterGetVersion.1
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m BETTER-NETWORKS-ETHERNETBOX-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/messpc 'udp':'192.168.12.25':'161' version.0]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0282s]
          CMD EXITDELAY[10ms]
          STDOUT[
          No Such Object available on this agent at this OID
          ]
          SNMP STATUS[FALSE]
          SNMP ERROR[#1000 - Failed response]
          Store in cache OID: BETTER-NETWORKS-ETHERNETBOX-MIB::version.0
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m Printer-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' prtGeneralServicePerson.1]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0296s]
          CMD EXITDELAY[10ms]
          STDOUT[
          No Such Object available on this agent at this OID
          ]
          SNMP STATUS[FALSE]
          SNMP ERROR[#1000 - Failed response]
          Store in cache OID: Printer-MIB::prtGeneralServicePerson.1
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m NSCRTV-HFCEMS-COMMON-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/nscrtv 'udp':'192.168.12.25':'161' commonDeviceVendorInfo.1]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0276s]
          CMD EXITDELAY[10ms]
          STDOUT[
          No Such Object available on this agent at this OID
          ]
          SNMP STATUS[FALSE]
          SNMP ERROR[#1000 - Failed response]
          Store in cache OID: NSCRTV-HFCEMS-COMMON-MIB::commonDeviceVendorInfo.1
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m SP2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/eltek 'udp':'192.168.12.25':'161' powerSystemStatus.0]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0321s]
          CMD EXITDELAY[10ms]
          STDOUT[
          No Such Object available on this agent at this OID
          ]
          SNMP STATUS[FALSE]
          SNMP ERROR[#1000 - Failed response]
          Store in cache OID: SP2-MIB::powerSystemStatus.0
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m ENTITY-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' entPhysicalDescr.1]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0272s]
          CMD EXITDELAY[10ms]
          STDOUT[
          No Such Object available on this agent at this OID
          ]
          SNMP STATUS[FALSE]
          SNMP ERROR[#1000 - Failed response]
          Store in cache OID: ENTITY-MIB::entPhysicalDescr.1
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m HIK-DEVICE-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/hikvision 'udp':'192.168.12.25':'161' deviceType.0]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0273s]
          CMD EXITDELAY[10ms]
          STDOUT[
          No Such Object available on this agent at this OID
          ]
          SNMP STATUS[FALSE]
          SNMP ERROR[#1000 - Failed response]
          Store in cache OID: HIK-DEVICE-MIB::deviceType.0
          Including broadcom.inc.php
          Including linux.inc.php
          Including nxp-mqx-rtcs.inc.php
          Including freebsd.inc.php
          Including solaris.inc.php
           o OS Type generic
           o OS Group unix
           o SNMP Version v3
           o Last discovery 2021-07-13 08:54:48
           o Last duration 0.41 seconds
           
          ##### Module Start: os #####
           
           
           o Duration 0.0002s
           
           
          SQL[UPDATE `devices` set `last_discovered` =NOW(),`type` ='unknown',`last_discovered_timetaken` ='0.4037',`force_discovery` ='0' WHERE `device_id` = '97']
          SQL RUNTIME[0.00239086s]
          ##### 192.168.12.25 [97] completed discovery modules at 2021-07-13 08:55:36 #####
           
          o Discovery time 0.4037 seconds
           
           
          SQL[DELETE FROM `observium_processes` WHERE `process_pid` = '28567' AND `process_name` = 'discovery.php' AND `device_id` = '97' AND `poller_id` = '0']
          SQL RUNTIME[0.00076509s]
          ##### Finished discovery run at 2021-07-13 08:55:36 #####
           
          ./discovery.php: 192.168.12.25 - 1 devices discovered in 0.523 secs
           
          SQL[SELECT * FROM `observium_processes` WHERE `poller_id` = '0' AND `process_start` < '1626144936']
          SQL RUNTIME[0.00015616s]
          NOTE, $config['snmp']['hide_auth'] is set to TRUE, snmp community and snmp v3 auth hidden from debug output.
           o Devices Discovered 1
           o Discovery Time 0.523 secs
           o Memory usage 20MB (peak: 20MB)
           o MySQL Usage Cell[4/0.001s] Row[4/0.001s] Rows[6/0.003s] Column[0/0s] Update[1/0.003s] Insert[1/0.003s] Delete[1/0.001s]
           o RRDTool Usage
          root@observium:/opt/observium#
           
           
           
          *Changed version (sysObjectID = .1.3.6.1.4.1.46501)*
           
          root@observium:/opt/observium# ./discovery.php -d -m os -h 192.168.12.25
          DEBUG!
           
          CMD[/usr/bin/svn info /opt/observium]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0147s]
          CMD EXITDELAY[10ms]
          STDOUT[
          Path: .
          Working Copy Root Path: /opt/observium
          URL: http://svn.observium.org/svn/observium/branches/stable
          Relative URL: ^/observium/branches/stable
          Repository Root: http://svn.observium.org/svn
          Repository UUID: 61d68cd4-352d-0410-923a-c4978735b2b8
          Revision: 11477
          Node Kind: directory
          Schedule: normal
          Last Changed Author: adama
          Last Changed Rev: 11450
          Last Changed Date: 2021-07-01 13:06:28 +0200 (Thu, 01 Jul 2021)
           
          ]
           
          SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'dbSchema';]
          SQL RUNTIME[0.00021195s]
           
          SQL[SELECT @@SESSION.sql_mode;]
          SQL RUNTIME[0.00006390s]
           
          SQL[SET SESSION `sql_mode` = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION']
          SQL RUNTIME[0.00004101s]
          DB mode(s) disabled: STRICT_TRANS_TABLES, ONLY_FULL_GROUP_BY, NO_ZERO_DATE, NO_ZERO_IN_DATE, ERROR_FOR_DIVISION_BY_ZERO
           
          CMD[date "+%:z"]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0058s]
          CMD EXITDELAY[10ms]
          STDOUT[
          +02:00
          ]
           
          SQL[SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);]
          SQL RUNTIME[0.00013208s]
           
          SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'current_rev';]
          SQL RUNTIME[0.00017285s]
           
          SQL[SELECT * FROM `config`]
          SQL RUNTIME[0.00009894s]
           
          CMD[/bin/hostname -f]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0034s]
          CMD EXITDELAY[10ms]
          STDOUT[
          observium.ranger.mkt
          ]
           
          ___ _ _
           / _ \ | |__ ___ ___ _ __ __ __(_) _ _ _ __ ___
          | | | || '_ \ / __| / _ \| '__|\ \ / /| || | | || '_ ` _ \
          | |_| || |_) |\__ \| __/| | \ V / | || |_| || | | | | |
           \___/ |_.__/ |___/ \___||_| \_/ |_| \__,_||_| |_| |_|
           Observium Professional 21.7.11450
           https://www.observium.org
           
           
          CMD[/opt/observium/scripts/distro]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0096s]
          STDOUT[
          Linux|4.4.0-79-generic|amd64|Ubuntu|16.04|vmware|
          ]
           
          CMD[/usr/bin/env python --version 2>&1]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0028s]
          CMD EXITDELAY[10ms]
          STDOUT[
          Python 2.7.12
          ]
           
          SQL[SELECT version();]
          SQL RUNTIME[0.00013614s]
           
          CMD[/usr/bin/snmpget --version 2>&1]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0012s]
          CMD EXITDELAY[10ms]
          STDOUT[
          NET-SNMP version: 5.7.3
          ]
           
          CMD[/usr/bin/rrdtool --version | head -n1]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0105s]
          STDOUT[
          RRDtool 1.5.5 Copyright by Tobias Oetiker <tobi@oetiker.ch>
          ]
           
          CMD[/usr/bin/fping -v 2>&1]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0008s]
          CMD EXITDELAY[10ms]
          STDOUT[
          /usr/bin/fping: Version 3.13
          /usr/bin/fping: comments to david@schweikert.ch
          ]
           
          CMD[/usr/sbin/apache2 -v | awk '/Server version:/ \{print $3}']
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.027s]
          STDOUT[
          Apache/2.4.18
          ]
           
          SQL[SELECT @@SESSION.sql_mode;]
          SQL RUNTIME[0.00015807s]
           
          SQL[SHOW VARIABLES LIKE 'character_set_connection']
          SQL RUNTIME[0.00192690s]
           
          ##### Software versions #####
           
          o OS Linux 4.4.0-79-generic [amd64] (Ubuntu 16.04)
           o Apache 2.4.18
           o PHP 7.0.33-0ubuntu0.16.04.16 (OPcache: DISABLED)
           o Python 2.7.12
           o MySQL 5.7.33-0ubuntu0.16.04.1 (extension: mysqli 5.0.12-dev)
           o SNMP NET-SNMP 5.7.3
           o RRDtool 1.5.5
           o Fping 3.13 (IPv4 and IPv6)
           
          ##### Memory Limit #####
           
          o PHP Unlimited
           
          ##### MySQL mode #####
           
          o MySQL NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
           
          ##### Charset info #####
           
          o PHP UTF-8
           o MySQL utf8
           
          ##### Timezones info #####
           
          o Date Tuesday, 13-Jul-21 08:58:19 CEST
           o PHP +02:00
           o MySQL +02:00
           
           
          SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'last_versioncheck';]
          SQL RUNTIME[0.00015402s]
           
          SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'latest_rev';]
          SQL RUNTIME[0.00008893s]
          ##### Starting discovery run at 2021-07-13 08:58:19 #####
           
           
          SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `hostname` LIKE '192.168.12.25' AND `status` = '1' AND `poller_id` = '0' ORDER BY `last_discovered_timetaken` ASC]
          SQL RUNTIME[0.00031590s]
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUs -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' sysObjectID.0 sysUpTime.0]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0447s]
          CMD EXITDELAY[10ms]
          STDOUT[
          sysObjectID.0 = enterprises.46501
          sysUpTime.0 = 26:18:42:06.50
          ]
          SNMP STATUS[TRUE]
           
          SQL[SELECT * FROM `entity_attribs` WHERE `entity_type` = 'device' AND `entity_id` = '97']
          SQL RUNTIME[0.00028896s]
           
          SQL[SELECT * FROM `observium_processes` WHERE `process_name` = 'discovery.php' AND `device_id` = '97' AND `poller_id` = '0']
          SQL RUNTIME[0.00012898s]
           
          SQL[INSERT INTO `observium_processes` (`process_pid`,`process_name`,`process_ppid`,`process_uid`,`process_command`,`process_start`,`device_id`) VALUES ('30523','discovery.php','26696','0','php ./discovery.php -d -m os -h 192.168.12.25','1626159499','97')]
          SQL RUNTIME[0.00191283s]
          ##### 192.168.12.25 [97] #####
           
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' sysDescr.0]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0507s]
          CMD EXITDELAY[10ms]
          STDOUT[
          Didactum EMS
          ]
          SNMP STATUS[TRUE]
           
          CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUvn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' sysObjectID.0]
           
          CMD EXITCODE[0]
          CMD RUNTIME[0.0473s]
          CMD EXITDELAY[10ms]
          STDOUT[
          .1.3.6.1.4.1.46501
          ]
          SNMP STATUS[TRUE]
          +-------------+--------------------+
          | OID | |
          +-------------+--------------------+
          | sysDescr | Didactum EMS |
          | sysObjectID | .1.3.6.1.4.1.46501 |
          +-------------+--------------------+
           
          o Detect OS matched (didactum-ems: Didactum EMS):
          +-------------+--------------------+--------------------+
          | OID | Matched definition | |
          +-------------+--------------------+--------------------+
          | sysObjectID | .1.3.6.1.4.1.46501 | .1.3.6.1.4.1.46501 |
          | sysDescr | /Didactum EMS/ | Didactum EMS |
          +-------------+--------------------+--------------------+
           
          o Device OS changed generic -> didactum-ems
           
          SQL[SELECT * FROM `devices` WHERE `devices`.`device_id` = '97']
          SQL RUNTIME[0.00022388s]
           
          SQL[INSERT INTO `eventlog` (`device_id`,`entity_id`,`entity_type`,`timestamp`,`severity`,`message`) VALUES ('97','97','device',NOW(),'4','OS changed: generic -> didactum-ems')]
          SQL RUNTIME[0.00222611s]
           
          SQL[UPDATE `devices` set `os` ='didactum-ems',`icon` =NULL,`type` =NULL WHERE `device_id` = '97']
          SQL RUNTIME[0.00173402s]
           o OS Type didactum-ems
           o OS Group environment
           o SNMP Version v3
           o Last discovery 2021-07-13 08:55:36
           o Last duration 0.40 seconds
           
          ##### Module Start: os #####
           
           
           o Duration 0.0002s
           
           
          SQL[UPDATE `devices` set `last_discovered` =NOW(),`type` ='environment',`last_discovered_timetaken` ='0.1729',`force_discovery` ='0' WHERE `device_id` = '97']
          SQL RUNTIME[0.00074887s]
          ##### 192.168.12.25 [97] completed discovery modules at 2021-07-13 08:58:19 #####
           
          o Discovery time 0.1729 seconds
           
           
          SQL[DELETE FROM `observium_processes` WHERE `process_pid` = '30523' AND `process_name` = 'discovery.php' AND `device_id` = '97' AND `poller_id` = '0']
          SQL RUNTIME[0.00177002s]
          ##### Finished discovery run at 2021-07-13 08:58:19 #####
           
          ./discovery.php: 192.168.12.25 - 1 devices discovered in 0.340 secs
           
          SQL[SELECT * FROM `observium_processes` WHERE `poller_id` = '0' AND `process_start` < '1626145099']
          SQL RUNTIME[0.00011802s]
          NOTE, $config['snmp']['hide_auth'] is set to TRUE, snmp community and snmp v3 auth hidden from debug output.
           o Devices Discovered 1
           o Discovery Time 0.340 secs
           o Memory usage 20MB (peak: 20MB)
           o MySQL Usage Cell[4/0.007s] Row[5/0.002s] Rows[6/0.004s] Column[0/0s] Update[2/0.003s] Insert[2/0.005s] Delete[1/0.002s]
           o RRDTool Usage
          

           

          DavidSandfort David Sandfort added a comment - - edited Standard version of didactum.inc.php as delivered by observium svn: root@observium:/opt/observium# ./discovery.php -d -m os -h 192.168.12.25 DEBUG!   CMD[/usr/bin/svn info /opt/observium]   CMD EXITCODE[0] CMD RUNTIME[0.0045s] CMD EXITDELAY[10ms] STDOUT[ Path: . Working Copy Root Path: /opt/observium URL: http://svn.observium.org/svn/observium/branches/stable Relative URL: ^/observium/branches/stable Repository Root: http://svn.observium.org/svn Repository UUID: 61d68cd4-352d-0410-923a-c4978735b2b8 Revision: 11477 Node Kind: directory Schedule: normal Last Changed Author: adama Last Changed Rev: 11450 Last Changed Date: 2021-07-01 13:06:28 +0200 (Thu, 01 Jul 2021)   ]   SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'dbSchema';] SQL RUNTIME[0.00023389s]   SQL[SELECT @@SESSION.sql_mode;] SQL RUNTIME[0.00005984s]   SQL[SET SESSION `sql_mode` = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'] SQL RUNTIME[0.00005221s] DB mode(s) disabled: STRICT_TRANS_TABLES, ONLY_FULL_GROUP_BY, NO_ZERO_DATE, NO_ZERO_IN_DATE, ERROR_FOR_DIVISION_BY_ZERO   CMD[date "+%:z"]   CMD EXITCODE[0] CMD RUNTIME[0.0008s] CMD EXITDELAY[10ms] STDOUT[ +02:00 ]   SQL[SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);] SQL RUNTIME[0.00011706s]   SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'current_rev';] SQL RUNTIME[0.00016189s]   SQL[SELECT * FROM `config`] SQL RUNTIME[0.00010395s]   CMD[/bin/hostname -f]   CMD EXITCODE[0] CMD RUNTIME[0.0009s] CMD EXITDELAY[10ms] STDOUT[ observium.ranger.mkt ]   ___ _ _ / _ \ | |__ ___ ___ _ __ __ __(_) _ _ _ __ ___ | | | || '_ \ / __| / _ \| '__|\ \ / /| || | | || '_ ` _ \ | |_| || |_) |\__ \| __/| | \ V / | || |_| || | | | | | \___/ |_.__/ |___/ \___||_| \_/ |_| \__,_||_| |_| |_| Observium Professional 21.7.11450 https://www.observium.org     CMD[/opt/observium/scripts/distro]   CMD EXITCODE[0] CMD RUNTIME[0.0047s] STDOUT[ Linux|4.4.0-79-generic|amd64|Ubuntu|16.04|vmware| ]   CMD[/usr/bin/env python --version 2>&1]   CMD EXITCODE[0] CMD RUNTIME[0.001s] CMD EXITDELAY[10ms] STDOUT[ Python 2.7.12 ]   SQL[SELECT version();] SQL RUNTIME[0.00014281s]   CMD[/usr/bin/snmpget --version 2>&1]   CMD EXITCODE[0] CMD RUNTIME[0.0011s] CMD EXITDELAY[10ms] STDOUT[ NET-SNMP version: 5.7.3 ]   CMD[/usr/bin/rrdtool --version | head -n1]   CMD EXITCODE[0] CMD RUNTIME[0.0042s] STDOUT[ RRDtool 1.5.5 Copyright by Tobias Oetiker <tobi@oetiker.ch> ]   CMD[/usr/bin/fping -v 2>&1]   CMD EXITCODE[0] CMD RUNTIME[0.0008s] CMD EXITDELAY[10ms] STDOUT[ /usr/bin/fping: Version 3.13 /usr/bin/fping: comments to david@schweikert.ch ]   CMD[/usr/sbin/apache2 -v | awk '/Server version:/ \{print $3}']   CMD EXITCODE[0] CMD RUNTIME[0.0199s] STDOUT[ Apache/2.4.18 ]   SQL[SELECT @@SESSION.sql_mode;] SQL RUNTIME[0.00017619s]   SQL[SHOW VARIABLES LIKE 'character_set_connection'] SQL RUNTIME[0.00118685s]   ##### Software versions #####   o OS Linux 4.4.0-79-generic [amd64] (Ubuntu 16.04) o Apache 2.4.18 o PHP 7.0.33-0ubuntu0.16.04.16 (OPcache: DISABLED) o Python 2.7.12 o MySQL 5.7.33-0ubuntu0.16.04.1 (extension: mysqli 5.0.12-dev) o SNMP NET-SNMP 5.7.3 o RRDtool 1.5.5 o Fping 3.13 (IPv4 and IPv6)   ##### Memory Limit #####   o PHP Unlimited   ##### MySQL mode #####   o MySQL NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION   ##### Charset info #####   o PHP UTF-8 o MySQL utf8   ##### Timezones info #####   o Date Tuesday, 13-Jul-21 08:55:36 CEST o PHP +02:00 o MySQL +02:00     SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'last_versioncheck';] SQL RUNTIME[0.00016093s]   SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'latest_rev';] SQL RUNTIME[0.00008988s] ##### Starting discovery run at 2021-07-13 08:55:36 #####     SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `hostname` LIKE '192.168.12.25' AND `status` = '1' AND `poller_id` = '0' ORDER BY `last_discovered_timetaken` ASC] SQL RUNTIME[0.00029302s]   CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUs -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' sysObjectID.0 sysUpTime.0]   CMD EXITCODE[0] CMD RUNTIME[0.0271s] CMD EXITDELAY[10ms] STDOUT[ sysObjectID.0 = enterprises.46501 sysUpTime.0 = 26:18:39:23.69 ] SNMP STATUS[TRUE]   SQL[SELECT * FROM `entity_attribs` WHERE `entity_type` = 'device' AND `entity_id` = '97'] SQL RUNTIME[0.00038099s]   SQL[SELECT * FROM `observium_processes` WHERE `process_name` = 'discovery.php' AND `device_id` = '97' AND `poller_id` = '0'] SQL RUNTIME[0.00013900s]   SQL[INSERT INTO `observium_processes` (`process_pid`,`process_name`,`process_ppid`,`process_uid`,`process_command`,`process_start`,`device_id`) VALUES ('28567','discovery.php','26696','0','php ./discovery.php -d -m os -h 192.168.12.25','1626159336','97')] SQL RUNTIME[0.00235295s] ##### 192.168.12.25 [97] #####     CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' sysDescr.0]   CMD EXITCODE[0] CMD RUNTIME[0.0325s] CMD EXITDELAY[10ms] STDOUT[ Didactum EMS ] SNMP STATUS[TRUE]   CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUvn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' sysObjectID.0]   CMD EXITCODE[0] CMD RUNTIME[0.0264s] CMD EXITDELAY[10ms] STDOUT[ .1.3.6.1.4.1.46501 ] SNMP STATUS[TRUE] +-------------+--------------------+ | OID | | +-------------+--------------------+ | sysDescr | Didactum EMS | | sysObjectID | .1.3.6.1.4.1.46501 | +-------------+--------------------+     CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m WOWZA-STREAMING-ENGINE-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/wowza 'udp':'192.168.12.25':'161' serverCounterGetVersion.1]   CMD EXITCODE[0] CMD RUNTIME[0.0307s] CMD EXITDELAY[10ms] STDOUT[ No Such Object available on this agent at this OID ] SNMP STATUS[FALSE] SNMP ERROR[#1000 - Failed response] Store in cache OID: WOWZA-STREAMING-ENGINE-MIB::serverCounterGetVersion.1   CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m BETTER-NETWORKS-ETHERNETBOX-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/messpc 'udp':'192.168.12.25':'161' version.0]   CMD EXITCODE[0] CMD RUNTIME[0.0282s] CMD EXITDELAY[10ms] STDOUT[ No Such Object available on this agent at this OID ] SNMP STATUS[FALSE] SNMP ERROR[#1000 - Failed response] Store in cache OID: BETTER-NETWORKS-ETHERNETBOX-MIB::version.0   CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m Printer-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' prtGeneralServicePerson.1]   CMD EXITCODE[0] CMD RUNTIME[0.0296s] CMD EXITDELAY[10ms] STDOUT[ No Such Object available on this agent at this OID ] SNMP STATUS[FALSE] SNMP ERROR[#1000 - Failed response] Store in cache OID: Printer-MIB::prtGeneralServicePerson.1   CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m NSCRTV-HFCEMS-COMMON-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/nscrtv 'udp':'192.168.12.25':'161' commonDeviceVendorInfo.1]   CMD EXITCODE[0] CMD RUNTIME[0.0276s] CMD EXITDELAY[10ms] STDOUT[ No Such Object available on this agent at this OID ] SNMP STATUS[FALSE] SNMP ERROR[#1000 - Failed response] Store in cache OID: NSCRTV-HFCEMS-COMMON-MIB::commonDeviceVendorInfo.1   CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m SP2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/eltek 'udp':'192.168.12.25':'161' powerSystemStatus.0]   CMD EXITCODE[0] CMD RUNTIME[0.0321s] CMD EXITDELAY[10ms] STDOUT[ No Such Object available on this agent at this OID ] SNMP STATUS[FALSE] SNMP ERROR[#1000 - Failed response] Store in cache OID: SP2-MIB::powerSystemStatus.0   CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m ENTITY-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' entPhysicalDescr.1]   CMD EXITCODE[0] CMD RUNTIME[0.0272s] CMD EXITDELAY[10ms] STDOUT[ No Such Object available on this agent at this OID ] SNMP STATUS[FALSE] SNMP ERROR[#1000 - Failed response] Store in cache OID: ENTITY-MIB::entPhysicalDescr.1   CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m HIK-DEVICE-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/hikvision 'udp':'192.168.12.25':'161' deviceType.0]   CMD EXITCODE[0] CMD RUNTIME[0.0273s] CMD EXITDELAY[10ms] STDOUT[ No Such Object available on this agent at this OID ] SNMP STATUS[FALSE] SNMP ERROR[#1000 - Failed response] Store in cache OID: HIK-DEVICE-MIB::deviceType.0 Including broadcom.inc.php Including linux.inc.php Including nxp-mqx-rtcs.inc.php Including freebsd.inc.php Including solaris.inc.php o OS Type generic o OS Group unix o SNMP Version v3 o Last discovery 2021-07-13 08:54:48 o Last duration 0.41 seconds   ##### Module Start: os #####     o Duration 0.0002s     SQL[UPDATE `devices` set `last_discovered` =NOW(),`type` ='unknown',`last_discovered_timetaken` ='0.4037',`force_discovery` ='0' WHERE `device_id` = '97'] SQL RUNTIME[0.00239086s] ##### 192.168.12.25 [97] completed discovery modules at 2021-07-13 08:55:36 #####   o Discovery time 0.4037 seconds     SQL[DELETE FROM `observium_processes` WHERE `process_pid` = '28567' AND `process_name` = 'discovery.php' AND `device_id` = '97' AND `poller_id` = '0'] SQL RUNTIME[0.00076509s] ##### Finished discovery run at 2021-07-13 08:55:36 #####   ./discovery.php: 192.168.12.25 - 1 devices discovered in 0.523 secs   SQL[SELECT * FROM `observium_processes` WHERE `poller_id` = '0' AND `process_start` < '1626144936'] SQL RUNTIME[0.00015616s] NOTE, $config['snmp']['hide_auth'] is set to TRUE, snmp community and snmp v3 auth hidden from debug output. o Devices Discovered 1 o Discovery Time 0.523 secs o Memory usage 20MB (peak: 20MB) o MySQL Usage Cell[4/0.001s] Row[4/0.001s] Rows[6/0.003s] Column[0/0s] Update[1/0.003s] Insert[1/0.003s] Delete[1/0.001s] o RRDTool Usage root@observium:/opt/observium#       *Changed version (sysObjectID = .1.3.6.1.4.1.46501)*   root@observium:/opt/observium# ./discovery.php -d -m os -h 192.168.12.25 DEBUG!   CMD[/usr/bin/svn info /opt/observium]   CMD EXITCODE[0] CMD RUNTIME[0.0147s] CMD EXITDELAY[10ms] STDOUT[ Path: . Working Copy Root Path: /opt/observium URL: http://svn.observium.org/svn/observium/branches/stable Relative URL: ^/observium/branches/stable Repository Root: http://svn.observium.org/svn Repository UUID: 61d68cd4-352d-0410-923a-c4978735b2b8 Revision: 11477 Node Kind: directory Schedule: normal Last Changed Author: adama Last Changed Rev: 11450 Last Changed Date: 2021-07-01 13:06:28 +0200 (Thu, 01 Jul 2021)   ]   SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'dbSchema';] SQL RUNTIME[0.00021195s]   SQL[SELECT @@SESSION.sql_mode;] SQL RUNTIME[0.00006390s]   SQL[SET SESSION `sql_mode` = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'] SQL RUNTIME[0.00004101s] DB mode(s) disabled: STRICT_TRANS_TABLES, ONLY_FULL_GROUP_BY, NO_ZERO_DATE, NO_ZERO_IN_DATE, ERROR_FOR_DIVISION_BY_ZERO   CMD[date "+%:z"]   CMD EXITCODE[0] CMD RUNTIME[0.0058s] CMD EXITDELAY[10ms] STDOUT[ +02:00 ]   SQL[SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);] SQL RUNTIME[0.00013208s]   SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'current_rev';] SQL RUNTIME[0.00017285s]   SQL[SELECT * FROM `config`] SQL RUNTIME[0.00009894s]   CMD[/bin/hostname -f]   CMD EXITCODE[0] CMD RUNTIME[0.0034s] CMD EXITDELAY[10ms] STDOUT[ observium.ranger.mkt ]   ___ _ _ / _ \ | |__ ___ ___ _ __ __ __(_) _ _ _ __ ___ | | | || '_ \ / __| / _ \| '__|\ \ / /| || | | || '_ ` _ \ | |_| || |_) |\__ \| __/| | \ V / | || |_| || | | | | | \___/ |_.__/ |___/ \___||_| \_/ |_| \__,_||_| |_| |_| Observium Professional 21.7.11450 https://www.observium.org     CMD[/opt/observium/scripts/distro]   CMD EXITCODE[0] CMD RUNTIME[0.0096s] STDOUT[ Linux|4.4.0-79-generic|amd64|Ubuntu|16.04|vmware| ]   CMD[/usr/bin/env python --version 2>&1]   CMD EXITCODE[0] CMD RUNTIME[0.0028s] CMD EXITDELAY[10ms] STDOUT[ Python 2.7.12 ]   SQL[SELECT version();] SQL RUNTIME[0.00013614s]   CMD[/usr/bin/snmpget --version 2>&1]   CMD EXITCODE[0] CMD RUNTIME[0.0012s] CMD EXITDELAY[10ms] STDOUT[ NET-SNMP version: 5.7.3 ]   CMD[/usr/bin/rrdtool --version | head -n1]   CMD EXITCODE[0] CMD RUNTIME[0.0105s] STDOUT[ RRDtool 1.5.5 Copyright by Tobias Oetiker <tobi@oetiker.ch> ]   CMD[/usr/bin/fping -v 2>&1]   CMD EXITCODE[0] CMD RUNTIME[0.0008s] CMD EXITDELAY[10ms] STDOUT[ /usr/bin/fping: Version 3.13 /usr/bin/fping: comments to david@schweikert.ch ]   CMD[/usr/sbin/apache2 -v | awk '/Server version:/ \{print $3}']   CMD EXITCODE[0] CMD RUNTIME[0.027s] STDOUT[ Apache/2.4.18 ]   SQL[SELECT @@SESSION.sql_mode;] SQL RUNTIME[0.00015807s]   SQL[SHOW VARIABLES LIKE 'character_set_connection'] SQL RUNTIME[0.00192690s]   ##### Software versions #####   o OS Linux 4.4.0-79-generic [amd64] (Ubuntu 16.04) o Apache 2.4.18 o PHP 7.0.33-0ubuntu0.16.04.16 (OPcache: DISABLED) o Python 2.7.12 o MySQL 5.7.33-0ubuntu0.16.04.1 (extension: mysqli 5.0.12-dev) o SNMP NET-SNMP 5.7.3 o RRDtool 1.5.5 o Fping 3.13 (IPv4 and IPv6)   ##### Memory Limit #####   o PHP Unlimited   ##### MySQL mode #####   o MySQL NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION   ##### Charset info #####   o PHP UTF-8 o MySQL utf8   ##### Timezones info #####   o Date Tuesday, 13-Jul-21 08:58:19 CEST o PHP +02:00 o MySQL +02:00     SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'last_versioncheck';] SQL RUNTIME[0.00015402s]   SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'latest_rev';] SQL RUNTIME[0.00008893s] ##### Starting discovery run at 2021-07-13 08:58:19 #####     SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `hostname` LIKE '192.168.12.25' AND `status` = '1' AND `poller_id` = '0' ORDER BY `last_discovered_timetaken` ASC] SQL RUNTIME[0.00031590s]   CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUs -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' sysObjectID.0 sysUpTime.0]   CMD EXITCODE[0] CMD RUNTIME[0.0447s] CMD EXITDELAY[10ms] STDOUT[ sysObjectID.0 = enterprises.46501 sysUpTime.0 = 26:18:42:06.50 ] SNMP STATUS[TRUE]   SQL[SELECT * FROM `entity_attribs` WHERE `entity_type` = 'device' AND `entity_id` = '97'] SQL RUNTIME[0.00028896s]   SQL[SELECT * FROM `observium_processes` WHERE `process_name` = 'discovery.php' AND `device_id` = '97' AND `poller_id` = '0'] SQL RUNTIME[0.00012898s]   SQL[INSERT INTO `observium_processes` (`process_pid`,`process_name`,`process_ppid`,`process_uid`,`process_command`,`process_start`,`device_id`) VALUES ('30523','discovery.php','26696','0','php ./discovery.php -d -m os -h 192.168.12.25','1626159499','97')] SQL RUNTIME[0.00191283s] ##### 192.168.12.25 [97] #####     CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUv -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' sysDescr.0]   CMD EXITCODE[0] CMD RUNTIME[0.0507s] CMD EXITDELAY[10ms] STDOUT[ Didactum EMS ] SNMP STATUS[TRUE]   CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x *** -X *** -a *** -A *** -u *** -Pud -OQUvn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'192.168.12.25':'161' sysObjectID.0]   CMD EXITCODE[0] CMD RUNTIME[0.0473s] CMD EXITDELAY[10ms] STDOUT[ .1.3.6.1.4.1.46501 ] SNMP STATUS[TRUE] +-------------+--------------------+ | OID | | +-------------+--------------------+ | sysDescr | Didactum EMS | | sysObjectID | .1.3.6.1.4.1.46501 | +-------------+--------------------+   o Detect OS matched (didactum-ems: Didactum EMS): +-------------+--------------------+--------------------+ | OID | Matched definition | | +-------------+--------------------+--------------------+ | sysObjectID | .1.3.6.1.4.1.46501 | .1.3.6.1.4.1.46501 | | sysDescr | /Didactum EMS/ | Didactum EMS | +-------------+--------------------+--------------------+   o Device OS changed generic -> didactum-ems   SQL[SELECT * FROM `devices` WHERE `devices`.`device_id` = '97'] SQL RUNTIME[0.00022388s]   SQL[INSERT INTO `eventlog` (`device_id`,`entity_id`,`entity_type`,`timestamp`,`severity`,`message`) VALUES ('97','97','device',NOW(),'4','OS changed: generic -> didactum-ems')] SQL RUNTIME[0.00222611s]   SQL[UPDATE `devices` set `os` ='didactum-ems',`icon` =NULL,`type` =NULL WHERE `device_id` = '97'] SQL RUNTIME[0.00173402s] o OS Type didactum-ems o OS Group environment o SNMP Version v3 o Last discovery 2021-07-13 08:55:36 o Last duration 0.40 seconds   ##### Module Start: os #####     o Duration 0.0002s     SQL[UPDATE `devices` set `last_discovered` =NOW(),`type` ='environment',`last_discovered_timetaken` ='0.1729',`force_discovery` ='0' WHERE `device_id` = '97'] SQL RUNTIME[0.00074887s] ##### 192.168.12.25 [97] completed discovery modules at 2021-07-13 08:58:19 #####   o Discovery time 0.1729 seconds     SQL[DELETE FROM `observium_processes` WHERE `process_pid` = '30523' AND `process_name` = 'discovery.php' AND `device_id` = '97' AND `poller_id` = '0'] SQL RUNTIME[0.00177002s] ##### Finished discovery run at 2021-07-13 08:58:19 #####   ./discovery.php: 192.168.12.25 - 1 devices discovered in 0.340 secs   SQL[SELECT * FROM `observium_processes` WHERE `poller_id` = '0' AND `process_start` < '1626145099'] SQL RUNTIME[0.00011802s] NOTE, $config['snmp']['hide_auth'] is set to TRUE, snmp community and snmp v3 auth hidden from debug output. o Devices Discovered 1 o Discovery Time 0.340 secs o Memory usage 20MB (peak: 20MB) o MySQL Usage Cell[4/0.007s] Row[5/0.002s] Rows[6/0.004s] Column[0/0s] Update[2/0.003s] Insert[2/0.005s] Delete[1/0.002s] o RRDTool Usage  

          I need snmpdump (as bot requested) or as minimum discovery os debug:

          ./discovery.php -d -m os -h <device>
          

          landy Mike Stupalov added a comment - I need snmpdump (as bot requested) or as minimum discovery os debug: ./discovery.php -d -m os -h <device>

          Please make and attach additional information about the device:

          • full snmp dump from device:

            snmpwalk -v2c -c <community>  --hexOutputLength=0 -ObentxU <hostname> .1 > myagent.snmpwalk
            snmpwalk -v2c -c <community>  --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk

            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:

            ./discovery.php -d -h <device>
            ./poller.php -d -h <device>

          • additionally attach device and/or vendor specific MIB files

          Note, this comment is added automatically.

          bot Observium Bot added a comment - Please make and attach additional information about the device: full snmp dump from device: snmpwalk -v2c -c <community> --hexOutputLength=0 -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk 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: ./discovery.php -d -h <device> ./poller.php -d -h <device> additionally attach device and/or vendor specific MIB files Note, this comment is added automatically.

          People

            landy Mike Stupalov
            DavidSandfort David Sandfort
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: