ℹ️ Your data is safe here... unless you make the SNIP gods angry. And let's just say they have a really bad sense of humor.

From Mature Kangaroo, 5 Years ago, written in Plain Text.
Embed
  1. $ ./scripts/collect-snmp-data.php -h 619 -m os
  2. OS: zynos
  3. Module(s): os
  4.  
  5. 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
  6.  
  7. Updated snmprec data /opt/librenms/tests/snmpsim/zynos.snmprec
  8.  
  9. Verify this file does not contain any private data before submitting!
  10.  
  11. $ cat tests/snmpsim/zynos.snmprec
  12. 1.3.6.1.2.1.1.1.0|4|GS1900-8
  13. 1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.890.1.15
  14. 1.3.6.1.2.1.1.3.0|67|304171552
  15. 1.3.6.1.2.1.1.4.0|4|<private>
  16. 1.3.6.1.2.1.1.5.0|4|<private>
  17. 1.3.6.1.2.1.1.6.0|4|<private>
  18. 1.3.6.1.6.3.10.2.1.3.0|2|3041711
  19.  
  20. $ ./discovery.php -h 619 -m os -d
  21. LibreNMS Discovery
  22. SQL[select `version` from `dbSchema` order by `version` desc limit 1 [] 1.27ms]
  23. SQL[SELECT version() [] 0.55ms]
  24. ===================================
  25. Version info:
  26. Commit SHA: f10cbddacc647cd9cea19694c666620c80d8a8e2
  27. Commit Date: 1546555332
  28. DB Schema: 277
  29. PHP: 7.2.10-0ubuntu0.18.04.1
  30. MySQL: 10.1.34-MariaDB-0ubuntu0.18.04.1
  31. RRDTool: 1.7.0
  32. SNMP: NET-SNMP 5.7.3
  33. ==================================DEBUG!
  34. Updating os_def.cache... Done
  35. Override discovery modules: os
  36. SQL[SELECT * FROM `devices` WHERE disabled = 0 AND snmp_disable = 0 AND `device_id` = '619' ORDER BY device_id DESC [] 1.68ms]
  37. SQL[SELECT * FROM devices_attribs WHERE `device_id` = ? [619] 0.67ms]
  38. 172.16.240.139 619 zynos [FPING] /usr/bin/fping -e -q -c 3 -p 500 -t 500 x.x.x.x
  39. Array
  40. (
  41.     [xmt] => 3
  42.     [rcv] => 3
  43.     [loss] => 0
  44.     [min] => 9.24
  45.     [max] => 9.77
  46.     [avg] => 9.41
  47.     [exitcode] => 0
  48. )
  49. 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]
  50. SNMP Check response code: 0
  51. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = ? AND `attrib_type` = ?  [619,"poll_mib"] 0.69ms]
  52. Attempting to initialize OS: zynos
  53. Attempting to initialize OS: zyxel
  54. OS initilized as Generic
  55.  
  56. Modules status: Global+ OS  Device
  57. #### Load disco module core ####
  58. 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']
  59. .*.*.0 = hostname
  60. .*.*.0 = .*.4.1.8*.39
  61. .*.*.0 = XGS-4528F
  62.  
  63.  
  64. >> Runtime for discovery module 'core': 0.0340 seconds with 1016 bytes
  65. >> SNMP: [2/0.07s] MySQL: [4/0.01s] RRD: [0/0.00s]
  66. #### Unload disco module core ####
  67.  
  68. Modules status: Global+ OS+ Device
  69. #### Load disco module os ####
  70. SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY '-Ovq' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/zyxel' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysDescr.0']
  71. XGS-4528F
  72.  
  73. SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY '-Ovqn' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/zyxel' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysObjectID.0']
  74. .*.4.1.8*.39
  75.  
  76. | XGS-4528F | .1.3.6.1.4.1.890.1.5.8.39 |
  77. 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']
  78. No Such Object available on this agent at this OID
  79.  
  80. OS: ZyXEL Ethernet Switch (zynos)
  81.  
  82. >> Runtime for discovery module 'os': 0.1830 seconds with 1336 bytes
  83. >> SNMP: [3/0.18s] MySQL: [0/0.00s] RRD: [0/0.00s]
  84. #### Unload disco module os ####
  85.  
  86. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = ? AND `attrib_type` = ?  [619,"poll_mib"] 0.9ms]
  87. SQL[UPDATE `devices` set `last_discovered`=NOW(),`last_discovered_timetaken`=? WHERE `device_id` = ? [1.281,619] 1.09ms]
  88. Discovered in 1.281 seconds
  89.  
  90. 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]
  91. ./discovery.php 619 2019-01-04 08:44:27 - 1 devices discovered in 1.647 secs
  92. SNMP [5/0.24s]: Get[5/0.24s] Getnext[0/0.00s] Walk[0/0.00s]
  93. 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]
  94. RRD [0/0.00s]: Update[0/0.00s] Create [0/0.00s] Other[0/0.00s]
  95.  
  96.  
  97.  
captcha