X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftape.c;h=b13cdbd84e6a18db69ff6f822c9f4bc9a9a3ea69;hb=3c0068137266e5e19abf7915b626e6b95fbc5006;hp=0fc8f2c5281a67414fb16d3ef5b8c054bc4cf25b;hpb=9ac8dcf06e686456ed893acedf5f0ba68e3e3c97;p=collectd.git diff --git a/src/tape.c b/src/tape.c index 0fc8f2c5..b13cdbd8 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1,6 +1,6 @@ /** * collectd - src/tape.c - * Copyright (C) 2005 Scott Garrett + * Copyright (C) 2005,2006 Scott Garrett * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -37,14 +37,14 @@ static char *tape_filename_template = "tape-%s.rrd"; /* 104857600 == 100 MB */ static char *tape_ds_def[] = { - "DS:rcount:COUNTER:25:0:U", - "DS:rmerged:COUNTER:25:0:U", - "DS:rbytes:COUNTER:25:0:U", - "DS:rtime:COUNTER:25:0:U", - "DS:wcount:COUNTER:25:0:U", - "DS:wmerged:COUNTER:25:0:U", - "DS:wbytes:COUNTER:25:0:U", - "DS:wtime:COUNTER:25:0:U", + "DS:rcount:COUNTER:"COLLECTD_HEARTBEAT":0:U", + "DS:rmerged:COUNTER:"COLLECTD_HEARTBEAT":0:U", + "DS:rbytes:COUNTER:"COLLECTD_HEARTBEAT":0:U", + "DS:rtime:COUNTER:"COLLECTD_HEARTBEAT":0:U", + "DS:wcount:COUNTER:"COLLECTD_HEARTBEAT":0:U", + "DS:wmerged:COUNTER:"COLLECTD_HEARTBEAT":0:U", + "DS:wbytes:COUNTER:"COLLECTD_HEARTBEAT":0:U", + "DS:wtime:COUNTER:"COLLECTD_HEARTBEAT":0:U", NULL }; static int tape_ds_num = 8; @@ -96,6 +96,7 @@ static void tape_write (char *host, char *inst, char *val) } +#if TAPE_HAVE_READ #define BUFSIZE 512 static void tape_submit (char *tape_name, unsigned long long read_count, @@ -122,7 +123,6 @@ static void tape_submit (char *tape_name, #undef BUFSIZE -#if TAPE_HAVE_READ static void tape_read (void) {