newdevice: Added support for Mirth OS #2639

This commit is contained in:
Neil Lathwood
2016-12-10 17:07:45 +00:00
committed by GitHub
parent 56ec5cbbd9
commit dda62d8ce1
5 changed files with 20 additions and 0 deletions

BIN
html/images/os/mirth.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -155,6 +155,17 @@ $config['os'][$os]['over'][1]['text'] = 'Memory Usage';
$config['os'][$os]['over'][2]['graph'] = 'device_storage';
$config['os'][$os]['over'][2]['text'] = 'Storage Usage';
$os = 'mirth';
$config['os'][$os]['type'] = 'server';
$config['os'][$os]['text'] = 'Mirth Connect';
$config['os'][$os]['icon'] = 'mirth';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
$config['os'][$os]['over'][1]['graph'] = 'device_processor';
$config['os'][$os]['over'][1]['text'] = 'Processor Usage';
$config['os'][$os]['over'][2]['graph'] = 'device_mempool';
$config['os'][$os]['over'][2]['text'] = 'Memory Usage';
$os = 'qnap';
$config['os'][$os]['type'] = 'storage';
$config['os'][$os]['group'] = 'unix';

View File

@@ -52,5 +52,7 @@ if (starts_with($sysDescr, 'Linux') && !starts_with($sysObjectId, $skip_oids)) {
$os = 'ddnos';
} elseif (is_numeric(trim(snmp_get($device, 'roomTemp.0', '-OqvU', 'CAREL-ug40cdz-MIB')))) {
$os = 'pcoweb'; // Carel PCOweb
} elseif (starts_with($sysDescr, 'Linux mirthtemplate')) {
$os = 'mirth';
}
}

View File

@@ -859,6 +859,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
$this->checkOS('minkelsrms');
}
public function testMirth()
{
$this->checkOS('mirth');
}
public function testMonowall()
{
$this->checkOS('monowall');

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Linux mirthtemplate01 2.6.18-407.el5 #1 SMP Wed Nov 11 08:12:41 EST 2015 x86_64
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8072.3.2.10