Managed
This commit is contained in:
parent
4031d905b5
commit
fff9ac1928
1 changed files with 1 additions and 1 deletions
|
@ -10,4 +10,4 @@ class APT:
|
||||||
def run(self):
|
def run(self):
|
||||||
stream = os.popen('apt list --upgradable 2>/dev/null | wc -l')
|
stream = os.popen('apt list --upgradable 2>/dev/null | wc -l')
|
||||||
output = stream.read()
|
output = stream.read()
|
||||||
self.exporter.gauge("apt.upgradable", int(output))
|
self.exporter.gauge("apt.upgradable", int(output) - 1)
|
||||||
|
|
Loading…
Reference in a new issue