multips_memory - Munin plugin to monitor memory usage of processes. Which processes are configured in a file in plugin-conf.d.


Any system with a compatible SysV style ps command that understands

  ps -eo rss,comm


You must specify what process names to monitor:

     env.names apache2 mysqld php-cgi

The names are are matched with awk. Any regular expression meta characters in each of the words on the names list are "active" in the regular expression.

The by default RSS is monitored, but other sizes provided by your ps is directly usable (the plugin assumes all sizes reported by ps is in KB). Candidates on Linux are rss, size, resident, share, vsize. See your ps man page for more information especially with regards to interpretation of the values. You can change what is monitored by

      env.monitor vsize

You cannot specify multiple sizes. The plugin handles only one.

If for some reason you want separate graphs, you can make separately named symlinks in the plugins directory on the node (most often either /etc/munin/plugins or /etc/opt/munin/plugins), eg. multips_memory_rss and multips_memory_vsize as symlinks to multips_memory and configure them thus:

      env.names apache2 mysqld php-cgi

      env.monitor rss

      env.monitor vsize

They can of course also have different process names as well. Eg. one list for the "LAMP" stack and one for the Java/Oracle stack in separate graphs.


This plugin adds up the RSS (or other memory size if configured) of all processes matching the process name, as reported by ps.


  #%# family=manual
  #%# capabilities=autoconf


  0.1 first release, based on multips as distributed in Debian.

  $Id $


Only the executable name is matched against (ps -eo comm)1, and it must be a full string match to the executable base name, not substring, unless you enter a name such as ".*apache" since RE meta characters in the names are active.

You cannot specify multiple sizes. The plugin handles only one.


Originally: Unknown.

Made into multimemory by:

Renamed to multips_memory when included in official munin trunk.

Thanks to: wix

Some further work to make more generic by Nicolai Langfeldt