Server Monitoring with Munin and Monit on Ubuntu 14.04 LTS

Our system’s hostname is server1.example.com, and we have a website www.example.com on it with the document root/var/www/www.example.com/web.

The following steps have to be performed as root user. To become root user on your server, run this command:

sudo su

Ensure that the system is up to date before you start to install Munin, run:

apt-get update
apt-get upgrade

Apache is used to show the Munin pages, the apache fcgid module is required for the Munin graph zoom feature. I will install apache and the libapache2-mod-fcgid module with apt.

Read more

Share

Setting up the mysql_ Plugin in Munin

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:

Read more

Share

Munin adding up new eth interface

root@pluto:/usr/share/munin/plugins# ./if_ suggest
ath0
eth0

–shell

munin-node-configure –shell creates symlink commands to link useful plugins from the plugin library to the plugin service directory (usually /etc/munin/plugins).

To continue the if_ example:
root@pluto:/usr/share/munin/plugins# munin-node-configure –shell
ln -s /usr/share/munin/plugins/if_ /etc/munin/plugins/if_ath0
ln -s /usr/share/munin/plugins/if_ /etc/munin/plugins/if_eth0
 

Share

Munin to monitor mysql on Debian 6

First we need to install some Mysql-Munin perl libraries:

apt-get install libipc-sharelite-perl

Also some Perl stuff will be needed:

perl -MCPAN -eshell
install IPC::ShareLite

Next let’s activate Munin Mysql plugin:

Assuming you have already installed both munin & mysql

ln -s /usr/share/munin/plugins/mysql_* /etc/munin/plugins

Restart both Apache & Munin:

/etc/init.d/apache2 restart
/etc/init.d/munin-node restart
su munin -c /usr/bin/munin-cron

Source:

http://dev.mensfeld.pl/2012/02/making-munin-work-with-mysql-on-debian/
http://www.mbrando.com/2007/08/06/how-to-get-your-mysql-munin-graphs-working/
 

Share

Install Munin on CentOS 5

1 Preliminary Note
Our system's hostname is server1.example.com, and we have a web site www.example.com on it with the document root /var/www/www.example.com/web.

2 Enable The RPMforge Repository
On CentOS 5.2, munin and monit are not available in the default CentOS repositories. Fortunately we can install them from the RPMforge repository. To enable the RPMforge repository, we run

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

rm -f rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Read more

Share

Enabling munin node plug-ins on Debian

Munin uses plug-ins to determine what data is gathered and reported. It includes several plug-ins for the types of data most people would be interested in, but not all of those plug-ins are enabled on a fresh installation.
What are plug-ins?

When a munin node gathers data about a slice so it can be graphed, the node reads instructions from files called "plug-ins" to determine what information to collect. Several plug-ins are installed with munin but not all of them are used by default. Fortunately a munin node installation includes a command that lets you see what plug-ins are active and can help you decide which others to enable.

The munin-node-configure command

The "munin-node-configure" command can list the status of installed munin plug-ins, suggest which to enable, and provide a shell script that will automate enabling the appropriate plug-ins. Using this command isn't the only way to perform these tasks, but it's convenient and easy to use. Easy is good.

Read more

Share

Munin Memcached Installation

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_ /etc/munin/plugins/memcached_rates
~$ ln -s /usr/share/munin/plugins/memcached_ /etc/munin/plugins/memcached_bytes
~$ ln -s /usr/share/munin/plugins/memcached_ /etc/munin/plugins/memcached_counters
~$ /etc/init.d/munin-node restart

Done!

Src:
http://linuxdev.dk/articles/monitoring-munin

Share