summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7c349a6)
raw | patch | inline | side by side (parent: 7c349a6)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 20 Mar 2009 20:49:33 +0000 (21:49 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 20 Mar 2009 20:53:51 +0000 (21:53 +0100) |
Also, the sample configuration in collectd.conf.in has been updated.
src/collectd.conf.in | patch | blob | history | |
src/collectd.conf.pod | patch | blob | history |
diff --git a/src/collectd.conf.in b/src/collectd.conf.in
index 44eaa974d250ffb90caa90a775cd8e765ee6a00a..6783a15c38c190de6fc6a35049d6e74b34e9ab55 100644 (file)
--- a/src/collectd.conf.in
+++ b/src/collectd.conf.in
# User "db_user"
# Password "secret"
# Database "db_name"
+# MasterStats true
# </Database>
#
# <Database db_name2>
# Host "localhost"
# Socket "/var/run/mysql/mysqld.sock"
+# SlaveStats true
+# SlaveNotifications true
# </Database>
#</Plugin>
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 00854ef6d82a96bc817408ebd4114a47f5f927ba..7feb198e9cd4e68546b96b122fe4e636d07d6944 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
possible. When the connection is interrupted for whatever reason it will try
to re-connect. The plugin will complaint loudly in case anything goes wrong.
-This plugin issues the MySQL C<SHOW STATUS> command and collects information
-about MySQL network traffic, executed statements, requests, the query cache
-and threads by evaluating the C<Bytes_{received,sent}>, C<Com_*>,
-C<Handler_*>, C<Qcache_*> and C<Threads_*> return values. Please refer to the
-B<MySQL reference manual>, I<5.1.6. Server Status Variables> for an
-explanation of these values.
+This plugin issues the MySQL C<SHOW STATUS> / C<SHOW GLOBAL STATUS> command
+and collects information about MySQL network traffic, executed statements,
+requests, the query cache and threads by evaluating the
+C<Bytes_{received,sent}>, C<Com_*>, C<Handler_*>, C<Qcache_*> and C<Threads_*>
+return values. Please refer to the B<MySQL reference manual>, I<5.1.6. Server
+Status Variables> for an explanation of these values.
+
+Optionally, master and slave statistics may be collected in a MySQL
+replication setup. In that case, information about the synchronization state
+of the nodes are collected by evaluating the C<Position> return value of the
+C<SHOW MASTER STATUS> command and the C<Seconds_Behind_Master>,
+C<Read_Master_Log_Pos> and C<Exec_Master_Log_Pos> return values of the
+C<SHOW SLAVE STATUS> command. See the B<MySQL reference manual>,
+I<12.5.5.21 SHOW MASTER STATUS Syntax> and
+I<12.5.5.31 SHOW SLAVE STATUS Syntax> for details.
Synopsis:
User "username"
Password "password"
Port "3306"
+ MasterStats true
</Database>
<Database bar>
Host "localhost"
Socket "/var/run/mysql/mysqld.sock"
+ SlaveStats true
+ SlaveNotifications true
</Database>
</Plugin>
Otherwise, use the B<Port> option above. See the documentation for the
C<mysql_real_connect> function for details.
+=item B<MasterStats> I<true|false>
+
+=item B<SlaveStats> I<true|false>
+
+Enable the collection of master / slave statistics in a replication setup.
+
+=item B<SlaveNotifications> I<true|false>
+
+If enabled, the plugin sends a notification if the replication slave I/O and /
+or SQL threads are not running.
+
=back
=head2 Plugin C<netlink>