Skip to content

Commit

Permalink
ZTE ZXR10 define discovery for mempool and processor (#13192)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
vakartel committed Sep 8, 2021
1 parent d496c22 commit c6d2385
Show file tree
Hide file tree
Showing 5 changed files with 14,939 additions and 1 deletion.
12 changes: 12 additions & 0 deletions includes/definitions/discovery/zxr10.yaml
Original file line number Diff line number Diff line change
@@ -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 }}'
6 changes: 5 additions & 1 deletion includes/definitions/zxr10.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit c6d2385

Please sign in to comment.