check_graphite script