Hi Robert,
I've just been testing your ceph check and I have made a small modification to
allow it to adjust itself to suit the autoscaling of the units Ceph outputs.
Here is the relevant section I have modified:-
if line[1] == 'TB':
used = saveint(line[0]) * 1099511627776
elif line[1] == 'GB':
used = saveint(line[0]) * 1073741824
elif line[1] == 'MB':
used = saveint(line[0]) * 1048576
if line[7] == 'TB':
size = saveint(line[6]) * 1099511627776
elif line[7] == 'GB':
size = saveint(line[6]) * 1073741824
elif line[7] == 'MB':
size = saveint(line[6]) * 1048576
I'm guessing that it may also need a PB part as well but I can only dream of
having a cluster large enough to test this.
I have also noticed that the graphs generated in Check_MK scale in base 10, so
the graphs will always be slightly out compared to the true value. I don't know
if there is a way to change this, I couldn't see anything from the brief look I
had.
I may also look at putting some cluster IO perf data and # of objects in the
future, will keep you posted.
Nick
-----Original Message-----
From: ceph-users [mailto:[email protected]] On Behalf Of Robert
Sander
Sent: 07 November 2014 13:51
To: [email protected]
Subject: [ceph-users] Ceph Monitoring with check_MK
Hi,
I just create a simple check_MK agent plugin and accompanying checks to monitor
the overall health status and pool usage with the check_MK / OMD monitoring
system:
https://github.com/HeinleinSupport/check_mk/tree/master/ceph
One question remains: What is the real unit of the ceph df output?
It shows used "GB".
Are these GiB (Gibibyte, 2^30 bytes) oder SI GB (Gigabyte, 10^9 bytes)?
Regards
--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin
http://www.heinlein-support.de
Tel: 030 / 405051-43
Fax: 030 / 405051-19
Zwangsangaben lt. §35a GmbHG:
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com