Skip to content

Commit

Permalink
handle extra data correctly (discard it)
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed Jun 14, 2024
1 parent a9a4eeb commit 39e8f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/discovery/sensors/state/dell.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
create_state_index($state_name, $states);

foreach ($temp as $index => $entry) {
if (! str_contains($index, '54.')) { //Because Dell is buggy
if (array_key_exists($value_oid, $entry)) { // ward against extra data from newer MIBs
if ($state_name == 'dell.intrusionStatus') {
$descr = $descr_oid;
} elseif ($state_name == 'dell.batteryState') {
Expand Down

0 comments on commit 39e8f35

Please sign in to comment.