mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
add basic vyatta detection. thanks to Ole Myhre.
git-svn-id: http://www.observium.org/svn/observer/trunk@1780 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if(!$os) {
|
||||||
|
if(preg_match("/^Vyatta/", $sysDescr)) { $os = "vyatta"; }
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -15,6 +15,11 @@ $config['os']['default']['over'][1]['text'] = "Memory Usage";
|
|||||||
$os = "generic";
|
$os = "generic";
|
||||||
$config['os'][$os]['text'] = "Generic Device";
|
$config['os'][$os]['text'] = "Generic Device";
|
||||||
|
|
||||||
|
$os = "vyatta";
|
||||||
|
$config['os'][$os]['text'] = "Vyatta";
|
||||||
|
$config['os'][$os]['type'] = "network";
|
||||||
|
$config['os'][$os]['ifname'] = 1;
|
||||||
|
|
||||||
$os = "linux";
|
$os = "linux";
|
||||||
$config['os'][$os]['type'] = "server";
|
$config['os'][$os]['type'] = "server";
|
||||||
$config['os'][$os]['group'] = "unix";
|
$config['os'][$os]['group'] = "unix";
|
||||||
|
|||||||
Reference in New Issue
Block a user