src/utils_mount.h: Add <stdio.h>.

This is required on Solaris 10. Thanks to dannypoo@ for reporting this
problem.

Github: #306
Improve varnish section in manpage.

There previously was no mention of the mandatory <Instance> block.
varnish: hint about missing <Instance> block

The warning when the Collect* configuration options where used outside
of an <Instance> block was confusing. This patch warns the user the same
way the apache plugin does.
Fix modbus segfault / New strategy for connecting

The previous implementation had a reconnection loop which should not
really be necessary. Idea tried here is to check if connection is alive,
and establish it if not. Change was begun because previously connection
would only be attempted as a retry, so on first pass a NULL was handed to
libmodbus which caused segmentation faults reproducibly.

Signed-off-by: Florian Forster <octo@collectd.org>
Cleanup modbus connection if wrong result

Change-Id: I1b7520442d7663d5bc2529369e27e3e858fe2168
Signed-off-by: Florian Forster <octo@collectd.org>
modbus plugin: Refactor the new reconnection code.

Avoid the goto() and switch() statements.

Github: #294
Merge branch 'document-varnish-instance-block' into collectd-5.2
exec plugin: Document that defaulting to PUTVAL is no longer done

Signed-off-by: Florian Forster <octo@collectd.org>
Add "=encoding" header to all manual pages.

http://bugs.debian.org/708718
Don't notify continuously when MySQL slave SQL thread is running

Signed-off-by: Florian Forster <octo@collectd.org>
Merge branch 'collectd-4.10' into collectd-5.2
src/configfile.c: Let errors in included files propagate up to cf_read().

cf_read_generic() returned NULL in two cases: Unable to read file and
file was empty. Since we wanted to allow empty includes, the "include
file with errors" case was not handled properly.

Github: #323
Unbreak type_inst value in collectd psql view.

Signed-off-by: Florian Forster <octo@collectd.org>
threshold plugin: Fix the "Interesting" configuration option.

Signed-off-by: Florian Forster <octo@collectd.org>
collectd-threshold(5): Correct the description of the "Interesting" config option.
src/common.c: Reimplement format_name for performance.

This is used from uc_update(), i.e. for every value list dispatched, and was
one of the most expensive functions thanks to snprintf().

This reduces total time spent in the format_name() function from 7.78% to 1.89%
during a network stress test.
csv plugin: Re-implement value_list_to_filename().

The new implementation is faster, because it doesn't use snprintf().
rrdtool, rrdcached plugins: Re-implement value_list_to_filename().

Faster version without snprintf().
write_graphite plugin: Actually check the return value of wg_send_message().

Assignment to "status" was missing.
write_graphite plugin: Don't call close() on invalid file descriptors.