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

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts