48

We're currently using Nagios to monitor about 20 Linux machines (services and functional links). I just find out about Munin and I wonder if this is a Nagios replacement, or it can be used together with Nagios? I don't want to spend hours setting it up, just to discover that I already have all that functionality with Nagios.

I'd especially appreciate if someone who used both programs can give some insight about your experience. Which is better for which task and what do you recommend to use?

Note: we also used Cacti for some time. The main problem we have with Nagios is that setup takes too long and isn't very straightforward.

Milan Babuškov
  • 1,010
  • 2
  • 15
  • 19

4 Answers4

69

Munin and Nagios are really different tools.

From the official Munin website:

Munin is a networked resource monitoring tool that can help analyze resource trends and "what just happened to kill our performance?" problems. It is designed to be very plug and play. A default installation provides a lot of graphs with almost no work.

Nagios is a monitoring (alerting) tool. Munin could be considered a replacement for Cacti.

We use both of them: Nagios and Munin.

  • Nagios tell us in real time if something is wrong: like web server down, database load average, etc.
  • Using Munin you can see the trends and the history about why that happenend.
Giacomo1968
  • 3,522
  • 25
  • 38
Gabriel Sosa
  • 1,200
  • 1
  • 11
  • 13
  • 6
    This is a great description +1. I have something to add: with munin you can not only see the trends, but you can set thresholds. It one of these thresholds are exceeded munin will (can) notify nagios (with passive check). Then you can use nagios' sophisticated notification framework. – cstamas Dec 24 '09 at 22:45
  • 2
    .. it's worth mentioning that munin can alert - if you put the work in setting thresholds & contacts for things you care about nagios gets a bit redundant... In a recent infrastructure refresh I did ust that; nagios wasn't worth the complication for the very little extra it was offering us. Munin alerts us (through a scheduled alerting sms gateway we have) when something goes offline. – pacifist Jul 28 '14 at 01:46
7

Munin definitely works best in parallel with Nagios. It can also tie into it, sending notifications of thresholds being exceeding into the Nagios notification system. The reason we use it is because it is virtually trivial to set up new monitors. Nagios requires a little bit more effort.

Note also though that PNP4Nagios gives graphing capabilities to Nagios - most plugins will report performance data, and then PNP4Nagios will store that info in RRD databases and display it as graphs in the Nagios interface. We use it in addition to Munin, as it gives graphs of network services (munin's main strength is monitoring the local box).

One final note - we also use Cacti, as it is the most useful tool for graphing switch and router ports via SNMP. We have <10 devices monitored by it. It's too much of a pain to set it up to manage actual servers - munin and Nagios/NRPE are much easier to manage than SNMP agents.

Mike Pountney
  • 2,443
  • 2
  • 20
  • 15
  • 4
    I used to use Nagios. And this is the reason that I left it. It's a terrific tool, but you need lots of hours and "satellite" tools in order to have something usefull. This is way I switched to ZABBIX. It's everything integrated in just one tool. – Bob Rivers Jan 13 '10 at 11:57
1

There's a number of related reasons why you want these monitoring tools. It's worth keeping these in mind as separate needs that likely require separate tools, though there's certainly overlap in what the tools can provide.

  1. Focus attention on problems as they occur.
  2. Provide information for analyzing what's going wrong and when.
  3. Automate responses.

Eg these are the primary focusses of:

  1. Nagios
  2. Munin or Cacti
  3. Monit

You certainly can have monit send alerts, but it's a clumsy tool for situational awareness.

You can also integrate performance graphing into Nagios, but I'm not sure there's a convincing case for doing so. Munin is so much easier to configure.

  • We just bought mmonit, with is monit centralized server. amazing piece of software. i'm in love with this thing. it's like working 24 hours from the bar. still I have to do some config files it's nice and sweet. – Marc Riera Oct 28 '10 at 11:29
1

Any time I search for anything to do with monitoring Nagios is prominent in the answers, yet I'd never heard of Munin till I saw your question. That's a bit of a clue to me. A qquick look at the web site you linked to doesn't really make things clear.

Why not set up Munin in parallel with Nagios and see what it will do for you? That's what I intend to do. Who knows, in the future it might be THE monitoring tool to use.

John Gardeniers
  • 27,262
  • 12
  • 53
  • 108