Guest User

Untitled

a guest
Aug 13th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. /includes/definitions/discovery/qtech.yaml :
  2. mib: Qtech_private_2.1.26.mib
  3. modules:
  4. processors:
  5. data:
  6. -
  7. oid: switchCpuUsage
  8. num_oid: '.1.3.6.1.4.1.6339.100.1.11.10.{{ $index }}'
  9. descr: CPU Usage
  10.  
  11. /includes/definitions/qtech.yaml :
  12. os: qtech
  13. text: 'qtech'
  14. type: network
  15. icon: qtech
  16. group: qtech
  17. over:
  18. - { graph: device_bits, text: 'Device Traffic' }
  19. - { graph: device_processor, text: 'CPU Usage' }
  20. - { graph: device_mempool, text: 'Memory Usage' }
  21. discovery:
  22. - sysObjectID:
  23. - .1.3.6.1.4.1.27514.1.1.1
  24. /includes/polling/os/qtech.inc.php :
  25. $hardware = trim(snmp_get($device, '.1.3.6.1.4.1.27514.100.25.1.1.1.0', '-OQv'), '"');
  26. $version = trim(snmp_get($device, '.1.3.6.1.4.1.27514.100.25.1.1.2.0', '-OQv'), '"');
  27. $serial = trim(snmp_get($device, '.1.3.6.1.2.1.47.1.1.1.1.11.1', '-OQv'), '"');
  28.  
  29. if (empty($hardware) && empty($version)) {
  30. $temp_data = snmp_get_multi_oid($device, 'sysHardwareVersion.0 sysSoftwareVersion.0', '-OUQs', 'Qtech_private_2.1.26.mib');
  31. $hardware = $temp_data['sysHardwareVersion.0'];
  32. $version = $temp_data['sysSoftwareVersion.0'];
  33. unset($temp_data);
  34. }
Add Comment
Please, Sign In to add comment