# Path: cephinfo/cephinfo.py
# def jsoncmd(command):
# def init_df():
# def init_mon():
# def init_osd():
# def init_pg():
# def init_auth():
# def init_stat():
# def init_crush():
# def get_json():
# def get_pools_data():
# def get_n_pools():
# def get_osds_data():
# def get_n_osds():
# def get_osd_states():
# def get_pg_data():
# def get_pg_stats():
# def get_pg_stats_sum():
# def get_osd_stats_sum():
# def get_pg_stats_delta():
# def get_n_pgs():
# def get_pg_states():
# def get_n_mons():
# def get_n_mons_quorum():
# def get_write_latency():
# def get_read_latency():
# def rados_cleanup(prefix):
# def get_n_openstack_volumes():
# def get_n_openstack_images():
# def get_smooth_activity(n):


from datetime import date
from cephinfo import cephinfo
#!/usr/bin/env python
# prints a daily report, format:
# 05/02/2014 space 192037936693248 size 39918660100096 files 207894707


cephinfo.init_df()

REPORTED = ('castor','dpm','images','volumes','atlassfst','.rgw.buckets')
REPORTED = ()

t_objects = 0
t_bytes_used = 0

# Path: cephinfo/cephinfo.py
# def jsoncmd(command):
# def init_df():
# def init_mon():
# def init_osd():
# def init_pg():
# def init_auth():
# def init_stat():
# def init_crush():
# def get_json():
# def get_pools_data():
# def get_n_pools():
# def get_osds_data():
# def get_n_osds():
# def get_osd_states():
# def get_pg_data():
# def get_pg_stats():
# def get_pg_stats_sum():
# def get_osd_stats_sum():
# def get_pg_stats_delta():
# def get_n_pgs():
# def get_pg_states():
# def get_n_mons():
# def get_n_mons_quorum():
# def get_write_latency():
# def get_read_latency():
# def rados_cleanup(prefix):
# def get_n_openstack_volumes():
# def get_n_openstack_images():
# def get_smooth_activity(n):


# Path: tools/c5report.py
from datetime import date
from cephinfo import cephinfo

#!/usr/bin/env python
# prints a daily report, format:
# 05/02/2014 space 192037936693248 size 39918660100096 files 207894707


cephinfo.init_df()

REPORTED = ('castor','dpm','images','volumes','atlassfst','.rgw.buckets')
REPORTED = ()

t_objects = 0
t_bytes_used = 0

for pool in cephinfo.df_data['pools']: