This commit is contained in:
Kekskurse 2019-12-30 18:51:57 +01:00
parent 4031d905b5
commit fff9ac1928

View file

@ -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)