Skip to content

Commit

Permalink
mysql: and grants and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Black committed Mar 31, 2015
1 parent 740deab commit 2d0d9f7
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions plugins/node.d/mysql_
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,25 @@ Non-default example:
env.mysqluser munin;
env.mysqlpassword ryuWyawEv
env.cachenamespace munin_mysql_alt
[mysql10_*]
env.mysqluser munin
env.mysqlconnection DBI:mysql:information_schema;mysql_read_default_file=/etc/munin/.my-10.cnf
env.cachenamespace munin_mysql_10
# here the [client] section of /etc/munin/.my-10.cnf is read. socket= can
# be specified here.
Creating a munin user:
CREATE USER 'munin'@'localhost' IDENTIFIED BY 'ryuWyawEv';
or with a unix_socket plugin (INSTALL PLUGIN unix_socket SONAME 'auth_socket')
CREATE USER 'munin'@'localhost' IDENTIFIED WITH unix_socket;
The minimum required priviledges of the munin database user is:
GRANT PROCESS, REPLICATION CLIENT ON *.* TO 'munin'@'localhost';
Warning and critical values can be set via the environment in the usual way.
For example:
Expand All @@ -66,10 +85,6 @@ For example:
env.seconds_behind_master_warning 300
env.seconds_behind_master_critical 600
The minimum required priviledges of the munin database user is:
GRANT PROCESS, REPLICATION CLIENT ON *.* TO 'munin'@'localhost';
=head1 DEPENDENCIES
=over
Expand Down

0 comments on commit 2d0d9f7

Please sign in to comment.