mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2580 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -11,17 +11,17 @@ if($device['os'] == "vrp")
|
||||
|
||||
if (is_array($processors_array))
|
||||
{
|
||||
foreach ($processors_array as $index => $entry)
|
||||
foreach ($processors_array as $index => $entry)
|
||||
{
|
||||
if ( $entry['hwEntityMemSize'] != 0 )
|
||||
if ($entry['hwEntityMemSize'] != 0)
|
||||
{
|
||||
if ($debug) { echo($index . " " . $entry['hwEntityBomEnDesc'] . " -> " . $entry['hwEntityCpuUsage'] . " -> " . $entry['hwEntityMemSize']. "\n"); }
|
||||
$usage_oid = ".1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5." . $index;
|
||||
$descr = $entry['hwEntityBomEnDesc'];
|
||||
$usage = $entry['hwEntityCpuUsage'];
|
||||
if(!strstr($descr, "No") && !strstr($usage, "No") && $descr != "" )
|
||||
if (!strstr($descr, "No") && !strstr($usage, "No") && $descr != "" )
|
||||
{
|
||||
discover_processor($valid['processor'], $device, $usage_oid, $index, "vrp", $descr, "1", $usage, NULL, NULL);
|
||||
discover_processor($valid['processor'], $device, $usage_oid, $index, "vrp", $descr, "1", $usage, NULL, NULL);
|
||||
}
|
||||
} ## End if checks
|
||||
} ## End Foreach
|
||||
|
||||
Reference in New Issue
Block a user