mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
device: Added dection for ibm-dpi os (#8541)
* Add ibm-dpi os support * SNMP test data * Remove blank space * remove snmp_get * Rename to dpi * Add json test data and change text to IBM DPI * Update json test
This commit is contained in:
34
includes/definitions/dpi.yaml
Normal file
34
includes/definitions/dpi.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
os: dpi
|
||||
text: 'IBM DPI'
|
||||
type: power
|
||||
icon: ibmos
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
poller_modules:
|
||||
hr-mib: 0
|
||||
ucd-mib: 0
|
||||
bgp-peers: 0
|
||||
ucd-diskio: 0
|
||||
wireless: 0
|
||||
ospf: 0
|
||||
entity-physical: 0
|
||||
applications: 0
|
||||
stp: 0
|
||||
ntp: 0
|
||||
discovery_modules:
|
||||
entity-physical: 0
|
||||
cisco-vrf-lite: 0
|
||||
ipv6-address: 0
|
||||
storage: 0
|
||||
hr-device: 0
|
||||
discovery-protocols: 0
|
||||
arp-table: 0
|
||||
bgp-peers: 0
|
||||
ucd-diskio: 0
|
||||
services: 0
|
||||
stp: 0
|
||||
ntp: 0
|
||||
wireless: 0
|
||||
discovery:
|
||||
-
|
||||
sysDescr: IBM DPI
|
3
includes/polling/os/dpi.inc.php
Normal file
3
includes/polling/os/dpi.inc.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
$version = end(explode(' ', $device['sysDescr']));
|
40
tests/data/dpi.json
Normal file
40
tests/data/dpi.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.2.6.223",
|
||||
"sysDescr": "IBM DPI V01.08.0003",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": "",
|
||||
"features": null,
|
||||
"location": null,
|
||||
"os": "dpi",
|
||||
"type": "power",
|
||||
"serial": null,
|
||||
"icon": "ibmos.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.2.6.223",
|
||||
"sysDescr": "IBM DPI V01.08.0003",
|
||||
"sysContact": "<private>",
|
||||
"version": "V01.08.0003",
|
||||
"hardware": "",
|
||||
"features": null,
|
||||
"location": "<private>",
|
||||
"os": "dpi",
|
||||
"type": "power",
|
||||
"serial": null,
|
||||
"icon": "ibmos.svg"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
7
tests/snmpsim/dpi.snmprec
Normal file
7
tests/snmpsim/dpi.snmprec
Normal file
@@ -0,0 +1,7 @@
|
||||
1.3.6.1.2.1.1.1.0|4|IBM DPI V01.08.0003
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.2.6.223
|
||||
1.3.6.1.2.1.1.3.0|67|174262559
|
||||
1.3.6.1.2.1.1.4.0|4|<private>
|
||||
1.3.6.1.2.1.1.5.0|4|<private>
|
||||
1.3.6.1.2.1.1.6.0|4|<private>
|
||||
1.3.6.1.6.3.10.2.1.3.0|2|1808161
|
Reference in New Issue
Block a user