From Unique Gibbon, 2 Years ago, written in Plain Text.
Embed
  1. ./discovery.php -h mx204.mydomain.eu -m os -d
  2. LibreNMS Discovery
  3. SQL[select `migration` from `migrations` order by `id` desc limit 1 [] 0.63ms]
  4.  
  5. SQL[select count(*) as aggregate from `migrations` limit 1 [] 0.42ms]
  6.  
  7. SQL[SELECT version() [] 0.38ms]
  8.  
  9. ===================================
  10. Version info:
  11. Commit SHA: cca48492276fc010bef30398be28f4a07bf78f7c
  12. Commit Date: 1627291058
  13. DB Schema: 2021_25_01_0127_create_isis_adjacencies_table (211)
  14. PHP: 7.3.29-1+0~20210701.86+debian10~1.gbp7ad6eb
  15. MySQL: 10.6.3-MariaDB-1:10.6.3+maria~buster
  16. RRDTool: 1.7.1
  17. SNMP: NET-SNMP 5.7.3
  18. ==================================DEBUG!
  19. Updating os_def.cache
  20. Override discovery modules: os
  21. SQL[SELECT * FROM `devices` WHERE disabled = 0 AND snmp_disable = 0 AND `hostname` LIKE 'mx204.mydomain.eu' ORDER BY device_id DESC [] 1.1ms]
  22.  
  23. SQL[select * from `devices` where `device_id` = ? limit 1 [1] 0.64ms]
  24.  
  25. SQL[select * from `devices_attribs` where `devices_attribs`.`device_id` = ? and `devices_attribs`.`device_id` is not null [1] 0.41ms]
  26.  
  27. mx204.mydomain.eu 1 dcn-software SQL[select `hostname`, `overwrite_ip` from `devices` where `hostname` = ? limit 1 ["mx204.mydomain.eu"] 0.37ms]
  28.  
  29. [FPING] '/usr/bin/fping' '-e' '-q' '-c' '3' '-p' '500' '-t' '500' 'mx204.mydomain.eu'
  30.  
  31. response:  {"xmt":3,"rcv":3,"loss":0,"min":0.63,"max":66.8,"avg":22.7,"dup":0,"exitcode":0}
  32. SQL[select `device_groups`.*, `device_group_device`.`device_id` as `pivot_device_id`, `device_group_device`.`device_group_id` as `pivot_device_group_id` from `device_groups` inner join `device_group_device` on `device_groups`.`id` = `device_group_device`.`device_group_id` where `device_group_device`.`device_id` = ? [1] 0.62ms]
  33.  
  34. SQL[select * from `locations` where `locations`.`id` = ? limit 1 [108] 0.36ms]
  35.  
  36. SQL[select exists(select * from `alert_schedule` where (`start` &lt;= ? and `end` >= ? and (`recurring` = ? or (`recurring` = ? and ((time(`start`) < time xss=removed> ?) or (time(`start`) > time(`end`) and (time(`end`) &lt;= ? or time(`start`) > ?))) and (`recurring_day` like ? or `recurring_day` is null)))) and (exists (select * from `devices` inner join `alert_schedulables` on `devices`.`device_id` = `alert_schedulables`.`alert_schedulable_id` where `alert_schedule`.`schedule_id` = `alert_schedulables`.`schedule_id` and `alert_schedulables`.`alert_schedulable_type` = ? and `alert_schedulables`.`alert_schedulable_id` = ?) or exists (select * from `device_groups` inner join `alert_schedulables` on `device_groups`.`id` = `alert_schedulables`.`alert_schedulable_id` where `alert_schedule`.`schedule_id` = `alert_schedulables`.`schedule_id` and `alert_schedulables`.`alert_schedulable_type` = ? and `alert_schedulables`.`alert_schedulable_id` in (?)) or exists (select * from `locations` inner join `alert_schedulables` on `locations`.`id` = `alert_schedulables`.`alert_schedulable_id` where `alert_schedule`.`schedule_id` = `alert_schedulables`.`schedule_id` and `alert_schedulables`.`alert_schedulable_type` = ? and `alert_schedulables`.`alert_schedulable_id` = ?))) as `exists` ["2021-07-26T11:16:22.194217Z","2021-07-26T11:16:22.194217Z",0,1,"11:16:22","11:16:22","11:16:22","11:16:22","%","device",1,"device_group",1,"location",108] 1.17ms]
  37.  
  38. 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":0.63,"max":66.8,"avg":22.7,"device_id":1,"debug":"[]"} 1.34ms]
  39.  
  40. SQL[UPDATE `devices` set `last_ping`=?,`last_ping_timetaken`=? WHERE device_id=? ["2021-07-26 13:16:22",22.7,1] 1ms]
  41.  
  42. SNMP Check response code: 0
  43. Modules status: Global+
  44. OS
  45. Device
  46.  
  47. #### Load disco module core ####
  48. SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY' '-OUQn' '-m' 'SNMPv2-MIB' '-M' '/srv/librenms/mibs:/srv/librenms/mibs/dcn' 'udp:HOSTNAME:161' 'sysName.0' 'sysObjectID.0' 'sysDescr.0']
  49. .*.*.0 = mx204
  50. .*.*.0 = .*.4.1.26*.2.144
  51. .*.*.0 = mx204
  52.  
  53. | mx204 | .1.3.6.1.4.1.2636.1.1.1.2.144 |
  54. Attempting to initialize OS: dcn-software
  55. OS initialized as Generic
  56. OS: Digital China Networks (dcn-software)
  57.  
  58.  
  59. >> Runtime for discovery module 'core': 0.0200 seconds with 142912 bytes
  60. >> SNMP: [2/0.05s] MySQL: [3/0.00s] RRD: [0/0.00s]
  61. #### Unload disco module core ####
  62.  
  63. Modules status: Global+
  64. OS
  65. Device
  66.  
  67. #### Load disco module os ####
  68. SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY' '-Ovq' '-m' 'SNMPv2-MIB' '-M' '/srv/librenms/mibs:/srv/librenms/mibs/dcn' 'udp:HOSTNAME:161' 'sysContact.0']
  69. S-Net NOC noc@s-net.pl
  70.  
  71. SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY' '-OUQ' '-M' '/srv/librenms/mibs:/srv/librenms/mibs/dcn' 'udp:HOSTNAME:161' 'DCN-MIB::ntpEntSoftwareName.0' 'DCN-MIB::sysHardwareVersion.0' 'DCN-MIB::ntpEntSoftwareVersion.0' 'DCN-MIB::sysSoftwareVersion.0' 'ENTITY-MIB::entPhysicalSerialNum.1']
  72. DCN-MIB::ntpEntSoftwareName.0 = No Such Object available on this agent at this OID
  73. DCN-MIB::sysHardwareVersion.0 = No Such Object available on this agent at this OID
  74. DCN-MIB::ntpEntSoftwareVersion.0 = No Such Object available on this agent at this OID
  75. DCN-MIB::sysSoftwareVersion.0 = No Such Object available on this agent at this OID
  76. ENTITY-MIB::entPhysicalSerialNum.1 = No Such Object available on this agent at this OID
  77.  
  78. Yaml OS data:
  79. Location: DC
  80. Hardware:
  81. OS Version:
  82. OS Features:
  83. Serial:
  84.  
  85. >> Runtime for discovery module 'os': 0.0700 seconds with 568688 bytes
  86. >> SNMP: [2/0.06s] MySQL: [0/0.00s] RRD: [0/0.00s]
  87. #### Unload disco module os ####
  88.  
  89. SQL[UPDATE `devices` set `last_discovered`=NOW(),`last_discovered_timetaken`=? WHERE `device_id` = ? [1.18,1] 1.26ms]
  90.  
  91. Discovered in 1.18 seconds
  92.  
  93. ./discovery.php mx204.mydomain.eu 2021-07-26 13:16:22 - 1 devices discovered in 1.585 secs
  94. SNMP [4/0.11s]: Get[4/0.11s] Getnext[0/0.00s] Walk[0/0.00s]
  95. MySQL [4/0.01s]: Cell[1/0.00s] Row[-1/-0.00s] Rows[1/0.00s] Column[0/0.00s] Update[2/0.00s] Insert[1/0.00s] Delete[0/0.00s]
  96. RRD [0/0.00s]:
  97.