How To Install Munin Node
(note: I shall upload some graphs of my own when I have collected data long enough)
Munin is much loved in the SysAdmin community because of its flexibility and the way it can be extended by writing plugins for the monitored systems, and particularly because the plugins are very easy to write, with a community resource for sharing them.
Each system being monitored runs "munin node", a simple daemon that listens on TCP port 4949 for connections, and if one comes from a permitted host or network, presents different kinds of information to it as requested.
Installing it on Maemo is quite easy as it's architecture independent, being basically a perl process which invokes scripts. The only trick is knowing to bypass certain dependencies during installation, and a few tweaks in the configuration. The installation has to happen from the command line as root.
 Installing On Diablo
Diablo is effectively a relatively old release (Serge) of arm debian linux, so you have to get the packages from a debian archive.
Login as root to a command shell and fetch the packages. You probably want to fetch them to your flash memory card rather than clutter up the system file space.
fetch the packages as follows
# cd /media/external/download # wget http://ftp.de.debian.org/archive/debian/pool/main/a/adduser/adduser_3.63_all.deb # wget http://ftp.ch.debian.org/debian-archive/pool/main/m/munin/munin-node_1.2.3-1_all.deb # wget http://ftp.ch.debian.org/debian-archive/pool/main/libn/libnet-server-perl/libnet-server-perl_0.87-3sarge1_all.deb # wget http://ftp.ch.debian.org/debian-archive/pool/main/libi/libio-multiplex-perl/libio-multiplex-perl_1.08-1_all.deb
For future reference, in case the debian archive disappears,, I have uploaded these files to the wiki, I had to tack on .svg to the filenames to stop them being rejected; links to the files below - click on the link to go to the page describing the file then on the file itself, use SAVE AS and rename to drop the .svg (sorry, can't think of a better way to do this).
- File:Libnet-server-perl 0.87-3sarge1 all.deb.svg
- File:Munin-node 1.2.3-1 all.deb.svg
- File:Libio-multiplex-perl 1.08-1 all.deb.svg
- File:Adduser 3.63 all.deb.svg
Once fetched, install them thus
# dpkg -i adduser_3.63_all.deb # dpkg -i --ignore-depends=perl libio-multiplex-perl_1.08-1_all.deb # dpkg -i --ignore-depends=perl libnet-server-perl_0.87-3sarge1_all.deb # dpkg -i --ignore-depends=perl munin-node_1.2.3-1_all.deb
The reason we have to tell dpkg to ignore the dependency on perl is because the tablet has "perl-base" package instead which has everything needed.
One thing the tablet doesn't have is "pgrep", a simple command line tool, it doesn't really matter, but can anyone help with a suitable place it can be installed from, or a simple substitute script?
The only things you need to do are to permit your munin master monitoring machine to contact your tablet, to set the host name, and to restart munin-node.
The munin node configuration is a imple text file called /etc/munin/munin-node.conf
Firstly, add more "allow" lines such as this one so that your local network can talk to the munin daemon; the example adds 192.168.29.* but has to be written in perl regex format.
then override the host name, the munin master node's configuration expectation of the host name MUST match the tablet's host name. If you call your tablet gorgonzola, the line would read thus:
Save your edits, and at the command line type
 Testing the installation
Verify you can now talk to your tablet from the munin master node thus by firing up a shell and typing the words in bold:
# telnet gorgonzola.example.com 4949
Connected to gorgonzola.
Escape character is '^]'.
# munin node at gorgonzola
open_inodes irqstats entropy processes df interrupts if_err_wlan0 swap load cpu df_inode forks iostat open_files if_wlan0 memory
Connection closed by foreign host.
 Configuring the Munin Master
You configure the munin master exactly as per the munin documentation; simply add the tablet to the
/etc/munin/munin.conf file like this
[gorgonzola] address gorgonzola.example.com use_node_name yes
You could of course use the IP address instead - it would go on the "address" line e.g. "address 192.168.1.2"
You don't need to restart anything, the next time munin runs it will pick up the changes. If you have done it correctly the graphs will begin to appear in about ten minutes as tiny specks on the right. There are troubleshooting pages on the munin wiki.
Good luck and enjoy your newly-metered tablet!
- This page was last modified on 25 February 2011, at 09:31.
- This page has been accessed 6,065 times.