Skip to content

Commit

Permalink
Missed snmp.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed Dec 5, 2024
1 parent 90e87da commit abffe94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/snmp.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ function snmp_translate($oid, $mib = 'ALL', $mibdir = null, $options = null, $de
$measure = Measurement::start('snmptranslate');
$cmd = [Config::get('snmptranslate', 'snmptranslate'), '-M', mibdir($mibdir, $device), '-m', $mib];

if (Oid::of($oid)->isNumeric()) {
if (Oid::isNumeric($oid)) {
$default_options = ['-Os', '-Pu'];
} else {
if ($mib != 'ALL' && ! Str::contains($oid, '::')) {
Expand Down

0 comments on commit abffe94

Please sign in to comment.