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,
|
||||
'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 {
|
||||
|
|
Loading…
Reference in New Issue