root@host:/opt/observium # sudo -u observium /opt/observium/discovery.php -d -m os -h switch.domain.com DEBUG! CMD[/usr/bin/svn info /opt/observium] CMD EXITCODE[0] CMD RUNTIME[0.01s] CMD EXITDELAY[5ms] STDOUT[ Path: . Working Copy Root Path: /opt/observium URL: https://svn.observium.org/svn/observium/branches/stable Relative URL: ^/observium/branches/stable Repository Root: https://svn.observium.org/svn Repository UUID: 61d68cd4-352d-0410-923a-c4978735b2b8 Revision: 13731 Node Kind: directory Schedule: normal Last Changed Author: adama Last Changed Rev: 13728 Last Changed Date: 2024-11-13 14:02:06 +0000 (Wed, 13 Nov 2024) ] DEFINITIONS Time : 0.0574679 ms DEFINITIONS Memory: 2.97MB SQL[SELECT * FROM `observium_attribs`] SQL RUNTIME[0.00058007s] SQL[SELECT @@SESSION.sql_mode;] SQL RUNTIME[0.00025392s] SQL[SET SESSION `sql_mode` = 'NO_ENGINE_SUBSTITUTION'] SQL RUNTIME[0.00015283s] DB mode(s) disabled: STRICT_TRANS_TABLES, ONLY_FULL_GROUP_BY, NO_ZERO_DATE, NO_ZERO_IN_DATE, ERROR_FOR_DIVISION_BY_ZERO SQL[SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);] SQL RUNTIME[0.00024199s] SQL[SELECT * FROM `config`] SQL RUNTIME[0.00045109s] SQL[SELECT EXISTS (SELECT 1 FROM `pollers`)] SQL RUNTIME[0.00030684s] ___ _ _ / _ \ | |__ ___ ___ _ __ __ __(_) _ _ _ __ ___ | | | || '_ \ / __| / _ \| '__|\ \ / /| || | | || '_ ` _ \ | |_| || |_) |\__ \| __/| | \ V / | || |_| || | | | | | \___/ |_.__/ |___/ \___||_| \_/ |_| \__,_||_| |_| |_| Observium Professional 24.11.13728 https://www.observium.org CMD[/opt/observium/scripts/distro] CMD EXITCODE[0] CMD RUNTIME[0.0321s] STDOUT[ Linux|6.8.0-47-generic|amd64|Ubuntu|24.04|| ] CMD[/usr/bin/env python --version 2>&1] CMD EXITCODE[0] CMD RUNTIME[0.0029s] STDOUT[ Python 3.12.3 ] SQL[SELECT VERSION();] SQL RUNTIME[0.00020194s] CMD[/usr/bin/snmpget --version 2>&1] CMD EXITCODE[0] CMD RUNTIME[0.0034s] STDOUT[ NET-SNMP version: 5.9.4.pre2 ] CMD[/usr/bin/rrdtool --version | head -n1] CMD EXITCODE[0] CMD RUNTIME[0.0127s] STDOUT[ RRDtool 1.7.2 Copyright by Tobias Oetiker ] CMD[/usr/bin/rrdcached -h | head -n1] CMD EXITCODE[0] CMD RUNTIME[0.012s] STDOUT[ RRDCacheD 1.7.2 ] CMD[/usr/bin/fping -v 2>&1] CMD EXITCODE[0] CMD RUNTIME[0.0075s] STDOUT[ /usr/bin/fping: Version 5.1 ] CMD[/usr/sbin/apache2 -v | awk '/Server version:/ {print $3}'] CMD EXITCODE[0] CMD RUNTIME[0.0206s] STDOUT[ Apache/2.4.58 ] SQL[SELECT @@SESSION.sql_mode;] SQL RUNTIME[0.00031304s] SQL[SHOW VARIABLES LIKE 'log_bin'] SQL RUNTIME[0.00249696s] SQL[SHOW VARIABLES LIKE 'character_set_connection'] SQL RUNTIME[0.00244403s] ##### Software versions ##### o OS Linux 6.8.0-47-generic [amd64] (Ubuntu 24.04) o Apache 2.4.58 o PHP 8.4.0RC3 (OPcache: ENABLED) o Python 3.12.3 o MySQL 8.0.40-0ubuntu0.24.04.1 (extension: mysqli 8.4.0RC3) o SNMP NET-SNMP 5.9.4.pre2 o RRDtool 1.7.2 (rrdcached 1.7.2: unix:/var/run/rrdcached.sock) o Fping 5.1 (IPv4 and IPv6) o Fetch cURL 8.5.0 (OpenSSL/3.0.13, LibZ 1.3, LibIDN 2.3.7) ##### Memory Limit ##### o PHP Unlimited ##### DB info ##### o DB schema 494 o MySQL binlog OFF o MySQL mode NO_ENGINE_SUBSTITUTION ##### Charset info ##### o PHP UTF-8 o MySQL utf8mb3 ##### Timezones info ##### o Date Thursday, 14-Nov-24 06:38:29 UTC o PHP +00:00 o MySQL +00:00 ##### Starting discovery run at 2024-11-14 06:38:29 ##### SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `hostname` LIKE 'switch.domain.com' AND `status` = '1' AND `poller_id` = '0' ORDER BY `last_discovered_timetaken` ASC] SQL RUNTIME[0.00102496s] Return cached 'switch.domain.com' = '' CMD[/usr/bin/snmpget -v2c -c *** -Pud -OQUsn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'switch.domain.com':'161' .1.3.6.1.2.1.1.2.0 .1.3.6.1.2.1.1.3.0] CMD EXITCODE[0] CMD RUNTIME[0.022s] STDOUT[ .1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.9.1.3214 .1.3.6.1.2.1.1.3.0 = 6:17:52:08.00 ] SNMP STATUS[TRUE] SQL[SELECT * FROM `entity_attribs` WHERE `entity_type` = 'device' AND `entity_id` = '261'] SQL RUNTIME[0.00084996s] SQL[SELECT * FROM `observium_processes` WHERE `process_name` = 'discovery.php' AND `device_id` = '261' AND `poller_id` = '0'] SQL RUNTIME[0.00058889s] SQL[INSERT INTO `observium_processes` (`process_pid`,`process_name`,`process_ppid`,`process_uid`,`process_command`,`process_start`,`device_id`) VALUES ('779510','discovery.php','779509','1001','php /opt/observium/discovery.php -d -m os -h switch.domain.com','1731566309','261')] SQL RUNTIME[0.00098705s] ##### switch.domain.com [261] ##### CMD[/usr/bin/snmpget -v2c -c *** -Pud -OQUv -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'switch.domain.com':'161' sysDescr.0] CMD EXITCODE[0] CMD RUNTIME[0.0208s] STDOUT[ Catalyst 1200 Series Smart Switch, 16-port GE, 2x1G SFP (C1200-16T-2G) ] SNMP STATUS[TRUE] Store in cache OID: SNMPv2-MIB::sysDescr.0 CMD[/usr/bin/snmpget -v2c -c *** -Pud -OQUvn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'switch.domain.com':'161' sysObjectID.0] CMD EXITCODE[0] CMD RUNTIME[0.0211s] STDOUT[ .1.3.6.1.4.1.9.1.3214 ] SNMP STATUS[TRUE] +-------------+------------------------------------------------------------------------+ | OID | | +-------------+------------------------------------------------------------------------+ | sysDescr | Catalyst 1200 Series Smart Switch, 16-port GE, 2x1G SFP (C1200-16T-2G) | | sysObjectID | .1.3.6.1.4.1.9.1.3214 | +-------------+------------------------------------------------------------------------+ CMD[/usr/bin/snmpget -v2c -c *** -Pud -OQUv -m BETTER-NETWORKS-ETHERNETBOX-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/messpc 'udp':'switch.domain.com':'161' version.0] CMD EXITCODE[0] CMD RUNTIME[0.0155s] 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 -v2c -c *** -Pud -OQUv -m ATEN-PE-CFG -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/aten 'udp':'switch.domain.com':'161' modelName.0] CMD EXITCODE[0] CMD RUNTIME[0.0251s] STDOUT[ No Such Object available on this agent at this OID ] SNMP STATUS[FALSE] SNMP ERROR[#1000 - Failed response] Store in cache OID: ATEN-PE-CFG::modelName.0 CMD[/usr/bin/snmpget -v2c -c *** -Pud -OQUv -m ENTITY-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'switch.domain.com':'161' entPhysicalDescr.1] CMD EXITCODE[0] CMD RUNTIME[0.0164s] STDOUT[ No Such Instance currently exists at this OID ] SNMP STATUS[FALSE] SNMP ERROR[#1000 - Failed response] Store in cache OID: ENTITY-MIB::entPhysicalDescr.1 CMD[/usr/bin/snmpget -v2c -c *** -Pud -OQUv -m COMMEND-SIP-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/commend 'udp':'switch.domain.com':'161' commendStationCommonStationType.0] CMD EXITCODE[0] CMD RUNTIME[0.0172s] STDOUT[ No Such Object available on this agent at this OID ] SNMP STATUS[FALSE] SNMP ERROR[#1000 - Failed response] Store in cache OID: COMMEND-SIP-MIB::commendStationCommonStationType.0 CMD[/usr/bin/snmpget -v2c -c *** -Pud -OQUv -m HIK-DEVICE-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/hikvision 'udp':'switch.domain.com':'161' deviceType.0] CMD EXITCODE[0] CMD RUNTIME[0.0177s] 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 CMD[/usr/bin/snmpget -v2c -c *** -Pud -OQUv -m Printer-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'switch.domain.com':'161' prtGeneralServicePerson.1] CMD EXITCODE[0] CMD RUNTIME[0.0248s] 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 -v2c -c *** -Pud -OQUv -m NSCRTV-HFCEMS-COMMON-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/nscrtv 'udp':'switch.domain.com':'161' commonDeviceVendorInfo.1] CMD EXITCODE[0] CMD RUNTIME[0.0197s] 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 Including nxp-mqx-rtcs.inc.php Including freebsd.inc.php Including solaris.inc.php Including linux.inc.php Including broadcom.inc.php o OS Type generic o OS Group unix o SNMP Version v2c o Last discovery 2024-11-14 06:38:24 o Last duration 0.28 seconds ##### Module Start: os ##### o Duration 0.0002s SQL[UPDATE `devices` SET `last_discovered` =NOW(),`type` ='network',`last_discovered_timetaken` ='0.2548',`force_discovery` ='0' WHERE `device_id` = '261'] SQL RUNTIME[0.00093102s] ##### switch.domain.com [261] completed discovery modules at 2024-11-14 06:38:30 ##### o Discovery time 0.2548 seconds SQL[DELETE FROM `observium_processes` WHERE `process_pid` = '779510' AND `process_name` = 'discovery.php' AND `device_id` = '261' AND `poller_id` = '0'] SQL RUNTIME[0.00076294s] ##### Finished discovery run at 2024-11-14 06:38:30 ##### /opt/observium/discovery.php: switch.domain.com - 1 devices discovered in 0.3989 secs SQL[SELECT * FROM `observium_processes` WHERE `poller_id` = '0' AND `process_start` < '1731551910'] SQL RUNTIME[0.00047803s] 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.3989 secs o Definitions 0.057467937469482 secs o Memory usage 6MB (peak: 6MB) o MySQL Usage Cell[5/0.006s] Row[0/0s] Rows[6/0.012s] Column[0/0s] Update[1/0.003s] Insert[1/0.003s] Delete[1/0.002s] o RRDTool Usage