#!/usr/bin/python
#@author eric Mourgaya
# check  ceph health
# import  the libmonjuice  from /opt/inkscope/lib
import os
import sys
LIBREP="/opt/inkscope/lib/"
LIBPATH=os.path.dirname(LIBREP)
if LIBPATH not in sys.path:
    sys.path.append(LIBPATH)
from libmongojuice import *
import sys

res=check_nearfull()

if  res == 0:
    print "ceph is not near full ok"
elif res == 1:
    print "warning  something  wrong ceph is nearfull: add new osd "
else:
    print "alert:  something really wrong add new osd !"
sys.exit(res)

