diff --git a/src/tape.c b/src/tape.c
index 0fc8f2c5281a67414fb16d3ef5b8c054bc4cf25b..b13cdbd84e6a18db69ff6f822c9f4bc9a9a3ea69 100644 (file)
--- a/src/tape.c
+++ b/src/tape.c
/**
* collectd - src/tape.c
/**
* 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
*
* 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
/* 104857600 == 100 MB */
static char *tape_ds_def[] =
{
/* 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;
NULL
};
static int tape_ds_num = 8;
}
}
+#if TAPE_HAVE_READ
#define BUFSIZE 512
static void tape_submit (char *tape_name,
unsigned long long read_count,
#define BUFSIZE 512
static void tape_submit (char *tape_name,
unsigned long long read_count,
#undef BUFSIZE
#undef BUFSIZE
-#if TAPE_HAVE_READ
static void tape_read (void)
{
static void tape_read (void)
{