Table of Contents

Munin Node

These instructions originated here.

Installation

Download the Net::Server perl module from http://search.cpan.org/~rhandom/Net-Server-0.97/

Install it like so:

perl Makefile.PL
gmake
gmake install

Download latest stable munin from http://munin.projects.linpro.no/

Added munin user/group:

groupadd munin
useradd munin

Edit /etc/passwd so it can't be logged in:

munin:x:100:1::/:

Modify Makefile.config to only install files in /opt/munin

Install node and plugins:

gmake clean
gmake install-node install-node-plugins

Configuration

Auto-configure works pretty well:

/opt/munin/sbin/munin-node-configure --shell | sh

(some errors are okay)

Add a line to /opt/munin/etc/munin-node.conf with the IP address of the munin server

allow ^127\.0\.0\.1$

Create /etc/init.d/munin-node

#!/sbin/sh

case "$1" in
'start')
        if [ -x /opt/munin/sbin/munin-node ] && [ -f /opt/munin/etc/munin-node.conf ]; then
                /opt/munin/sbin/munin-node
        fi
        ;;

'stop')
        /usr/bin/pkill munin-node
        ;;

*)
        echo "Usage: $0 { start | stop }"
        exit 1
        ;;
esac

exit 0

Then start it!