I just installed a
munin-node on my
linksys wrt54g running
OpenWRT kamikaze 7.07 for general monitoring purposes to monitor my router (OpenWRT) from the file server (Debian) running munin and of course also a node. The installation and configuration is pretty straight forward.
1. Install microperl and xinetd:
$ ipkg install microperl xinetd
2. Get the munin-node package and install it:
$ wget
http://home.ifi.uio.no/~espebra/munin-node/munin-node_1.2.5-1_mipsel.ipk
$ ipkg install munin-node_1.2.5-1_mipsel.ipk
3. Add the munin
TCP port to
/etc/services to start munin via xinetd:
$ echo "munin 4949/tcp" >> /etc/services
4. Set the hostname of the node in /etc/munin/munin-node.conf and configure xinetd to allow connections on port
4949 from your munin server in /etc/xinet.d/munin-node:
service munin
{
port = 4949
socket_type = stream
wait = no
server = /usr/bin/munin-node
user = root
group = root
only_from = <YOURMUNINSERVER-IP>
}
5. Start and enable xinetd on boot:
$ /etc/init.d/xinetd start && /etc/init.d/xinetd enable
You may want to also adjust your
iptables rule set.
6. Try if you can connect from <YOURMUNINSERVER> to the munin-node client running on the router by:
$ echo quit | netcat eris 4949
This should result in
# munin node at foo.bar
And finally you have to add the munin-node client to the configuration on the server side via /etc/munin/munin.conf:
[foo.bar]
address <CLIENT-IP>
use_node_name yes
That's it. Now your server should collect data from the client and display it on its webserver (check /var/log/munin/munin-graph.log).
On the client side you can configure what data to collect by deleting or adding files in /etc/munin/plugins. You can also easily
create your own plugins.
If you don't know how the whole stuff looks, have a look on public munin data graph examples on:
http://munin.ping.uio.no. If you encounter problems the
debugging munin plugins document is really helpful (apart from munin-run which is not available on OpenWRT).