How To Install and Configure Munin Monitoring on a single fedora machine

I needed a simple to install tool to monitor a fedora 20 machine.  I chose Munin.

It has very nice graphs for the performance of the machine, like this one I found on the web:

Munin Graph Example

Here are the steps I performed to set-up munin on a single fedora machine.

Install and configure Munin

yum install munin

I edited the file /etc/munin/munin.conf.

I left the default values for the location of munin related files:

dbdir /var/lib/munin
htmldir /var/www/html/munin
logdir /var/log/munin
rundir /var/run/munin

.. and the default value for the host

[localhost]
 address 127.0.0.1
 use_node_name yes

I had to edit the value of the variable cgiurl_graph to

/cgi-bin/munin-cgi-graph

because  /cgi-bin is an alias in apache for the cgi-bin folder /var/www/cgi-bin where the script  munin-cgi-graph is located.

I edited the file /etc/munin/munin-node.conf and set the host to 127.0.0.1.

Now I start the munin node

  service munin-node start 

… and I can already navigate with a browser to the html files generated by munin by opening the url:  file:///var/www/html/munin/index.html

Some fuctionality is missing – we cannot zoom graphs. We need an apache server so that the scripts are properly executed.

Install  an apache server

 yum install httpd-manual 

I did not need to change anything in the default config file /etc/httpd/conf/httpd.conf.

If I now navigate to http://127.0.0.1/munin I should see the munin html page but I need to authentificate. I don’t know what the default munin credentials are so I just setup a password for user admin:

htpasswd /etc/munin/munin-htpasswd admin

Now I can authenticate on http://127.0.0.1/munin and see the graphs.

At first the graphs zoom page did not show any graph image. It was because apache was not able to write logs in the folder /var/log/munin so I changed the permissions to this folder.

This is it.

Advertisements
This entry was posted in linux and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s