ZTE ZXR10 define discovery for mempool and processor (#13192)

* Add mibs/zte/ZXR10-MIB

ZTE ZXR10 vendor-specific mibs

* Update zxr10.yaml

add mib_dir
change top-line view like in cisco

* Create zxr10.yaml

define mempool and processor discovery for zxr10

* Update zxr10.yaml

fix discovery.php "error in mempools module. Unable to translate oid ZXR10-MIB::zxr10SystemMemSize"

* Update zxr10.yaml

ZXR10-MIB::zxr10SystemMemUsed is in percent not in bytes.

* zxr10.yaml :: fixed mempools data

fixed mempools data

* TESTS :: Add snmprec

* TEST :: Add data/json

* Change group from zxr10 to zte

* Remove mib_dir

With group: zte it works without mib_dir: zte

* Rename zxr10_zxr10.json to zte_zxr10.json

* Rename zxr10_zxr10.snmprec to zte_zxr10.snmprec
This commit is contained in:
Valery Kartel 2021-09-08 19:19:19 +03:00 committed by GitHub
parent d496c228d4
commit c6d2385c3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14939 additions and 1 deletions

View File

@ -0,0 +1,12 @@
mib: ZXR10-MIB
modules:
mempools:
data:
-
total: ZXR10-MIB::zxr10SystemMemSize
percent_used: ZXR10-MIB::zxr10SystemMemUsed
processors:
data:
-
oid: zxr10SystemCpuUtility5m
num_oid: '.1.3.6.1.4.1.3902.3.3.1.1.12.{{ $index }}'

View File

@ -1,8 +1,12 @@
os: zxr10
group: zxr10
group: zte
text: 'ZTE ZXR10'
type: network
icon: zte
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
discovery:
-
sysDescr:

3402
mibs/zte/ZXR10-MIB Normal file

File diff suppressed because it is too large Load Diff

9500
tests/data/zte_zxr10.json Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff