Verified Commit e057064f authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Generic.get_metrics. Check SNMP for S access preference.

parent 18b3646a
......@@ -365,6 +365,8 @@ class Script(BaseScript, metaclass=MetricScriptBase):
return False
if f.mt_matcher and not getattr(self, f.mt_matcher, False):
return False
if f.mt_access == "S" and not self.has_snmp():
return False
return True
pref = self.get_access_preference()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment