mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
updates
git-svn-id: http://www.observium.org/svn/observer/trunk@426 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -10,35 +10,16 @@
|
||||
$cpurrd = $config['rrd_dir'] . "/" . $hostname . "/cpu.rrd";
|
||||
$memrrd = $config['rrd_dir'] . "/" . $hostname . "/mem.rrd";
|
||||
|
||||
$version = str_replace("Cisco IOS Software,", "", $sysDescr);
|
||||
$version = str_replace("IOS (tm) ", "", $version);
|
||||
$version = str_replace(",RELEASE SOFTWARE", "", $version);
|
||||
$version = str_replace(",MAINTENANCE INTERIM SOFTWARE", "", $version);
|
||||
$version = str_replace("Version ","", $version);
|
||||
$version = str_replace("Cisco Internetwork Operating System Software", "", $version);
|
||||
$version = trim($version);
|
||||
list($version) = explode("\n", $version);
|
||||
$version = preg_replace("/^[A-Za-z0-9\ \_]*\(([A-Za-z0-9\-\_]*)\), (.+), .*/", "\\1|\\2", $version);
|
||||
$version = str_replace("-M|", "|", $version);
|
||||
$version = str_replace("-", "|", $version);
|
||||
list($hardware, $features, $version) = explode("|", $version);
|
||||
#$features = rewrite_ios_features($features);
|
||||
#$hardware = fixIOSHardware($hardware);
|
||||
if(strstr($ciscomodel, "OID")){ unset($ciscomodel); }
|
||||
if(!strstr($ciscomodel, " ") && strlen($ciscomodel) >= '3') {
|
||||
$hardware = $ciscomodel;
|
||||
}
|
||||
|
||||
if($device['os'] == "IOS XE") {
|
||||
list(,$features,$version) = explode(",", $sysDescr);
|
||||
$version = str_replace(" Version ", "", $version);
|
||||
$features = str_replace(" IOS-XE Software (", "", $features);
|
||||
$features = str_replace("-M", "", $features);
|
||||
$features = str_replace(")", "", $features);
|
||||
$features = str_replace("PPC_LINUX_IOSD-", "", $features);
|
||||
#$features = rewrite_ios_features($features);
|
||||
}
|
||||
|
||||
$sysDescr = str_replace("IOS (tm)", "IOS (tm),", $sysDescr);
|
||||
list(,$features,$version) = explode(",", $sysDescr);
|
||||
$version = str_replace(" Version ", "", $version);
|
||||
list(,$features) = explode("(", $features);
|
||||
list(,$features) = explode("-", $features);
|
||||
|
||||
list ($cpu5m, $cpu5s) = explode("\n", shell_exec($config['snmpget'] . " -m OLD-CISCO-CPU-MIB -O qv -$snmpver -c $community $hostname:$port 1.3.6.1.4.1.9.2.1.58.0 1.3.6.1.4.1.9.2.1.56.0"));
|
||||
$cpu5m = $cpu5m + 0;
|
||||
@@ -65,5 +46,6 @@
|
||||
include("includes/polling/bgpPeer.inc.php");
|
||||
include("includes/polling/cisco-processors.inc.php");
|
||||
include("includes/polling/cisco-mempool.inc.php");
|
||||
include("includes/polling/cisco-entity-sensors.inc.php");
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user