mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Initial AVTECH Software, Inc. support.
This commit is contained in:
@@ -999,6 +999,13 @@ $config['os'][$os]['type'] = 'power';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_current';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Current';
|
||||
|
||||
$os = 'avtech';
|
||||
$config['os'][$os]['text'] = 'Avtech Environment Sensor';
|
||||
$config['os'][$os]['type'] = 'environment';
|
||||
$config['os'][$os]['icon'] = 'avtech';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_temperature';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Temperature';
|
||||
|
||||
$os = 'netbotz';
|
||||
$config['os'][$os]['text'] = 'Netbotz Environment sensor';
|
||||
$config['os'][$os]['type'] = 'environment';
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.20916.1.7')) {
|
||||
$os = 'avtech';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
$lastSpace = strrpos($poll_device['sysDescr'], ' ');
|
||||
|
||||
$hardware = trim(substr($poll_device['sysDescr'], 0, $lastSpace));
|
||||
$version = trim(substr($poll_device['sysDescr'], $lastSpace));
|
||||
|
||||
Reference in New Issue
Block a user