2
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
contrib-munin/tools/munin-plugins-busybox
2013-01-28 17:28:33 +01:00
..
common.c extract function getenvint to common.c 2013-01-28 16:35:25 +01:00
common.h extract function getenvint to common.c 2013-01-28 16:35:25 +01:00
cpu.c teach cpu.c to print steal and guest 2013-01-28 16:56:22 +01:00
entropy.c made more paths be macros 2013-01-28 13:29:19 +01:00
forks.c added #define PROC_STAT "/proc/stat" 2013-01-28 13:29:19 +01:00
fw_packets.c made more paths be macros 2013-01-28 13:29:19 +01:00
if_err_.c added if_err_ plugin 2013-01-28 13:29:19 +01:00
interrupts.c fix interrupts.c to actually work 2013-01-28 14:12:17 +01:00
load.c extract function getenvint to common.c 2013-01-28 16:35:25 +01:00
main.c munin-plugins-busybox: provide supported plugins via listplugins 2013-01-28 15:53:48 +01:00
Makefile added if_err_ plugin 2013-01-28 13:29:19 +01:00
open_files.c made more paths be macros 2013-01-28 13:29:19 +01:00
open_inodes.c made more paths be macros 2013-01-28 13:29:19 +01:00
processes.c initial tree 2013-01-28 13:29:19 +01:00
README relicense as GPLv2 2013-01-28 13:29:19 +01:00
swap.c added #define PROC_STAT "/proc/stat" 2013-01-28 13:29:19 +01:00
uptime.c initial tree 2013-01-28 13:29:19 +01:00

What is this?
~~~~~~~~~~~~~
This is a rewrite of commonly used munin plugins in C as a single binary.
The purpose is reducing resource usage:
 * disk space: the binary is smaler than the plugins together
 * more diskspace: it has no dependencies on other programs
 * less forks: it does not fork internally
 * faster startup: it doesn't start perl or shell
 * less memory: just a small C program
 * less file accesses: one binary for many plugins
This can be useful for machines with restricted resources like embedded
machines.

What plugins are included?
~~~~~~~~~~~~~~~~~~~~~~~~~~
cpu entropy forks fw_packets interrupts load open_files open_inodes
processes swap uptime

Disadvantages?
~~~~~~~~~~~~~~
You lose flexibility. You can no longer just edit the plugin and if you try
you have to be very careful not to break it. If you want to deploy this you
have to create one binary for each architecture.

How to use?
~~~~~~~~~~~
After compiling there will be binary munin-plugins-busybox. You can just
replace symlinks in /etc/munin/plugins/ with symlinks to this binary.

License?
~~~~~~~~
(C) 2008 Helmut Grohne <helmut@subdivi.de>
At your choice GPLv2 or GPLv3 applies to *.c *.h and Makefile

# vim7:spelllang=en
# vim:textwidth=75