Fix typo in ceph check script and add missing PG state

Change-Id: I6167c5189bad9eff0917a6af16b22a11b5a52f43
Closes-Bug: #1661505
This commit is contained in:
Olivier Bourdon 2017-02-03 11:30:57 +01:00
parent 295ffedf82
commit 4b7ff62c89
1 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ class CephMonPlugin(base.ZabbixSender):
'replay': 0,
'splitting': 0,
'scrubbing': 0,
'deep': 0,
'degraded': 0,
'inconsistent': 0,
'peering': 0,
@ -99,7 +100,7 @@ class CephMonPlugin(base.ZabbixSender):
if s in pg_states:
pg_states[s] += state['count']
else:
self.logger.warnings("PG state not known {}".format(s))
self.logger.warning("PG state not known {}".format(s))
for n, num in pg_states.iteritems():
yield {