Grandstream basic support (#9906)

* grandstream simple discovery

* grandstream simple discovery tests

* exclusion in linux matching

* Revert un-necessary changes, and change "over:" to ping
This commit is contained in:
PipoCanaja 2019-03-10 14:38:46 +01:00 committed by Tony Murray
parent 8d67bb776e
commit 6ec97309a0
6 changed files with 107 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -0,0 +1,15 @@
os: grandstream-ht
group: grandstream
text: 'Grandstream HT'
type: network
icon: grandstream
over:
- { graph: device_ping_perf, text: 'Ping Response' }
mib_dir:
- grandstream
discovery:
-
sysObjectID:
- .1.3.6.1.4.1.8072.3.2.10
sysDescr_regex:
- '/^Linux HT/'

View File

@ -0,0 +1,12 @@
<?php
// Grandstream HT
$oids = [
'serial' => '.1.3.6.1.4.1.42397.1.2.1.0.0',
'versionCore' => '.1.3.6.1.4.1.42397.1.2.3.2.0.0',
'versionBase' => '.1.3.6.1.4.1.42397.1.2.3.3.0.0'
];
$os_data = snmp_get_multi_oid($device, $oids);
foreach ($oids as $var => $oid) {
$$var = $os_data[$oid];
}
$version = 'Core: ' . $versionCore . ', Base: ' . $versionBase;

View File

@ -0,0 +1,40 @@
{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.10",
"sysDescr": "Linux HT8XX 3.4.20-rt31-dvf-v1.2.6.1-rc2 #54 PREEMPT Sat Oct 21 17:21:10 CST 2017 armv5tejl",
"sysContact": null,
"version": null,
"hardware": null,
"features": null,
"os": "grandstream-ht",
"type": "network",
"serial": null,
"icon": "grandstream.png",
"location": null
}
]
},
"poller": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.10",
"sysDescr": "Linux HT8XX 3.4.20-rt31-dvf-v1.2.6.1-rc2 #54 PREEMPT Sat Oct 21 17:21:10 CST 2017 armv5tejl",
"sysContact": "<private>",
"version": "Core: 1.0.5.3, Base: 1.0.5.11",
"hardware": null,
"features": null,
"os": "grandstream-ht",
"type": "network",
"serial": "9610005015A",
"icon": "grandstream.png",
"location": "<private>"
}
]
}
}
}

View File

@ -0,0 +1,40 @@
1.3.6.1.2.1.1.1.0|4|Linux HT8XX 3.4.20-rt31-dvf-v1.2.6.1-rc2 #54 PREEMPT Sat Oct 21 17:21:10 CST 2017 armv5tejl
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8072.3.2.10
1.3.6.1.2.1.1.3.0|67|11014378
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.2.1.11.1.0|65|15475
1.3.6.1.2.1.11.2.0|65|15474
1.3.6.1.2.1.11.3.0|65|0
1.3.6.1.2.1.11.4.0|65|0
1.3.6.1.2.1.11.5.0|65|0
1.3.6.1.2.1.11.6.0|65|0
1.3.6.1.2.1.11.8.0|65|0
1.3.6.1.2.1.11.9.0|65|0
1.3.6.1.2.1.11.10.0|65|0
1.3.6.1.2.1.11.11.0|65|0
1.3.6.1.2.1.11.12.0|65|0
1.3.6.1.2.1.11.13.0|65|70646
1.3.6.1.2.1.11.14.0|65|0
1.3.6.1.2.1.11.15.0|65|11144
1.3.6.1.2.1.11.16.0|65|0
1.3.6.1.2.1.11.17.0|65|0
1.3.6.1.2.1.11.18.0|65|0
1.3.6.1.2.1.11.19.0|65|0
1.3.6.1.2.1.11.20.0|65|0
1.3.6.1.2.1.11.21.0|65|0
1.3.6.1.2.1.11.22.0|65|0
1.3.6.1.2.1.11.24.0|65|0
1.3.6.1.2.1.11.25.0|65|0
1.3.6.1.2.1.11.26.0|65|0
1.3.6.1.2.1.11.27.0|65|0
1.3.6.1.2.1.11.28.0|65|15476
1.3.6.1.2.1.11.29.0|65|0
1.3.6.1.2.1.11.30.0|2|2
1.3.6.1.2.1.11.31.0|65|0
1.3.6.1.2.1.11.32.0|65|0
1.3.6.1.4.1.42397.1.2.1.0.0|4|9610005015A
1.3.6.1.4.1.42397.1.2.3.2.0.0|4|1.0.5.3
1.3.6.1.4.1.42397.1.2.3.3.0.0|4|1.0.5.11
1.3.6.1.6.3.10.2.1.3.0|2|110144