Munin stats page with new template

Improve Munin stats page with new layout and plugins

When the  number of your servers is increasing more than you have expected, is a good practice to have a friend that  helps you track what’s happenning on those.

For this I use, among other apps, Munin. Munin is a “networked resource monitoring tool that can help analyze resource trends and […] problems” according to its site.

But this post isn’t a howto-install guide but a how to personalize and extend munin to fit your requirements, just with a custom layout and new plugins.

Layout

I don’t like the default theme of munin. There is an alternative template at http://www.doeeng.com/ and a live demo. There are detailed instructions to install and customize there so I won’t touch it here. Seems that original webpage is down so let me explain the installation process.

You can download a tarball containing the alternative template from http://mabishu.com/downloads/munin-alternative-template.tbz
For installing just move the /etc/munin/templates to /etc/munin/templates_old, extract this tarball in /etc/munin/ and verify that this creates a new template folder. Just a puntualization, for me is far better the “template-light” so you have to change the import in index.css to get it.

Plugins

Is very simple to install plugins for munin. You only have to drop it on /usr/share/munin/plugins and after that make a symbolic link from /etc/munin/plugins to it.

Fortunately, on Debian systems when you install munin and munin-node there is  some plugins installed. Indeed, that plugins would cover all your needs but if you need more you can install “munin-plugins-extra” and on Ubuntu Lucid you can install “munin-libvirt-plugins” and “munin-java-plugins“.

Additionally, Munin has the MuninExchange site that is a central point when all the users send their plugins to share with all with open licences. There is a lot of plugins but I have to highligth Memcache plugin, sshd_log, and apache

  • I read your post and totally agree with you.Its nice sharing.web sites are source of information and this is one of them I book mark it and mail all of my friends to must check it.

  • admin

    Hi ccsp,

    I’m glad you share our web site among your friends. Soon I’ll write more posts with useful information.

    Regards

  • So I’m definitely interested in this alternate theme, however the website is down, and I can’t find the file, would you be able to make it available?

  • Sure, let me get from one of my servers and make a tarball.

  • Hi again James,

    you can download a tarball containing the alternative template from http://mabishu.com/downloads/munin-alternative-template.tbz
    For installing just move the /etc/munin/templates to /etc/munin/templates_old, extract this tarball in /etc/munin/ and verify that this creates a new template folder.

  • Fran,

    Thanks for posting the files, it doesn’t work unfortunately though.

    Checking a cache of the original host site via google.com it looks like there are two parts, the “templates” and the “www” folder part, at this point it just gives me a broken page. Any possibility of getting the second half?

    Regards,

    James

  • Sure,
    I have repackaged the tarball with the template and www folders. I hope it contents all the needed resources. Just check it out from the url I have posted in the previous comment.
    Regards

  • Thanks dude. It was interesting knowing.

  • x2on

    Does somebody have the documentation from the template for installation and customization?

  • Hi x2on,

    seems that original page is down so let me review my documentation and I’ll update this post this week.

    but is pretty simple to install and customize it if you knows HTML and CSS

  • Thanks for unnofficially taking over this theme Fran, as far as I can tell it is the only one available online other than the one awkwardly posted to the Munin Trac.

    Unfortunately even with your instructions I can’t get the files in teh tarball to work. When I just do the /templates/ part I end up with a completely unstyled page and Firebug tells me that it got a 404 for a file at http://munin.mysite.com/css/index.css

    That’s annoying because the tarball only has a file called style.css and there’s no indication that it should go in /css/ in the web root of munin. Do you have such a file in your install that uses this theme? I tried uploading and renaming the style.css file into /css/index.css but the result is definitely not what was intended, and afterwards my munin only has a tiny bit more style than before (colored links but no layout).

    Any ideas on what could be the problem? Thanks for working on this, sorry that you have responsibility simply because you were the only one to post about the theme other than the original author who dissapeared :)

  • Peter

    I am experiencing the same problem, the generated HTML file is empty.

  • also don’t forget…
    chown -R root:root /etc/munin

  • nevermind this is broken :/

  • Jonny

    I had difficulty getting this working (possibly my own stupidity) but ended up playing with the template styles. I uploaded a version to github at https://github.com/jonnymccullagh/munin-template-alt and I made a short post about it here: http://blog.redbranch.net/2013/08/13/improving-the-munin-layout/ – Just in case anyone is interested.

  • Pingback: Improving the Munin Layout » Red Branch()