0% found this document useful (0 votes)
173 views6 pages

Installation of Munin On FreeBSD

Munin is a network and system monitoring tool that presents graphs through a web interface. It uses RRDTool to store data in RRD files and update graphs. Munin has a master-node architecture where the master connects to nodes and collects data to display in graphs. Munin can be installed from packages or source and involves installing the munin-master and munin-node ports or packages.

Uploaded by

sajid9majeed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
173 views6 pages

Installation of Munin On FreeBSD

Munin is a network and system monitoring tool that presents graphs through a web interface. It uses RRDTool to store data in RRD files and update graphs. Munin has a master-node architecture where the master connects to nodes and collects data to display in graphs. Munin can be installed from packages or source and involves installing the munin-master and munin-node ports or packages.

Uploaded by

sajid9majeed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Installation of Munin on FreeBSD

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)

Installing Munin from a package


freebsd-update fetch install
portsnap fetch update

portsnap extract

svn checkout http://svn.freebsd.org/base/releng/12.0 /usr/src


svn checkout https://svn.FreeBSD.org/ports/head /usr/port

FreeBSD

From source:

cd /usr/ports/sysutils/munin-master && make install clean


cd /usr/ports/sysutils/munin-node && make install clean

Binary packages:

pkg install munin-master


pkg install munin-node

Install Munin Collector


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

cd /usr/ports/sysutils/munin-master && make install clean


cd /usr/ports/sysutils/munin-node && make install clean
# 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:

service munin-node restart

# /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/apache24/
# make install clean

#Pkg install apache24

Enable Apache2 sever, enter:


# echo 'apache24_enable="YES"' >> /etc/rc.conf
Configure Apache as per your requirements by editing configuration file:

root@munin:~ # service apache24 restart

Performing sanity check on apache24 configuration:


Syntax OK

Stopping apache24.

Waiting for PIDS: 33191.

Performing sanity check on apache24 configuration:

Syntax OK

Starting apache24.

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/

munin-node-configure

 # pkg install munin-node 


 
 

will prompt you to add the group. Press y for both these as they come up.

You need a group "munin". Would you like me to create it [y]? y


Would you like me to set up log rotation [y]? y
Now that munin-node has been installed you need to enable it in the rc.conf file
before you can run it.

Open the file and add the following line

# ee /etc/rc.conf

munin_node_enable="YES"

Munin-Node Config File

The munin node config file contains the settings as well as the ips that can access
the data from the node. Open this file:

# ee /usr/local/etc/munin/munin-node.conf
=====

Message from munin-node-2.0.63:

--

Unless this file already existed, a sample configuration file

has been placed in /usr/local/etc/munin/munin-node.conf.

Please edit it according to your needs.

The Munin client will *not* be started automatically. To allow it

to start, put this line in /etc/rc.conf:

munin_node_enable="YES"

Then, it will be started on the next boot. If this line is already

present, the client will be started now. Otherwise, edit

/etc/rc.conf and execute this command:

/usr/local/etc/rc.d/munin-node start

For a list of plugins that will probably work run

/usr/local/sbin/munin-node-configure --suggest

If this is a fresh install run

/usr/local/sbin/munin-node-configure --shell | sh -x

to install the plugins automatically


Installing Munin from a package
FreeBSD

From source:

cd /usr/ports/sysutils/munin-master && make install clean


cd /usr/ports/sysutils/munin-node && make install clean

Binary packages:

pkg install munin-master


pkg install munin-node
git clone git://github.com/munin-monitoring/munin

You might also like