Hot answers tagged

61

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 ...


31

Munin data is stored in Round Robin Database files (.rrd). These are stored under /var/lib/munin. Each host and hostgroup will have it's own subdirectory under /var/lib/munin Delete the .rrd files under the hostname in question, and your data will be zeroed out. Graphs will be re-generated after a few minutes.


26

The 'm' stands for milli, meaning 10^(-3) or 1/1000th of the unit.


18

Enable and disable plugins on each node Graphs are added and removed via symlinks in the /etc/munin/plugins/ directory of the node. To remove a graph you must remove the symlink and restart the node: rm /etc/munin/plugins/diskstats service munin-node restart To add a graph you must add a symlink in the plugins directory to an executable. eg: ln -s /usr/...


17

Just copy the *.rrd files in /var/lib/munin.


14

You are using the EPEL 5 version of the repo instead of 6, go into your /etc/yum.repos.d/epel.repo file and change: mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch to mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch Then run yum clean all and then try and install munin again. ...


13

If you keep the same config, i.e. node names do not change in your /etc/munin/munin.conf file, then it's pretty much just a matter of moving across the contents of /var/lib/munin, which is usually where the RRD files are kept. The graphs will be re-generated from the RRD data so you don't really need those. If your old and new server are not the same ...


13

I concur with lynxman. NAGIOS is for immediate qualitative data (is X OK or not?); munin is for historical quantitative data (how full is X now, and how full has it been this year?). All my NAGIOS installations, some of which monitor several hundred services, are linked to munin systems to do the quantitative monitoring. Note also that munin has specific ...


10

The nginx plugins rely on the following URL to get the status info: http://127.0.0.1/nginx_status Usually, nginx does not have this URL configured to show status data. From the documentation of the plugins, I see that nginx needs to be configured to show status data in a spesific URL. You need to enable nginx status by adding the following lines to ...


10

Disk IOs per device (IOs/second) With traditional hard drives this is a very important number. I/O operation is a read or write operation to disk. With rotational spindles you can get around from dozens to perhaps 200 IOPS per second, depending on the disk speed and its usage pattern. This is not all to it: modern operating systems do have I/O schedulers ...


8

share my experiences,hope it helps step1: enable tomcat plugins sudo ln -s /usr/share/munin/plugins/tomcat_access /etc/munin/plugins/tomcat_access sudo ln -s /usr/share/munin/plugins/tomcat_jvm /etc/munin/plugins/tomcat_jvm sudo ln -s /usr/share/munin/plugins/tomcat_threads /etc/munin/plugins/tomcat_threads sudo ln -s /usr/share/munin/plugins/tomcat_volume ...


8

Available entropy is utilized by cryptography mainly (to establish SSL connections, for example) and also by every program that calls random() or reads from /dev/random and /dev/urandom. But in your case, I'm thinking that the available entropy is a consequence of mysql slow queries, and not a cause. Entropy is collected by the kernel from sources of ...


8

I assume you actually want to sample data faster than the default five minutes, because an hourly graph wouldn't show you any more detail than the current daily graph otherwise. There's an easy answer to this and a hard one. The Easy Way Just run munin-update more often and don't upgrade past Munin 1.5. On a lot of Linux systems, this just means editing /...


8

Many perl modules will be available within the usual package hierarchy. For Ubuntu, I believe the package you want is called libdbd-pg-perl - so try installing that. For packages not included within the package hierarchy, you can use the perl module CPAN to install them. As root, run perl -MCPAN -eshell and follow the instructions to configure what ...


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 ...


7

given that you already have a nagios installation, consider nagiosgraph or pnp4nagios. nagiosgraph and pnp4nagios do a pretty nice job of plotting nagios performance data. nagiosgraph has a parameter-based approach to configuration, pnp4nagios has a template-based approach. both automatically detect new hosts/services whenever the nagios configuration ...


7

There are two things you need to set for Munin to send out alerts. If both items are not set, mails will not be sent. This is how I have Munin configured to send e-mail via localhost on the machine Munin is running on. Please compare to what you have & adjust accordingly: contact.myalert.command mail -s "MUNIN - ${var:group} :: ${var:host}" mymail@...


6

Check out this blog post, it might shed some light on the issue.


6

Export rrd to XML(use rrdtool dump), edit XML file. Then export XML to rdd(use rrdtool restore).


6

The documentation makes reference to two global attributes, graph_width and graph_height. Have you tried changing them? Note that these are global for a particular plugin, not for the whole munin installation; you will need to set them in the config output of a single plugin (or in munin.conf) for them to take effect. Just to check, I put the following ...


6

It sounds like you may have two problems On your monitoring server, recording the metrics for lots of servers requires more random i/o than your storage can provide. Even if all your metrics are being written to disk, the server may be too overloaded to actually generate graphs from them. On your clients being monitored, the plugins which collect the ...


6

First, it's a great answer! However, when you mention manually running and checking using "/etc/munin/plugins/tomcat_jvm," this doesn't pick up the environment variables from /etc/munin/plugin-conf.d/munin-node (i.e. user/password), so it fails. The correct way is to use munin-run: $ sudo /etc/munin/plugins/tomcat_jvm free.value U used.value U max.value U $...


6

Committed memory is, essentially, all the memory which has been allocated by applications, whether it's used or not. In contrast, the "apps" is memory that is allocated AND used. See e.g. https://www.redhat.com/advice/tips/meminfo.html FWIW, you're using 85 MB swap, which seems perfectly Ok; most likely the system is just swapping out unused stuff so that ...


5

Wow! How are you measuring load times? As far as I knew nginx would only report request response times ($request_time) which is something completely different. I've not had a good look for a few months, but last time I checked there was very little available for analysing response times. PastMon looks promising. And there are commercial tools like Client ...


5

Sounds like you have alway_send set in munin.conf. Try commenting out the contact.you.always_send line and it should work like you want it to.


5

This can best be answered by quoting Wikipedia Milli (symbol m) is a prefix in the metric system denoting a factor of one thousandth Munin (by default) reads a counter every 5 minutes, and calculates the average between the two last reads. 66m means 66*300 = 19.8 accesses within a five minute period (but the 66 is probably 66.6666, so you'll end up ...


5

The usual metrics which indicate problems include cpu utilization, memory utilization, load average, and disk utilization. For mail servers, the size of the mail queue is an important indicator. For web servers, the number of busy servers is an important measure. Excessive network throughput also leads to problems. If you have processes which need to ...


5

Seems like it's trying to actually make requests to the status module. Do you have a proper config for the status location in your VirtualHost? Something like this: <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 </Location>


5

Did you try googling? I searched "rrd2csv" (thinking that it'd probably be named thusly, if it existed), and found: https://code.google.com/p/rrd2csv/ Alternatively, there's https://github.com/mscoutermarsh/RRD-to-CSV and in Python => https://gist.github.com/afternoon/947301 As it's Perl, and Open Source, you can customise it to meet your exact ...



Only top voted, non community-wiki answers of a minimum length are eligible