1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-05 01:53:44 +01:00

Add metrics without updates for known types

Closes #13
This commit is contained in:
Tomas Edwardsson 2014-06-21 16:51:15 +00:00
parent 03f7389842
commit cbcaa14997

View File

@ -45,6 +45,11 @@ def main():
for pkg in pkg_updates[update_type]:
p.add_long_output(" %s" % pkg)
for m in known_types:
m = m.lower()
if not p.get_metric(m):
p.add_metric(m, 0)
p.check_all_metrics()
p.exit()