• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Install Munin in Ubuntu

{{postValue.id}}

To install Munin in Ubuntu

Munin represents the performance of the computer, SANs, networks, weather measurements, applications in graphical form. It is used to know about the resource allocation and its efficient usage in a nice graph. Installation of Munin in Ubuntu is explained in this manual.

To install Munin packages

First start installing the dependency packages for the installation of Munin software.

root@linuxhelp1:~# apt-get install apache2 libcgi-fast-perl libapache2-mod-fcgid -y 
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcgi-fast-perl is already the newest version (1:2.10-1).
libcgi-fast-perl set to manually installed.
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0
.
.
.
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...


Then enable the fcgid module in apache by using the following command.

root@linuxhelp1:~# a2enmod fcgid 
Module fcgid already enabled


Run the following command to install the Munin packages.

root@linuxhelp1:~# apt-get install munin munin-node munin-plugins-extra -y 
Reading package lists... Done
Building dependency tree
Reading state information... Done
.
.
.
Setting up munin-doc (2.0.25-2) ...
Setting up munin-plugins-core (2.0.25-2) ...
Setting up munin-node (2.0.25-2) ...
Initializing plugins..done.
Restarting munin-node..Setting up munin-plugins-extra (2.0.25-2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...

If your server contains MySQL or MariaDB, then it is necessary to enable extra Munin plugins.


Run the following command to enable the extra plugins to monitor MySQL.

root@linuxhelp1:~# cd /etc/munin/plugins
root@linuxhelp1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/mysql_mysql_
root@linuxhelp1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/mysql_bytes mysql_bytes
root@linuxhelp1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/mysql_queries mysql_queries
root@linuxhelp1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/mysql_slowqueries mysql_slowqueries
root@linuxhelp1:/etc/munin/plugins# ln -s /usr/share/munin/plugins/mysql_threads mysql_threads 


Open the munin config file and edit as follows.

root@linuxhelp1:/etc/munin/plugins# vim /etc/munin/munin.conf 
# must be writable by the user running munin-cron. They are all
# defaulted to the values you see here.
#
dbdir /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
rundir /var/run/munin
# Where to look for the HTML templates
.
.
.
# a simple host tree
[www.linuxhelp1.com]
address 127.0.0.1
use_node_name yes
#
# A more complex example of a host tree


Rename the apache config file located in munin directory.

root@linuxhelp1:/etc/munin/plugins# mv /etc/munin/apache24.conf /etc/munin/apache24.conf_bak 
Alias /munin /var/cache/munin/www
# Require local
Require all granted
Require valid-user
Options FollowSymLinks SymLinksIfOwnerMatch
Options None
ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
# Require local
Require all granted
Require valid-user
Options FollowSymLinks SymLinksIfOwnerMatch

SetHandler fcgid-script

SetHandler cgi-script


Then run the following command to restart the apache and munin services.

root@linuxhelp1:/etc/munin/plugins# service apache2 restart
root@linuxhelp1:/etc/munin/plugins# service munin-node restart


Open the browse and type http://< IP_address> /munin
OPEN_MUNIN
Login to Munin using the login credentials.
Login_Munin

Click on the hostname of your machine.
Munin_overview
Munin
It displays performance of the computer.

computer_performance

Tags:
owen
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

what Term do Munin represent?

A

Munin represents the performance of the computer, SANs, networks, weather measurements, applications in graphical form. It is used to know about the resource allocation and its efficient usag

Q

What is required to install munin?

A

Requirements for the munin
A reasonable Perl5, both on the server and nodes
RRD with perl support
Perl modules for server: Time::HiRes, Storable, Digest::MD5, HTML::Template, Text::Balanced
Perl modules for node: Net::Server

Q

How do I define aliases ?

A

t's the same as borrowing data from another graph

Q

Why munin-node stops every day at midnight on FreeBSD. What can I do ?

A

The last message in munin-node.log is: "Insecure dependency in exec while running with -T switch".This is a bug in recent versions of the Perl module Net::Server, see ​http://rt.cpan.org/Publ

Q

How do I borrow data from another graph in Munin?

A

Normally, graph_order looks something like this:
graph_order apps buffers cache unused swap

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help David Lopez Guillen ?
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web

hola segui este tutorial para tener un certificado ssl y ahora no se ve mi app en la red, espero alguien pueda ayudarme, tengo M9oodle en3.5 en un servidor open suse y ahora no funciona por favor ayuda.

https://www.linuxhelp.com/how-to-create-ssl-certificate-in-opensuse

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.