Skip to content

Commit

Permalink
Minor update to include ifAdminStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
cigamit committed May 24, 2019
1 parent ad50326 commit 51438fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/data_query.php
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ function query_snmp_host($host_id, $snmp_query_id) {

$snmp_index = preg_replace($index_regex,"\\1", $oid);
$oid = $field_array['oid'] . ".$snmp_index" . (isset($field_array['oid_suffix']) ? ('.' . $field_array['oid_suffix']) : '');
if ($field_name == 'ifOperStatus') {
if ($field_name == 'ifOperStatus' || $field_name == 'ifAdminStatus') {
switch(true) {
case preg_match('/^(down|2)/i',$value):
$value = 'Down';
Expand Down

0 comments on commit 51438fe

Please sign in to comment.