diff --git a/LibreNMS/Data/Source/NetSnmpQuery.php b/LibreNMS/Data/Source/NetSnmpQuery.php index 129be22ac5..f71215a2d7 100644 --- a/LibreNMS/Data/Source/NetSnmpQuery.php +++ b/LibreNMS/Data/Source/NetSnmpQuery.php @@ -248,6 +248,10 @@ class NetSnmpQuery implements SnmpQueryInterface */ public function get($oid): SnmpResponse { + if (empty($oid)) { + return new SnmpResponse(''); + } + return $this->exec('snmpget', $this->parseOid($oid)); }