- $ ./scripts/collect-snmp-data.php -h 619 -m os
- OS: zynos
- Module(s): os
- Capturing Data: sysDescr.0 sysObjectID.0 sysName.0 SNMPv2-MIB::sysDescr.0 SNMPv2-MIB::sysObjectID.0 .1.3.6.1.4.1.12148.10.2.6.0 sysUpTime.0 sysLocation.0 sysContact.0 snmpEngineTime.0 hrSystemUptime.0 .1.3.6.1.4.1.890.1.15.3.1.11.0 .1.3.6.1.4.1.890.1.15.3.1.6.0 .1.3.6.1.4.1.890.1.15.3.1.12.0
- Updated snmprec data /opt/librenms/tests/snmpsim/zynos.snmprec
- Verify this file does not contain any private data before submitting!
- $ cat tests/snmpsim/zynos.snmprec
- 1.3.6.1.2.1.1.1.0|4|GS1900-8
- 1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.890.1.15
- 1.3.6.1.2.1.1.3.0|67|304171552
- 1.3.6.1.2.1.1.4.0|4|<private>
- 1.3.6.1.2.1.1.5.0|4|<private>
- 1.3.6.1.2.1.1.6.0|4|<private>
- 1.3.6.1.6.3.10.2.1.3.0|2|3041711
- $ ./discovery.php -h 619 -m os -d
- LibreNMS Discovery
- SQL[select `version` from `dbSchema` order by `version` desc limit 1 [] 1.27ms]
- SQL[SELECT version() [] 0.55ms]
- ===================================
- Version info:
- Commit SHA: f10cbddacc647cd9cea19694c666620c80d8a8e2
- Commit Date: 1546555332
- DB Schema: 277
- PHP: 7.2.10-0ubuntu0.18.04.1
- MySQL: 10.1.34-MariaDB-0ubuntu0.18.04.1
- RRDTool: 1.7.0
- SNMP: NET-SNMP 5.7.3
- ==================================DEBUG!
- Updating os_def.cache... Done
- Override discovery modules: os
- SQL[SELECT * FROM `devices` WHERE disabled = 0 AND snmp_disable = 0 AND `device_id` = '619' ORDER BY device_id DESC [] 1.68ms]
- SQL[SELECT * FROM devices_attribs WHERE `device_id` = ? [619] 0.67ms]
- 172.16.240.139 619 zynos [FPING] /usr/bin/fping -e -q -c 3 -p 500 -t 500 x.x.x.x
- Array
- (
- [xmt] => 3
- [rcv] => 3
- [loss] => 0
- [min] => 9.24
- [max] => 9.77
- [avg] => 9.41
- [exitcode] => 0
- )
- SQL[INSERT IGNORE INTO `device_perf` (`xmt`,`rcv`,`loss`,`min`,`max`,`avg`,`device_id`,`timestamp`,`debug`) VALUES (:xmt,:rcv,:loss,:min,:max,:avg,:device_id,NOW(),:debug) {"xmt":"3","rcv":"3","loss":"0","min":"9.24","max":"9.77","avg":"9.41","device_id":619,"debug":"[]"} 0.9ms]
- SNMP Check response code: 0
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = ? AND `attrib_type` = ? [619,"poll_mib"] 0.69ms]
- Attempting to initialize OS: zynos
- Attempting to initialize OS: zyxel
- OS initilized as Generic
- Modules status: Global+ OS Device
- #### Load disco module core ####
- SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY '-OUQn' '-m' 'SNMPv2-MIB' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/zyxel' 'udp:HOSTNAME:161' 'sysName.0' 'sysObjectID.0' 'sysDescr.0']
- .*.*.0 = hostname
- .*.*.0 = .*.4.1.8*.39
- .*.*.0 = XGS-4528F
- >> Runtime for discovery module 'core': 0.0340 seconds with 1016 bytes
- >> SNMP: [2/0.07s] MySQL: [4/0.01s] RRD: [0/0.00s]
- #### Unload disco module core ####
- Modules status: Global+ OS+ Device
- #### Load disco module os ####
- SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY '-Ovq' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/zyxel' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysDescr.0']
- XGS-4528F
- SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY '-Ovqn' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/zyxel' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysObjectID.0']
- .*.4.1.8*.39
- | XGS-4528F | .1.3.6.1.4.1.890.1.5.8.39 |
- SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY '-Oqv' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/zyxel' 'udp:HOSTNAME:161' '.1.3.6.1.4.1.12148.10.2.6.0']
- No Such Object available on this agent at this OID
- OS: ZyXEL Ethernet Switch (zynos)
- >> Runtime for discovery module 'os': 0.1830 seconds with 1336 bytes
- >> SNMP: [3/0.18s] MySQL: [0/0.00s] RRD: [0/0.00s]
- #### Unload disco module os ####
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = ? AND `attrib_type` = ? [619,"poll_mib"] 0.9ms]
- SQL[UPDATE `devices` set `last_discovered`=NOW(),`last_discovered_timetaken`=? WHERE `device_id` = ? [1.281,619] 1.09ms]
- Discovered in 1.281 seconds
- SQL[INSERT IGNORE INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`,`poller`) VALUES (:type,:doing,:start,:duration,:devices,:poller) {"type":"discover","doing":"619","start":1546613066.322073,"duration":"1.647","devices":1,"poller":"watchtower"} 0.65ms]
- ./discovery.php 619 2019-01-04 08:44:27 - 1 devices discovered in 1.647 secs
- SNMP [5/0.24s]: Get[5/0.24s] Getnext[0/0.00s] Walk[0/0.00s]
- MySQL [7/0.01s]: Cell[1/0.00s] Row[1/0.00s] Rows[2/0.00s] Column[0/0.00s] Update[1/0.00s] Insert[2/0.00s] Delete[0/0.00s]
- RRD [0/0.00s]: Update[0/0.00s] Create [0/0.00s] Other[0/0.00s]