memory plugin: Check for `HAVE_HOST_STATISTICS' rather than `HOST_VM_INFO'.
[collectd.git] / src / nfs.c
index d54c838..299d63b 100644 (file)
--- a/src/nfs.c
+++ b/src/nfs.c
@@ -24,8 +24,6 @@
 #include "common.h"
 #include "plugin.h"
 
-#define MODULE_NAME "nfs"
-
 /* #if defined(KERNEL_LINUX) || defined(HAVE_LIBKSTAT) */
 #if KERNEL_LINUX
 # define NFS_HAVE_READ 1
@@ -78,16 +76,6 @@ Number      Procedures  Procedures
 21                      commit
 */
 
-static data_source_t procedure_dsrc[1] =
-{
-       {"value", DS_TYPE_COUNTER, 0, 4294967295.0}
-};
-
-static data_set_t procedure_ds =
-{
-       "nfs_procedure", 1, procedure_dsrc
-};
-
 #if NFS_HAVE_READ
 static const char *nfs2_procedures_names[] =
 {
@@ -382,11 +370,7 @@ static int nfs_read (void)
 
 void module_register (void)
 {
-       plugin_register_data_set (&procedure_ds);
-
 #if NFS_HAVE_READ
        plugin_register_read ("nfs", nfs_read);
 #endif
-}
-
-#undef MODULE_NAME
+} /* void module_register */