Tuesday 28 May 2013

Install Mysql Plugin in munin


[root@localhost plugins]# ln -s /usr/share/munin/plugins/mysql_slowqueries  /etc/munin/plugins/mysql_slowqueries

[root@localhost plugins]# ln -s /usr/share/munin/plugins/mysql_threads /etc/munin/plugins/mysql_threads

[root@localhost plugins]# ln -s /usr/share/munin/plugins/mysql_queries /etc/munin/plugins/mysql_queries

[root@localhost plugins]# ln -s /usr/share/munin/plugins/mysql_bytes /etc/munin/plugins/mysql_bytes

[root@localhost plugins]# ln -s /usr/share/munin/plugins/mysql_innodb /etc/munin/plugins/mysql_innodb

Edit file and add

[root@localhost plugins]# vi /etc/munin/plugin-conf.d/munin-node

[mysql*]
   env.mysqlopts -u mysqlusername --password=mysqlpassword
 
[root@localhost plugins]# /etc/init.d/munin-node restart
Stopping Munin Node agents: [ OK ]
Starting Munin Node: [ OK ]

[root@localhost plugins]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]


No comments:

Post a Comment

Install XRDP in Centos 7

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum update yum groupinstall "GNOME Desktop" ...