mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
start of support for JunOSe
git-svn-id: http://www.observium.org/svn/observer/trunk@764 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -122,6 +122,10 @@ foreach ($devices as $device)
|
||||
if ($device['type'] == "unknown") { $device['type'] = 'network'; } # FIXME: could also be a Netscreen...
|
||||
}
|
||||
|
||||
if($device['os'] == "junose") {
|
||||
include("includes/discovery/bgp-peers.php");
|
||||
}
|
||||
|
||||
if ($device['os_group'] == "unix")
|
||||
{
|
||||
# Also discover quagga peers
|
||||
|
||||
10
includes/osdiscovery/discover-junose.php
Executable file
10
includes/osdiscovery/discover-junose.php
Executable file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
$sysObjectId = shell_exec($config['snmpget'] . " -Ovqn -".$device['snmpver']." -c ". $device['community'] ." ". $device['hostname'].":".$device['port'] ." sysObjectID.0");
|
||||
if(strstr($sysObjectId, ".1.3.6.1.4.1.4874")) { $os = "junose"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
2031
juniErxSystem.mi2
Normal file
2031
juniErxSystem.mi2
Normal file
File diff suppressed because it is too large
Load Diff
2031
mibs/juniErxSystem.mi2
Normal file
2031
mibs/juniErxSystem.mi2
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user