Jaime Frutos Morales's blog

24/08/2009

How to install and configure munin server and nodes in Ubuntu Server 9.04

Filed under: SysAdmin, Ubuntu — acidborg @ 09:22

Description: “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, applications, weather measurements and whatever comes to mind. It makes it easy to determine “what’s different today” when a performance problem crops up. It makes it easy to see how you’re doing capacity-wise on any resources.

Munin uses the excellent RRDTool (written by Tobi Oetiker) 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).

Due to its client-server architecture, at least one munin server is needed. You can install as many nodes as you want (one per computer or virtual machine you want to monitor).

To install the munin server: apt-get install munin

To configure the munin server, edit /etc/munin/munin.conf and add an entry like the following one for each node (replacing 127.0.0.1 for the IP of the node):

[nodename.domain]
address 127.0.0.1
use_node_name yes

After editing this file, reload your web server to read the changes (usually: /etc/init.d/apache2 restart ).

To install a munin node: apt-get install munin-node

To configure a munin node, edit /etc/munin/munin-node.conf . Use munin as user and group to reduce default permissions:
user munin
group munin

Add a line allowing connections from your munin server’s IP (127.0.0.1 in this example):

allow ^127\.0\.0\.1$

After editing this file, restart your munin node to finish its configuration: /etc/init.d/munin-node restart

Advertisements

1 Comment

  1. Hey good stuff…keep up the good work! 🙂

    Comment by Bill Bartmann Scam — 06/09/2009 @ 23:04


RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Blog at WordPress.com.

%d bloggers like this: