summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f2dbf2)
raw | patch | inline | side by side (parent: 6f2dbf2)
author | daryder <daryder@cisco.com> | |
Mon, 2 Mar 2015 14:33:01 +0000 (09:33 -0500) | ||
committer | daryder <daryder@cisco.com> | |
Mon, 2 Mar 2015 14:33:01 +0000 (09:33 -0500) |
src/ceph.c | patch | blob | history |
diff --git a/src/ceph.c b/src/ceph.c
index 4f68e5bc975934fc7f162c04f5c4540e9b8eafd0..4ae6e54b34b432deae4478a8c21aa8287b2bfa80 100644 (file)
--- a/src/ceph.c
+++ b/src/ceph.c
struct ceph_daemon *d = (struct ceph_daemon *) arg;
int pc_type;
pc_type = atoi(val);
- DEBUG("ceph plugin: ceph_daemon_add_ds_entry(d=%s,key=%s,pc_type=%04x)",
- d->name, key, pc_type);
return ceph_daemon_add_ds_entry(d, key, pc_type);
}
@@ -1006,8 +1004,6 @@ static int node_handler_fetch_data(void *arg, const char *val, const char *key)
{
double sum, result;
sscanf(val, "%lf", &sum);
- DEBUG("ceph plugin: avgcount:%" PRIu64,vtmp->avgcount);
- DEBUG("ceph plugin: sum:%lf",sum);
if(vtmp->avgcount == 0)
{
@@ -1018,7 +1014,6 @@ static int node_handler_fetch_data(void *arg, const char *val, const char *key)
if(long_run_latency_avg)
{
result = (sum / vtmp->avgcount);
- DEBUG("ceph plugin: uv->gauge = sumd / avgcounti = :%lf", result);
}
else
{
@@ -1027,8 +1022,6 @@ static int node_handler_fetch_data(void *arg, const char *val, const char *key)
{
return -ENOMEM;
}
- DEBUG("ceph plugin: uv->gauge = (sumd_now - sumd_last) / "
- "(avgcounti_now - avgcounti_last) = :%lf", result);
}
uv.gauge = result;
@@ -1039,12 +1032,10 @@ static int node_handler_fetch_data(void *arg, const char *val, const char *key)
case DSET_BYTES:
sscanf(val, "%lf", &tmp_d);
uv.gauge = tmp_d;
- DEBUG("ceph plugin: uv->gauge = %lf",uv.gauge);
break;
case DSET_RATE:
sscanf(val, "%" PRIu64, &tmp_u);
uv.derive = tmp_u;
- DEBUG("ceph plugin: uv->derive = %" PRIu64 "",(uint64_t)uv.derive);
break;
case DSET_TYPE_UNFOUND:
default:
@@ -1057,7 +1048,6 @@ static int node_handler_fetch_data(void *arg, const char *val, const char *key)
vtmp->vlist.values = &uv;
vtmp->vlist.values_len = 1;
- DEBUG("ceph plugin: dispatching %s\n", ds_name);
vtmp->index = (vtmp->index + 1);
plugin_dispatch_values(&vtmp->vlist);
}
else if(ret == 1)
{
- DEBUG("ceph plugin: did cconn_prepare(name=%s,i=%d,st=%d)",
- io->d->name, i, io->state);
polled_io_array[nfds++] = io_array + i;
}
}
{
/* finished */
ret = 0;
- DEBUG("ceph plugin: cconn_main_loop: no more cconn to manage.");
goto done;
}
gettimeofday(&tv, NULL);
static int ceph_init(void)
{
int ret;
- DEBUG("ceph plugin: ceph_init");
ceph_daemons_print();
ret = cconn_main_loop(ASOK_REQ_VERSION);