≡ Menu

FreeBSD Install Munin Network and System Monitoring Application

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:
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:

Share this tutorial on:

Like this? Follow us on Twitter OR support us by using Patreon

{ 1 comment… add one }
  • majo053 October 11, 2010, 8:46 pm

    You have one mistake:

    # make install clea —> # make install cleaR

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: , , , , , , , , , , , , , , , ,