23
avr
0

Munin: Server Statistics, The Easy Way

Server usage statistics always play a useful role when things go wrong. Often they provide you with the warnings like « oops! there is too much data, we’ll need a new disk » or « wow! good Ubuntu With DNSCrypt [PPA] » href= »http://www.adminreseau.fr/encrypt-dns-traffic-in-ubuntu-with-dnscrypt-ppa/ »>traffic, maybe we should get more bandwidth ». If you are asked to write code yourself for collecting these data and represent in an graphical fashion then you’ll spend a few days, if not weeks to do so.

Well, why to reinvent wheel? Just use munin and be happy. Installing munin is easy enough. Just do a yum install munin munin-node and you’ll be done.
After installation you need to configure it. For that edit file /etc/munin/munin.conf and uncomment and edit the following lines

[...]
dbdir   /var/lib/munin
htmldir /var/www/html/munin
logdir  /var/log/munin
rundir  /var/run/munin
[...]
# Where to look for the HTML templates
tmpldir /etc/munin/templates
[...]
# a simple host tree
[localhost]
    address 127.0.0.1
    use_node_name yes
[...]

Now start the munin node service service munin-node start. Well, that is it. Just wait for a few minutes and then go to http://localhost/munin to get the graphs.

Here are a couple of the graphs I have obtained (and there are tonnes more):

Looking For The Source Code Of Life, LINUX and MORE…

Enjoyed reading this post?
Subscribe to the RSS feed and have all new posts delivered straight to you.
Post your comment




Celadon theme by the Themes Boutique