in ceph-osd-info:

Break up some functions into more manageble steps.
If json from ceph is invalid, handle it correctly (i.e. dont return anything)
Handle larger chunks of data from ceph (100k instead of 10k per osd).