mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Merge pull request #1445 from d0m84/patch-2
Fix spelling mistake in crowdsec plugin
This commit is contained in:
commit
bf9a4e4605
1 changed files with 6 additions and 6 deletions
|
@ -174,7 +174,7 @@ class Decisions():
|
||||||
print(f'{name}.value {v}')
|
print(f'{name}.value {v}')
|
||||||
|
|
||||||
|
|
||||||
class Aquisitions():
|
class Acquisitions():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# requires crowdsec >= 1.5.3
|
# requires crowdsec >= 1.5.3
|
||||||
try:
|
try:
|
||||||
|
@ -185,8 +185,8 @@ class Aquisitions():
|
||||||
def config(self):
|
def config(self):
|
||||||
if len(self.data) > 0:
|
if len(self.data) > 0:
|
||||||
print(dedent("""
|
print(dedent("""
|
||||||
multigraph aquisitions
|
multigraph acquisitions
|
||||||
graph_title CrowdSec Aquisitions
|
graph_title CrowdSec Acquisitions
|
||||||
graph_args --base 1000 --lower-limit 0
|
graph_args --base 1000 --lower-limit 0
|
||||||
graph_vlabel Lines per ${graph_period}
|
graph_vlabel Lines per ${graph_period}
|
||||||
graph_category security
|
graph_category security
|
||||||
|
@ -209,7 +209,7 @@ class Aquisitions():
|
||||||
if type in self.data['acquisition'][source]:
|
if type in self.data['acquisition'][source]:
|
||||||
r[type] += self.data['acquisition'][source][type]
|
r[type] += self.data['acquisition'][source][type]
|
||||||
print(dedent(f"""
|
print(dedent(f"""
|
||||||
multigraph aquisitions
|
multigraph acquisitions
|
||||||
reads.value {r['reads']}
|
reads.value {r['reads']}
|
||||||
unparsed.value {r['unparsed']}
|
unparsed.value {r['unparsed']}
|
||||||
parsed.value {r['parsed']}
|
parsed.value {r['parsed']}
|
||||||
|
@ -222,8 +222,8 @@ if __name__ == "__main__":
|
||||||
elif len(sys.argv) == 2 and sys.argv[1] == 'config':
|
elif len(sys.argv) == 2 and sys.argv[1] == 'config':
|
||||||
state = State()
|
state = State()
|
||||||
Decisions().config()
|
Decisions().config()
|
||||||
Aquisitions().config()
|
Acquisitions().config()
|
||||||
else:
|
else:
|
||||||
state = State()
|
state = State()
|
||||||
Decisions().current()
|
Decisions().current()
|
||||||
Aquisitions().current()
|
Acquisitions().current()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue