mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 02:48:37 +00: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:
parent
b4fcb6eb5d
commit
aa29eb72fb
7
includes/discovery/os/vyatta.inc.php
Normal file
7
includes/discovery/os/vyatta.inc.php
Normal file
@ -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";
|
||||
$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";
|
||||
|
Loading…
Reference in New Issue
Block a user