Munin
speculatrix (Talk | contribs) (→Configuration) |
speculatrix (Talk | contribs) (→Configuration) |
||
Line 52: | Line 52: | ||
Connected to gorgonzola.<br /> | Connected to gorgonzola.<br /> | ||
Escape character is '^]'.<br /> | Escape character is '^]'.<br /> | ||
- | # munin node at gorgonzola<br /> | + | \# munin node at gorgonzola<br /> |
'''list'''<br /> | '''list'''<br /> | ||
open_inodes irqstats entropy processes df interrupts if_err_wlan0 swap load cpu df_inode forks iostat open_files if_wlan0 memory<br /> | open_inodes irqstats entropy processes df interrupts if_err_wlan0 swap load cpu df_inode forks iostat open_files if_wlan0 memory<br /> |
Revision as of 20:40, 3 December 2009
How To Install Munin Node
Munin is a system measuring tool which gives the user a wide range of graphs spanning hours, days, weeks and months. An example set of graphs is show here.
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 dated release 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
Once fetched, install them thus
Configuration
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.
allow ^192\.168\.1\.\d+$
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:
host_name gorgonzola
Save your edits, and at the command line type
/etc/init.d/munin-node restart
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
Trying 192.168.1.2...
Connected to gorgonzola.
Escape character is '^]'.
\# munin node at gorgonzola
list
open_inodes irqstats entropy processes df interrupts if_err_wlan0 swap load cpu df_inode forks iostat open_files if_wlan0 memory
fetch cpu
user.value 127603
nice.value 1478
system.value 44203
idle.value 4097098
iowait.value 1878
irq.value 278
softirq.value 2228
.
quit
Connection closed by foreign host.