rochaporto / collectd-ceph

collectd plugins and dashboards for ceph
GNU General Public License v2.0
60 stars 65 forks source link

fixed variable name #34

Open ghost opened 8 years ago

ghost commented 8 years ago

ceph_pool_plugin threw an exeption which shows in syslog as


Feb 16 08:29:29 ceph00 collectd[4416]: ceph-pool: failed to ceph pool stats :: global name 'ceph_dfcmdline' is not defined :: Traceback (most recent call last):#012  File "/usr/share/collectd/python/ceph_pool_plugin.py", line 57, in get_stats#012    df_output = subprocess.check_output(ceph_dfcmdline, shell=True)#012NameError: global name 'ceph_dfcmdline' is not defined
Feb 16 08:29:29 ceph00 collectd[4416]: ceph: failed to retrieve stats

I found that "ceph_dfcmdline" was actually called "cephdf_cmdline".

waipeng commented 8 years ago

Can confirm this works. Please merge this, thanks!

A-Dechorgnat commented 8 years ago

+1

cgimeno commented 8 years ago

Confirmed

Kallio commented 8 years ago

Please merge this. IT has also duplicate req #42 and #41

dbiazus commented 7 years ago

👍