Fix return value or loglevel for several plugins
[collectd.git] / src / openvpn.c
index 193a9b4..10a4259 100644 (file)
@@ -28,8 +28,8 @@
 
 #include "collectd.h"
 
-#include "common.h"
 #include "plugin.h"
+#include "utils/common/common.h"
 
 /**
  * There is two main kinds of OpenVPN status file:
@@ -506,7 +506,7 @@ static int openvpn_config(const char *key, const char *value) {
         });
 
     if (status == EINVAL) {
-      WARNING("openvpn plugin: status filename \"%s\" "
+      ERROR("openvpn plugin: status filename \"%s\" "
               "already used, please choose a "
               "different one.",
               status_name);