FreeBSD Install Munin Network and System Monitoring Application

by on March 13, 2008 · 1 comment· LAST UPDATED September 2, 2012

in , ,

Q. How do i install Munin network monitoring applications / hardware system under FreeBSD operating system?

A. Munin is a network/system monitoring application that presents output in graphs through a web interface. Munin is a tool for graphing all sorts of information about one or more servers and displaying it in a web interface. It uses the excellent RRDTool (written by Tobi Oetiker) and is written in Perl. Munin has a master/node architecture. 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 have been ease of creating own "plugins" (graphs).

Install Munin Collector

Type the following commands:
# portsnap fetch update
# cd /usr/ports/sysutils/munin-main
# make clean install

Munin configuration

The default configuration file is located at /usr/local/etc/munin/munin.conf. It is designed to compatible with Apache2 installation. You can open file using a text editor:
vi /usr/local/etc/munin/munin.conf
Make sure all directory exists. There is no configuration required as it works out of box.

Install Munin node

This is the node part. It is used on all machines Munin shall watch. To install type the following command:
# cd /usr/ports/sysutils/munin-node
# make install clear

Open /etc/rc.conf file:
# vi /etc/rc.conf
The Munin client will *not* be started automatically. To allow it to start, put this line:
munin_node_enable="YES"
Save and close the file. Start, Munin, enter:
# /usr/local/etc/rc.d/munin-node.sh start

Install Apache2 server (If not installed)

The default HTML stats dumped at /usr/local/www/munin/ directory. To view them you need web server such as Apache. If Apache not install type the following command to install Apache:
# cd /usr/ports/www/apache22/
# make install clean

Enable Apache2 sever, enter:
# echo 'apache22_enable="YES"' >> /etc/rc.conf
Configure Apache as per your requirements by editing configuration file:
# vi /usr/local/etc/apache22/httpd.conf
Save and close the file. Start Apache2, enter:
# /usr/local/etc/rc.d/apache22 start

How do I view stats?

Fire a web browser and type the url:
http://localhost/munin/
OR
http://your-server.com/munin/
OR
http://your.server.ip.address/munin/

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 1 comment… read it below or add one }

1 majo053 October 11, 2010 at 8:46 pm

You have one mistake:

# make install clea —> # make install cleaR

Reply

Leave a Comment

Tagged as: , , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: