mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Added support for Mirth OS #2639
This commit is contained in:
BIN
html/images/os/mirth.png
Normal file
BIN
html/images/os/mirth.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
@@ -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';
|
||||
|
@@ -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';
|
||||
}
|
||||
}
|
||||
|
@@ -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');
|
||||
|
2
tests/snmpsim/mirth.snmprec
Normal file
2
tests/snmpsim/mirth.snmprec
Normal 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
|
Reference in New Issue
Block a user