Categories
Computing HowTo Linux Ubuntu

Setting up Munin on Ubuntu 10.04

Server setup (as root):

apt-get install apache2 munin munin-node munin-plugins-extra munin-libvirt-plugins munin-java-plugins

a2dissite default

Edit munin apache config to enable stats to be veiwed from anywhere:

joe /etc/apache2/conf.d/munin

change Allow localhost 127.0.0.1/8 ::1 line to:

allow all

Restart apache2:

/etc/init.d/apache2 restart

Setup hosts we want to monitor in /etc/munin/munin.conf . For each host we need to add a section that’s similar to the following:

[hostname]

address ipaddress

use_node_name yes

Now on each server we defined in the last step (including the munin server itself) we need to ssh into them and setup munin  node:

apt-get install munin-node munin-plugins-extra munin-libvirt-plugins munin-java-plugins

Allow access from the munin server:

joe /etc/munin/munin-node.conf

Add:

allow ^192\.168\.0\.1$

where 192.168.0.1 is the ipaddress of your munin server.

Restart the munin node:

/etc/init.d/munin-node restart

Open up a web browser and navigate to:

addressOfMuninServer/munin

This should present you with a webpage with all your configured nodes. Click on them to get stats/charts about the nodes. NB Munin can take up to 5 minutes to collect stats so if you’ve got nothing coming up wait 5 minutes. If you’ve still got nothing then you’ve probably got a configuration problem.

The Munin install differs on 10.04 Lucid as the install configures it’s own virtual host, which in previous versions of Ubuntu it never use to. The virtual host the Munin install provides is only accessible to the localhost hence the need for the configuration change.

Categories
Computing HowTo Linux Ubuntu Work

Network problems after a Ubuntu 10.04 Lucid Lynx install and what fixed them for me

After installing from a live CD where there was no problem with the network, I was supprised to boot a fresh install of Ubuntu 10.04 lucid lynx, with no network access. Fair enough, I thought probably just a one off, my PC. However after my work mate also had trouble with the network after a fresh install where the network was working on the live cd before hand I decided that something must be afoot.

Anyways this is how I fixed my network problem, hopefully it’ll help someone else!

  1. Edit /etc/network/interfaces and remove all traces of eth0 (remove both lines)
  2. My Network Manager had failed to start at all so to manage the network connections open up System > Preferences > Network Connections
  3. Add a new wired connection. I copied the mac address of my adapter in, although I’m not sure this actually matters. Click Apply and Save your new connection.
  4. Reboot

All being well you should have network-manager running, with a live network connection.