Failed health now adds to general failure metric.

This commit is contained in:
rasmus 2020-12-28 22:06:44 +02:00
parent 1ce97ebf70
commit 2efab4202d
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ def prom_servers(PREFIX, baysInUseCount, servers):
health = 1
elif servers[n][3] == 'Failed':
health = 0
errors += 1
else:
health = 'NaN'
warn("unknown health on blade '" + servers[n][1] + "' in enc " + servers[n][8] + " bay " + str(servers[n][0]) + "." )