master: split rrd updates when using rrdcached

Commands sended to rrdcached are limited to 4KiB. For really large vector
updates do to spoolfetching or supersampling, this gets too small, so we do
unit cmd sending and let rrdcached buffer it out for us.
plugins: auto detect SATA in hddtemp_smartctl

It needs smartmontools 5.38 or higher, so it might not be
compatible with older systems like RHEL4.

Closes: D#497400
Makefile.config: fix bad interpreter
Fix link names in documentations.
apc_nis: create only one socket before going for config.
apc_nis: improve configuration.

Use a static title for the graph so that it's easier to integrate with
Icinga/Munin. The host/port address pair is given in the graph's info
instead.

Read the LOTRANS/HITRANS value during configuration and use them as
warning canaries for the line voltage.
plugins: replace deprecated graph_vtitle with graph_vlabel.
ejabberd_: allow overriding the ejabberd.cfg path and add /etc/jabber to search paths.

This fixes ejabberd_ plugin on Gentoo and solves one of the known bugs
of the plugin.
Merge pull request #26 from kjmkznr/devel

Fix GOODSH bad interpreter
Merge pull request #27 from gentoo/devel

Gentoo fixes
Merge branch 'fix-rrdcached' into devel
plugins: use Storable::nstore() instead of store()

Storable::store() isn't very reliable accross Perl versions.
Since ::nstorable() is, well, we change.

In the future, all those plugins shall use the state handling from
Munin::Plugin.

Closes: #1259, D#688528
plugins: ignore wrong state files.
Fix postgresql_* plugins for PostgreSQL 9.2 support.

The pg_stat_activity system view, used in many Munin postgresql_* plugins,
changed in the recent PostgreSQL 9.2 release. In particular:
- the 'procpid' column was renamed to 'pid'.
- the 'current_query' column was renamed to 'query', and contains the last
  executed query (even when the connection is idling).
- an additional 'state' field was added (replaces and completes the old
  current_query='<IDLE>' tests and similar).

Cf. the new pg_stat_activity view structure documentation here :
http://www.postgresql.org/docs/9.2/static/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW
as opposed to the structure for an older PostgreSQL release here :
http://www.postgresql.org/docs/9.1/static/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW

The Munin::Plugin::Pgsql framework allows us to update the plugins to
support pg 9.2 without breaking compatibility for older versions
(changes tested on PostgreSQL 9.2 and 9.0).
Fix postgres_*prepared_xacts_ plugins.

postgres_oldest_prepared_xact_ and postgres_prepared_xacts_ uses the same
"wildcardfilter" ("WHERE database=?") in their "configquery" and their
"basequery".

But those two queries uses two different tables, with different columns
names to refer to the database name ; the "pg_database" table has a "datname"
column, while the "pg_prepared_xacts" view has a "database" column.
So we can't add a "WHERE $something=?" filter as is in both queries.

Let's add a gratuitous JOIN in the "basequery" (joining pg_database, so
we're sure any existing database name will be joined) ; then we can
use a common "WHERE datname=?" filter on both queries.

Those tables columns are still the same since xact statistics where
introduced, in PostgreSQL 8.1, so this plugin's config had always been broken.
http://www.postgresql.org/docs/8.1/static/release-8-1.html
http://www.postgresql.org/docs/8.1/static/view-pg-prepared-xacts.html
http://www.postgresql.org/docs/8.1/static/catalog-pg-database.html
Merge pull request #29 from bpineau/postgresql_fixes

PostgreSQL plugins fixes
node.d.linux/interrupts: encode as UTF-8
fw_conntrack: count both ipv4 and ipv6 connections together.

Without this change, only ipv4 connections are counted and they might
float more than expected.
plugins: fix plugin vserver_cpu_ for 9+ cpu cores

Issue is that grep "cpu 1" matches multiple CPU lines when CPU1 & CPU12 exists.

Closes: D#681938
Merge pull request #30 from gentoo/devel

fw_conntrack: count both ipv4 and ipv6 connections together.