newdevice: Exterity AvediaPlayer support (#5732)

* Exterity AvediaPlayer support

* small updates + changed to sysObjectId for disco
This commit is contained in:
FTBZ
2017-02-03 00:04:41 +01:00
committed by Neil Lathwood
parent 520b3146df
commit ab6f78d1fe
6 changed files with 25 additions and 0 deletions

View File

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@@ -0,0 +1 @@
<svg version="1.2" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" width="201.8" height="285.1" viewBox="0 0 201.8 285.1"><path fill-rule="evenodd" fill="#F4763B" d="M146.7 280.6c-28.9 0-52.4-23.5-52.3-52.5.1-28.9 23.2-51.9 51.7-52.3 30.1-.4 53.9 24.2 53.2 53.7-.7 28.4-24 51.3-52.6 51.1z"/><path fill-rule="evenodd" fill="#F78144" d="M50.3 217.5c-23.6 0-42.6-19-42.6-42.6s19.2-43 43.3-42.6c23.8.3 42.4 20.1 42 43.5-.5 23.2-19.7 42-42.7 41.7z"/><path fill-rule="evenodd" fill="#F88C4E" d="M35.5 124c-17.1 0-30.7-13.7-31.2-30.2C3.8 75.7 18.4 62 34.8 61.7c17-.4 31.9 13.1 31.9 31.1 0 17.8-14.4 31.2-31.2 31.2z"/><path fill-rule="evenodd" fill="#F99859" d="M75.3 21.8c11.9 0 21.2 9.3 21.2 21.2 0 11.7-9.5 21.1-21.3 21.1-11.6 0-21.1-9.5-21-21.2.1-11.8 9.4-21.1 21.1-21.1zM111.4 8.2c6.5-.1 12.9 5 12.9 12.9 0 7.1-5.8 12.8-12.9 12.8-7.2 0-12.9-5.7-12.9-12.9 0-7.1 5.7-12.8 12.9-12.8zM140.5 24.3c-5.8 0-10.6-4.6-10.6-10.4 0-5.8 4.6-10.5 10.5-10.5 5.8 0 10.5 4.6 10.6 10.4 0 5.9-4.6 10.5-10.5 10.5z"/></svg>

After

Width:  |  Height:  |  Size: 1005 B

View File

@@ -0,0 +1,9 @@
os: avr-hd
text: 'AvediaPlayer Receivers'
type: appliance
icon: exterity
over:
- { graph: device_bits, text: Traffic }
discovery:
- sysObjectId:
- .1.3.6.1.4.1.28194.

View File

@@ -0,0 +1,7 @@
<?php
$hardware = trim(snmp_get($device, '.1.3.6.1.4.1.28194.1.37.0', '-OQv'), '" ');
if (preg_match('/avr-hd \[(.*?)\]/', $poll_device['sysDescr'], $regexp_result)) {
$version = $regexp_result[1];
}

View File

@@ -221,6 +221,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
$this->checkOS('avtech', 'avtech-tempager4e');
}
public function testAvrhd()
{
$this->checkOS('avr-hd');
}
public function testAxiscam()
{
$this->checkOS('axiscam');

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Linux 026FA2 2.6.32.16_stm24_V2.1-SDK7105_7105-STSDK-svn10915 avr-hd [4.0.2-12255] rel #1 Mon Mar 24 15:19:30 GMT 2014 sh4
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.28194.2