mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@2864 61d68cd4-352d-0410-923a-c4978735b2b8
24 lines
638 B
PHP
Executable File
24 lines
638 B
PHP
Executable File
<?php
|
|
|
|
##
|
|
## Hardcoded discovery of cpu usage on Dell Powerconnect devices.
|
|
##
|
|
## 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%)"
|
|
|
|
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);
|
|
|
|
?>
|