author | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 11 Sep 2015 21:29:08 +0000 (23:29 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 11 Sep 2015 21:29:08 +0000 (23:29 +0200) |
configure.ac | patch | blob | history | |
src/collectd.conf.pod | patch | blob | history | |
src/snmp.c | patch | blob | history | |
src/virt.c | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index f10ed0b859839748e947fafb17d55da79874a459..bf920722047716924c09b0484019bcd3aa71225a 100644 (file)
--- a/configure.ac
+++ b/configure.ac
@@ -2738,7 +2738,7 @@ AC_ARG_WITH(libmysql, [AS_HELP_STRING([--with-libmysql@<:@=PREFIX@:>@], [Path to
])
if test "x$with_libmysql" = "xyes"
then
- with_mysql_cflags=`$with_mysql_config --cflags 2>/dev/null`
+ with_mysql_cflags=`$with_mysql_config --include 2>/dev/null`
mysql_config_status=$?
if test $mysql_config_status -ne 0
then
with_libmysql="no ($with_mysql_config failed)"
else
- AC_CHECK_LIB(mysqlclient, mysql_init,
- [with_libmysql="yes"],
- [with_libmysql="no (symbol 'mysql_init' not found)"],
- [$with_mysql_libs])
-
- AC_CHECK_LIB(mysqlclient, mysql_get_server_version,
+ SAVE_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $with_mysql_cflags"
+ SAVE_LIBS="$LIBS"
+ LIBS="$with_mysql_libs"
+ AC_SEARCH_LIBS([mysql_get_server_version],
+ [],
[with_libmysql="yes"],
[with_libmysql="no (symbol 'mysql_get_server_version' not found)"],
- [$with_mysql_libs])
+ [])
+ CPPFLAGS="$SAVE_CPPFLAGS"
+ LIBS="$SAVE_LIBS"
fi
fi
if test "x$with_libmysql" = "xyes"
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index ee009eef538d5b47ae9155398fb5e32b33bbab1f..d20feae8e4d690d87645f96357dc850e6252a21c 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
B<uuid> means use the guest's UUID.
+You can also specify combinations of these fields. For example B<name uuid>
+means to concatenate the guest name and UUID (with a literal colon character
+between, thus I<"foo:1234-1234-1234-1234">).
+
=back
=head2 Plugin C<vmem>
diff --git a/src/snmp.c b/src/snmp.c
index d9a932a393ba65e33be5c3970046326d5df6c0e8..18c52077fc0798079d9ba537fb1283f7fb460d70 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
@@ -1681,7 +1681,7 @@ static int csnmp_read_value (host_definition_t *host, data_definition_t *data)
if (host->sess_handle == NULL)
{
- DEBUG ("snmp plugin: csnmp_read_table: host->sess_handle == NULL");
+ DEBUG ("snmp plugin: csnmp_read_value: host->sess_handle == NULL");
return (-1);
}
diff --git a/src/virt.c b/src/virt.c
index dff8f71dcb9119c812ad9645f72ea2d5f010b824..663555b9bd33a2375d717482987041824a3f5c76 100644 (file)
--- a/src/virt.c
+++ b/src/virt.c
else if (strcasecmp (fields[i], "uuid") == 0)
hostname_format[i] = hf_uuid;
else {
- sfree (value_copy);
ERROR (PLUGIN_NAME " plugin: unknown HostnameFormat field: %s", fields[i]);
+ sfree (value_copy);
return -1;
}
}
else if (strcasecmp (fields[i], "uuid") == 0)
plugin_instance_format[i] = plginst_uuid;
else {
+ ERROR (PLUGIN_NAME " plugin: unknown PluginInstanceFormat field: %s", fields[i]);
sfree (value_copy);
- ERROR (PLUGIN_NAME " plugin: unknown HostnameFormat field: %s", fields[i]);
return -1;
}
}