Browse Source

Fix typo in ceph check script and add missing PG state

Change-Id: I6167c5189bad9eff0917a6af16b22a11b5a52f43
Closes-Bug: #1661505
Olivier Bourdon 2 years ago
parent
commit
4b7ff62c89

+ 2
- 1
deployment_scripts/puppet/modules/plugin_zabbix/files/scripts/ceph.py View File

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

Loading…
Cancel
Save