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:
vivia11
2018-04-20 06:12:24 -04:00
committed by Neil Lathwood
parent 8762870a86
commit f9da8ef2a1
4 changed files with 84 additions and 0 deletions

View 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

View File

@@ -0,0 +1,3 @@
<?php
$version = end(explode(' ', $device['sysDescr']));

40
tests/data/dpi.json Normal file
View 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"
}
]
}
}
}

View 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