Setting up the mysql_ Plugin in Munin Rumi, June 6, 2014 After spending a few days trying to get the mysql_ plugin working in my munin installation, I’ve decided to write up the process. It include some pointers about troubleshooting and diagnosing problems with the plugin. Once you have munin and mysql working: # Save this to /etc/munin/plugin-conf.d/mysql_ [mysql_*] env.mysqlconnection DBI:mysql:mysql;host=127.0.0.1;port=3306 env.mysqluser munin env.mysqlpassword 5uperS3cr3tPassw0rd You may need to install some perl dependencies: yum install -y perl-Cache-Cache Now, test that your new user is able to connect to the db thorough munin. You should not see any mysql errors printed here. munin-node-configure –suggest 2>&1 | grep mysql Next, install the suggested mysql plugins: (munin-node-configure –shell 2>&1 | grep mysql | /bin/bash); service munin-node restart Finally, you can confirm that the plugin is setup and working properly by testing it by running munin-run and telnet: munin-run mysql_connections max_connections.value 151 Max_used_connections.value 3 Aborted_clients.value 2 Aborted_connects.value 1 Threads_connected.value 3 Connections.value 36 telnet localhost 4949 Trying 1.2.3.4… Connected to localhost. Escape character is ‘^]’. # munin node at localhost fetch mysql_connections max_connections.value 151 Max_used_connections.value 3 Aborted_clients.value 2 Aborted_connects.value 1 Threads_connected.value 3 Connections.value 38 quit Connection closed by foreign host. Src: http://alexcline.net/2013/07/12/setting-up-the-mysql_-plugin-in-munin/ Related Networking Munin
Mount Oracle Object Storage to Ubuntu Linux November 8, 2023 Step 1. Install s3fs on an OCI compute instance running Ubuntu SSH remotely into your Ubuntu server and run sudo apt update to update your system repository. Then type the command sudo apt install s3fs awscli -y to install S3fs on your system. To verify proper installation, run which s3fs and you should be… Read More
Install Cacti 1.2 on Debian 11 June 17, 2022 First, update the repository index. sudo apt update Install MariaDB Database Install MariaDB from Official MariaDB Mirror Update the repository index and install the required packages. sudo apt update sudo apt install -y software-properties-common dirmngr apt-transport-https wget curl Add signing key to your system. curl -fsSL https://mariadb.org/mariadb_release_signing_key.asc | sudo gpg… Read More
Munin Memcached Installation January 16, 2013 Download memcache plugin memcached.tar.gz the plug-in was found here: http://munin-monitoring.org/browser/trunk/plugins/node.d/memcached_.in. The alternate download link is Here- memcached.tar The plug-in is written in Perl and needs the Memcached Perl library installed to communicate with memcache. ~$ apt-get install libcache-memcached-perl ~$ tar -zxvf memcached.tar.gz ~$ cp memcached_ /usr/share/munin/plugins ~$ ln -s /usr/share/munin/plugins/memcached_… Read More