Munin Server Monitoring Tool

Munin the monitoring tool surveys all your computers and remembers what it saw. It presents all the information in graphs through a web interface. Its emphasis is on plug and play capabilities. After completing a installation a high number of monitoring plugins will be playing with no more effort. Using Munin you can easily monitor the performance of your computers, networks, SANs and applications.

Munin uses the excellent ​RRDTool and the framework is written in Perl, while plugins may be written in any language. Munin has a master/node architecture in which the master connects to all the nodes at regular intervals and asks them for data. It then stores the data in RRD files, and (if needed) updates the graphs. One of the main goals has been ease of creating new plugins (graphs).

RRDtool​ (acronym for ​ r​ound-​ r​obin ​ d​atabase ​ tool​ ) aims to handle time-series data like network
bandwidth, temperatures, CPU load, etc. The data are stored in a circular buffer based database,
thus the system storage footprint remains constant over time. Note that this is distinct from the
computer science concept of round-robin scheduling.



Installing and Configuring Munin in CentOS7:

1. Install RPM repository:
yum -y install epel-release
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
yum -y update

2. Install Apache web server:
yum install httpd
systemctl enable httpd
systemctl start httpd

3. Install munin monitoring:
yum -y install munin munin-node
systemctl enable munin-node
systemctl start munin-node

4. Configure munin:
vim /etc/munin/munin.conf
[server1.example.com]
 address 127.0.0.1
    use_node_name yes

vim /etc/httpd/conf.d/munin.conf
AuthUserFile /etc/munin/munin-htpasswd
AuthName "Munin"
AuthType Basic
require valid-user

Order Deny,Allow
Allow from all


5. Add a user for munin:
To add user and password:
htpasswd /etc/munin/munin-htpasswd admin 

username: admin and password: you have to enter anything you want. 

6. Web url for munin:
http://10.11.12.45/munin 

Use your IP or localhost (ex: http://localhost/munin or http://yourip/munin)




Previous
Next Post »