/munin-plugins

Some Munin plugins I wrote to monitor XEN and FTP backup space

Primary LanguagePerl

munin-plugins

These Munin plugins can currently monitor XEN VMs and FTP backup space. The only ones I found for monitoring XEN are written as shell scripts and apart from spawning a lot of unnecessary processes (grep|awk and the like) the network plugin fails when a domU has more than one network interface. So I rewrote them in Perl.

  • xen_cpu_percent makes a stacked-area graph for CPU usage. It produces the same results as the original shell script, although I think it should actually account for number of physical CPUs. It has no configuration parameters.

  • xen_traffic_all graphs network bandwidth usage for all domUs. Graphs will be named to allow for more than one interface per domU. My standard vserver has one external and one management interface so I need them separate. If you would like the bandwidths to simply be added, like for setups that use different intefaces for IPv4 and IPv6, you can set env.summing in Munin's configuration (e.g. /etc/munin/plugin-conf.d/munin-node) to 1.

  • ftp_backup_free is a very simple plugin that uses lftp to do the hard work, i.e. summing the sizes of all files on an FTP server, and as one cannot determine the available disk space on the server using FTP, subtracts it from a preconfigured size.