Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /includes/definitions/discovery/qtech.yaml :
- mib: Qtech_private_2.1.26.mib
- modules:
- processors:
- data:
- -
- oid: switchCpuUsage
- num_oid: '.1.3.6.1.4.1.6339.100.1.11.10.{{ $index }}'
- descr: CPU Usage
- /includes/definitions/qtech.yaml :
- os: qtech
- text: 'qtech'
- type: network
- icon: qtech
- group: qtech
- over:
- - { graph: device_bits, text: 'Device Traffic' }
- - { graph: device_processor, text: 'CPU Usage' }
- - { graph: device_mempool, text: 'Memory Usage' }
- discovery:
- - sysObjectID:
- - .1.3.6.1.4.1.27514.1.1.1
- /includes/polling/os/qtech.inc.php :
- $hardware = trim(snmp_get($device, '.1.3.6.1.4.1.27514.100.25.1.1.1.0', '-OQv'), '"');
- $version = trim(snmp_get($device, '.1.3.6.1.4.1.27514.100.25.1.1.2.0', '-OQv'), '"');
- $serial = trim(snmp_get($device, '.1.3.6.1.2.1.47.1.1.1.1.11.1', '-OQv'), '"');
- if (empty($hardware) && empty($version)) {
- $temp_data = snmp_get_multi_oid($device, 'sysHardwareVersion.0 sysSoftwareVersion.0', '-OUQs', 'Qtech_private_2.1.26.mib');
- $hardware = $temp_data['sysHardwareVersion.0'];
- $version = $temp_data['sysSoftwareVersion.0'];
- unset($temp_data);
- }
Add Comment
Please, Sign In to add comment