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:
Adam Amstrong 2011-03-03 17:53:25 +00:00
parent b4fcb6eb5d
commit aa29eb72fb
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<?php
if(!$os) {
if(preg_match("/^Vyatta/", $sysDescr)) { $os = "vyatta"; }
}
?>

View File

@ -15,6 +15,11 @@ $config['os']['default']['over'][1]['text'] = "Memory Usage";
$os = "generic";
$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";
$config['os'][$os]['type'] = "server";
$config['os'][$os]['group'] = "unix";