2012-02-15 17:14:58 +00:00
|
|
|
<?php
|
|
|
|
|
2012-05-25 11:29:53 +00:00
|
|
|
///
|
2012-05-25 12:24:34 +00:00
|
|
|
// Hardcoded discovery of cpu usage on Dell Powerconnect devices.
|
2012-05-25 11:29:53 +00:00
|
|
|
///
|
2012-05-25 12:24:34 +00:00
|
|
|
// Dell-Vendor-MIB::dellLanExtension.6132.1.1.1.1.4.4.0 = STRING: "5 Sec (6.99%), 1 Min (6.72%), 5 Min (9.06%)"
|
2012-02-15 17:14:58 +00:00
|
|
|
|
|
|
|
if ($device['os'] == "powerconnect")
|
|
|
|
{
|
|
|
|
echo("Powerconnect : ");
|
|
|
|
|
|
|
|
$descr = "Processor";
|
|
|
|
$usage = trim(snmp_get($device, "dellLanExtension.6132.1.1.1.1.4.4.0", "-OQUvs", "Dell-Vendor-MIB"),'"');
|
|
|
|
|
|
|
|
if (substr($usage,0,5) == "5 Sec")
|
|
|
|
{
|
|
|
|
discover_processor($valid['processor'], $device, ".1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.4.0", "0", "powerconnect", $descr, "1", $usage, NULL, NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
unset ($processors_array);
|
|
|
|
|
|
|
|
?>
|