mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
New OS: QTECH (#11556)
* New OS: QTECH https://www.qtech.ru/en/catalog/ * QTECH: Add hardware, version and serial support * QTECH: Fix platform and software version detection * QTECH: Add test for QSW-3450
This commit is contained in:
parent
280e010286
commit
25330646f6
3
html/images/os/qtech.svg
Normal file
3
html/images/os/qtech.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid meet" viewBox="247.74120040679432 290.71393304850346 60.57154855320309 60.572232728282245"><defs><path d="M277.03 338.1C267.03 338.1 258.92 330 258.92 320C258.92 310 267.03 301.9 277.03 301.9C287.02 301.9 295.13 310 295.13 320C295.13 323.52 294.12 326.8 292.38 329.58C293.12 330.32 298.97 336.18 299.71 336.91C303.23 332.19 305.31 326.34 305.31 320C305.31 304.38 292.65 291.71 277.03 291.71C261.41 291.71 248.74 304.38 248.74 320C248.74 335.62 261.41 348.29 277.03 348.29C283.38 348.29 289.25 346.19 293.97 342.65C293.49 342.16 291.05 339.72 286.65 335.33C282.59 337.18 279.39 338.1 277.03 338.1Z" id="aky8trbqu"></path><path d="M277.03 330.18C271.4 330.18 266.84 325.62 266.84 320C266.84 314.38 271.4 309.82 277.03 309.82C282.65 309.82 287.21 314.38 287.21 320C287.21 325.62 282.65 330.18 277.03 330.18Z" id="b28a9nTvA9"></path></defs><g><g><use xlink:href="#aky8trbqu" opacity="1" fill="#b41633" fill-opacity="1"></use><g><use xlink:href="#aky8trbqu" opacity="1" fill-opacity="0" stroke="#000000" stroke-width="1" stroke-opacity="0"></use></g></g><g><use xlink:href="#b28a9nTvA9" opacity="1" fill="#b41633" fill-opacity="1"></use></g></g></svg>
|
After Width: | Height: | Size: 1.4 KiB |
7
includes/definitions/discovery/qtech.yaml
Normal file
7
includes/definitions/discovery/qtech.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
mib: QTECH-MIB
|
||||
modules:
|
||||
processors:
|
||||
data:
|
||||
-
|
||||
oid: switchCpuUsage
|
||||
num_oid: '.1.3.6.1.4.1.27514.100.1.11.10.{{ $index }}'
|
13
includes/definitions/qtech.yaml
Normal file
13
includes/definitions/qtech.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
os: qtech
|
||||
text: 'QTECH'
|
||||
type: network
|
||||
icon: qtech
|
||||
group: qtech
|
||||
mib_dir:
|
||||
- qtech
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_processor, text: 'CPU Usage' }
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.27514.
|
10
includes/polling/os/qtech.inc.php
Normal file
10
includes/polling/os/qtech.inc.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
preg_match('/^(.*) Device, Compiled /', $device['sysDescr'], $matches);
|
||||
$hardware = $matches[1];
|
||||
|
||||
preg_match('/^ SoftWare Version (?:' . $hardware . '_)?(.*)$/m', $device['sysDescr'], $matches);
|
||||
$version = $matches[1];
|
||||
|
||||
preg_match('/^ Serial No\.:(.*)$/m', $device['sysDescr'], $matches);
|
||||
$serial = $matches[1];
|
22368
mibs/qtech/QTECH-MIB
Normal file
22368
mibs/qtech/QTECH-MIB
Normal file
File diff suppressed because it is too large
Load Diff
6589
tests/data/qtech.json
Normal file
6589
tests/data/qtech.json
Normal file
File diff suppressed because it is too large
Load Diff
6841
tests/data/qtech_qsw-3450.json
Normal file
6841
tests/data/qtech_qsw-3450.json
Normal file
File diff suppressed because it is too large
Load Diff
1212
tests/snmpsim/qtech.snmprec
Normal file
1212
tests/snmpsim/qtech.snmprec
Normal file
File diff suppressed because it is too large
Load Diff
1318
tests/snmpsim/qtech_qsw-3450.snmprec
Normal file
1318
tests/snmpsim/qtech_qsw-3450.snmprec
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user