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:

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
1 comment… add one
  • majo053 Oct 11, 2010 @ 20:46

    You have one mistake:

    # make install clea —> # make install cleaR

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum