UFW
This commit is contained in:
parent
32a065ed57
commit
99b6c4d5f0
1 changed files with 1 additions and 1 deletions
|
@ -11,6 +11,6 @@ class UFW:
|
|||
stream = os.popen('ufw status | grep "Status: active" | wc -l')
|
||||
output = stream.read()
|
||||
self.exporter.gauge("ufw.status", int(output))
|
||||
stream = os.popen('ufw status | grep -E '^[0-9]' | wc -l')
|
||||
stream = os.popen("ufw status | grep -E '^[0-9]' | wc -l")
|
||||
output = stream.read()
|
||||
self.exporter.gauge("ufw.rules", int(output))
|
||||
|
|
Loading…
Reference in a new issue