Saturday, August 16, 2008

Monitoring Linux (Debain) Network With Munin

It requires following packages;

• Web Server e.g apache
• Munin Server
• Munin Clients
• Measuring temperature using smartmontools
• Munin Windows plugins
• Documentation and further Reading


WEB SERVER e.g APACHE

Linux Apach2 for debian
#apt-get install apache2-mpm-prefork
Run the script “apache2-ssl-certificate” i.e
# apache2-ssl-certificate

MUNIN ON SERVER

#apt-get install munin munin-node
Edit Configuration
/etc/munin/munin.conf

# a simple host tree
[localhost.localdomain]
address 127.0.0.1
use_node_name yes

[machine1.domain.com]
address xx.xxx.xxx.xx
use_node_name yes

[machine2.domain.com]
address xx.xxx.xxx.xx
use_node_name yes
##please write ip on xx

MUNIN ON CLIENTS
Instlal it in each client
#apt-get install munin-node

change configuration
/etc/munin/munin-node.conf

Edit Configuration on each Client Machine
Client 1 machine1.domain.com
#
# Example config-file for munin-node
#
log_level 4
log_file /var/log/munin/munin-node.log
port 4949
pid_file /var/run/munin/munin-node.pid
background 1
setseid 1
# Which port to bind to;
host *
host 127.0.0.1
host xx.xxx.xxx.xx
## xx server IP
user root
group root
setsid yes
allow ^127\.0\.0\.1$
allow ^xx\.xxx\.xxx\.xx$
Testing
browse under http://ipaddress/munin
Examples can be found here: http://www.linpro.no/projects/munin/example/
If you have any problems you need to check the log files of munin located at /var/
log/munin directory


MEASURING TEMPERATURE USING SMARTMONTOOLS


1.#apt-get install smartmontools
which is apparently needed by munin's hddtemp_smartctl plugin ;
2. and ln -s /usr/share/munin/plugins/hddtemp_smartctl /etc/munin/plugins/hddtemp_smartctl
.. which 'activates' the plugin ;
3. and /etc/init.d/munin-node restart to apply these changes.

WINDOWS PLUGIN
http://www.jory.info/#downloads_muninnode
http://munin.projects.linpro.no/wiki/HowToMonitorWindows
http://www.debuntu.org/book/export/html/134

DOCUMENTATION AND FURTHER READING
http://www.debianhelp.co.uk/munin.htm
http://www.debianhelp.co.uk/munin.htm

1 comment:

Ian M said...

Hii great reading your post