summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d161e0c)
raw | patch | inline | side by side (parent: d161e0c)
author | Chad Malfait <cmalfait@yahoo.com> | |
Thu, 11 Apr 2013 05:48:38 +0000 (23:48 -0600) | ||
committer | Chad Malfait <cmalfait@yahoo.com> | |
Thu, 11 Apr 2013 05:48:38 +0000 (23:48 -0600) |
clean | [new file with mode: 0755] | patch | blob |
src/types.db | patch | blob | history | |
src/volume.c | patch | blob | history |
diff --git a/clean b/clean
--- /dev/null
+++ b/clean
@@ -0,0 +1,52 @@
+#! /bin/sh
+
+set -x
+
+true \
+&& rm -f aclocal.m4 \
+&& rm -f -r autom4te.cache \
+&& rm -f collectd-*.tar.bz2 \
+&& rm -f collectd-*.tar.gz \
+&& rm -f compile \
+&& rm -f config.guess \
+&& rm -f config.log \
+&& rm -f config.status \
+&& rm -f config.sub \
+&& rm -f configure \
+&& rm -f depcomp \
+&& rm -f install-sh \
+&& rm -f -r libltdl \
+&& rm -f libtool \
+&& rm -f ltmain.sh \
+&& rm -f Makefile \
+&& rm -f Makefile.in \
+&& rm -f missing \
+&& rm -f -r src/.deps \
+&& rm -f -r src/.libs \
+&& rm -f src/*.o \
+&& rm -f src/*.la \
+&& rm -f src/*.lo \
+&& rm -f src/collectd \
+&& rm -f src/collectd.1 \
+&& rm -f src/config.h \
+&& rm -f src/config.h.in \
+&& rm -f src/config.h.in~ \
+&& rm -f src/Makefile \
+&& rm -f src/Makefile.in \
+&& rm -f src/stamp-h1 \
+&& rm -f src/stamp-h1.in \
+&& rm -f -r src/libping/.libs \
+&& rm -f src/libping/*.o \
+&& rm -f src/libping/*.la \
+&& rm -f src/libping/*.lo \
+&& rm -f src/libping/config.h \
+&& rm -f src/libping/config.h.in \
+&& rm -f src/libping/Makefile \
+&& rm -f src/libping/Makefile.in \
+&& rm -f src/libping/stamp-h2 \
+&& rm -f -r src/libcollectdclient/.libs \
+&& rm -f src/libcollectdclient/*.o \
+&& rm -f src/libcollectdclient/*.la \
+&& rm -f src/libcollectdclient/*.lo \
+&& rm -f bindings/.perl-directory-stamp \
+&& rm -f -r bindings/buildperl
diff --git a/src/types.db b/src/types.db
index 3358f5df59e82c4b1b3a55b7c74239159f804edf..fc51627be73a2876d7cb2ad45382ddd8355b06fd 100644 (file)
--- a/src/types.db
+++ b/src/types.db
latency value:GAUGE:0:65535
links value:GAUGE:0:U
load shortterm:GAUGE:0:100, midterm:GAUGE:0:100, longterm:GAUGE:0:100
+logical_vol value:GAUGE:0:U
md_disks value:GAUGE:0:U
memcached_command value:DERIVE:0:U
memcached_connections value:GAUGE:0:U
uptime value:GAUGE:0:4294967295
users value:GAUGE:0:65535
vcpu value:GAUGE:0:U
+vol_group used:GAUGE:0:U, free:GAUGE:0:U, size:GAUGE:0:U
virt_cpu_total value:DERIVE:0:U
virt_vcpu value:DERIVE:0:U
vmpage_action value:DERIVE:0:U
vs_memory value:GAUGE:0:9223372036854775807
vs_processes value:GAUGE:0:65535
vs_threads value:GAUGE:0:65535
+
#
# Legacy types
# (required for the v5 upgrade target)
diff --git a/src/volume.c b/src/volume.c
index a6fe0c3d11defe5807cfebc77812b041064b5697..009c9be123d06a72416d7fbd031c7ec1d0acba62 100644 (file)
--- a/src/volume.c
+++ b/src/volume.c
vl.values_len = STATIC_ARRAY_SIZE (values);
sstrncpy(vl.host, hostname_g, sizeof (vl.host));
- sstrncpy(vl.plugin, "vg", sizeof (vl.plugin));
+ sstrncpy(vl.plugin, "vol_group", sizeof (vl.plugin));
sstrncpy(vl.plugin_instance, vg_name, sizeof (vl.plugin_instance));
- sstrncpy(vl.type, "vg", sizeof (vl.type));
+ sstrncpy(vl.type, "vol_group", sizeof (vl.type));
sstrncpy(vl.type_instance, vg_name, sizeof (vl.type_instance));
plugin_dispatch_values (&vl);
vl.values_len = STATIC_ARRAY_SIZE (values);
sstrncpy(vl.host, hostname_g, sizeof (vl.host));
- sstrncpy(vl.plugin, "vg", sizeof (vl.plugin));
+ sstrncpy(vl.plugin, "vol_group", sizeof (vl.plugin));
sstrncpy(vl.plugin_instance, vg_name, sizeof (vl.plugin_instance));
- sstrncpy(vl.type, "lv", sizeof (vl.type));
+ sstrncpy(vl.type, "logical_vol", sizeof (vl.type));
sstrncpy(vl.type_instance, lv_name, sizeof (vl.type_instance));
plugin_dispatch_values (&vl);