mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
add force10 mibs and os type detection. move per-os polling scripts from includes/polling/device-* to includes/polling/os/*
git-svn-id: http://www.observium.org/svn/observer/trunk@1442 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
echo("Doing Extreme: ");
|
||||
|
||||
#BD6808 - Version 7.8.3 (Build 5) by Release_Master 03/15/10 14:27:35
|
||||
#Summit48 - Version 4.1.19 (Build 2) by Release_Master Wed 08/09/2000 6:09p
|
||||
#Summit24e3 - Version 6.2e.1 (Build 20) by Release_Master_ABU Tue 05/27/2003 16:46:08
|
||||
#Summit48 - 1720 Garry - Version 4.1.19 (Build 2) by Release_Master Wed 08/09/2000 6:09p
|
||||
#Summit48(Yonetan) - Version 4.1.19 (Build 2) by Release_Master Wed 08/09/2000 6:09p
|
||||
#Alpine3808 - Version 7.2.0 (Build 33) by Release_Master 07/09/04 14:05:12
|
||||
|
||||
if(!strpos($sysDescr, "XOS")) {
|
||||
echo(" Extremeware \n");
|
||||
list(, $datas) = explode(" - ", $sysDescr);
|
||||
$datas = str_replace("(","", $datas);
|
||||
$datas = str_replace(")","", $datas);
|
||||
list($a,$b,$c,$d,$e,$f,$g,$h) = explode(" ", $datas);
|
||||
if($a == "Version") {
|
||||
$version = $b;
|
||||
$features = $c . " " . $d . " " . $g;
|
||||
}
|
||||
} else {
|
||||
|
||||
#ExtremeXOS version 12.4.1.7 v1241b7 by release-manager on Sat Mar 13 02:36:57 EST 2010
|
||||
#ExtremeWare XOS version 11.5.2.10 v1152b10 by release-manager on Thu Oct 26 09:53:04 PDT 2006
|
||||
|
||||
echo(" XOS \n");
|
||||
list($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m) = explode(" ", str_replace("ExtremeWare XOS", "ExtremeXOS", $sysDescr));
|
||||
if($b == "version") {
|
||||
$version = $c;
|
||||
$features = $d . " ".$i." ".$j." ".$m;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$sysObjectID = snmp_get($device, "sysObjectID.0", "-Oqvn");
|
||||
$hardware = rewrite_extreme_hardware($sysObjectID);
|
||||
if($hardware == $sysObjectID) { unset($hardware); }
|
||||
|
||||
$version = str_replace("\"","", $version);
|
||||
$features = str_replace("\"","", $features);
|
||||
$hardware = str_replace("\"","", $hardware);
|
||||
|
||||
|
||||
include("hr-mib.inc.php");
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
echo("Doing ZyXEL ZyWALL ");
|
||||
|
||||
$hardware = $sysDescr;
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user