Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
e057064f
Verified
Commit
e057064f
authored
Jun 25, 2022
by
Andrey Vertiprahov
Browse files
Generic.get_metrics. Check SNMP for S access preference.
parent
18b3646a
Pipeline
#36637
passed with stages
in 14 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Generic/get_metrics.py
View file @
e057064f
...
...
@@ -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
()
...
...
Andrey Vertiprahov
@aversant
mentioned in commit
abb4c929
·
Jun 25, 2022
mentioned in commit
abb4c929
mentioned in commit abb4c929194b98d22ea71fc8e76f51f6cb3ca20d
Toggle commit list
Andrey Vertiprahov
@aversant
mentioned in merge request
!6408 (merged)
·
Jun 25, 2022
mentioned in merge request
!6408 (merged)
mentioned in merge request !6408
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment