Fix typo in ceph check script and add missing PG state
Change-Id: I6167c5189bad9eff0917a6af16b22a11b5a52f43 Closes-Bug: #1661505
This commit is contained in:
parent
295ffedf82
commit
4b7ff62c89
|
@ -70,6 +70,7 @@ class CephMonPlugin(base.ZabbixSender):
|
||||||
'replay': 0,
|
'replay': 0,
|
||||||
'splitting': 0,
|
'splitting': 0,
|
||||||
'scrubbing': 0,
|
'scrubbing': 0,
|
||||||
|
'deep': 0,
|
||||||
'degraded': 0,
|
'degraded': 0,
|
||||||
'inconsistent': 0,
|
'inconsistent': 0,
|
||||||
'peering': 0,
|
'peering': 0,
|
||||||
|
@ -99,7 +100,7 @@ class CephMonPlugin(base.ZabbixSender):
|
||||||
if s in pg_states:
|
if s in pg_states:
|
||||||
pg_states[s] += state['count']
|
pg_states[s] += state['count']
|
||||||
else:
|
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():
|
for n, num in pg_states.iteritems():
|
||||||
yield {
|
yield {
|
||||||
|
|
Loading…
Reference in New Issue