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.

Categories
Dreams In My Head Psychology / Communication

Dreams

Dreams are funny things. Some we remember, some we forget, some we actualise and some we let slip through our fingers.

Some dreams mean more to us than others, some dreams we share, some dreams we keep quiet secretly hoping for them to come true.

Some dreams tiptoe quietly past and sit silent until we pay them their due attention, others scream and shout until action is taken.

Our ability to dream and imagine sets us apart from most other species on this planet. Although other species dream we’re the only ones who realise the potential of dreaming and lucid imagination to change our selves and the world around us, this is because our mind cannot distinguish between a lucid imagination and reality.

Of course the map is not the territory, the world is not the way we perceive it to be – it is the way it is and we are but mere interpreters of the way it is.

The strangest things about dreams are the way they fade away so quickly after you wake up. When doing some research on dreams and lucid dreaming a while back I read one of the best techniques for remembering your dreams was to keep a notepad and by your bed and as soon as you wake up (within 2 minutes) write down what your dream was about.

I believe that dreams are alot like emotions. Each dream we have has a message to deliver. Some dreams the message will be obvious and others not so. The same is true of emotions sometimes when we feel sad for no particular reason we wonder what our mind and body are trying to say eventually we’ll get the message through other times though the reason for the way you’re feeling is entirely obvious.

I had a strange dream the other night. I was visiting a friend of mine in London, I don’t actually know who the person was but I had the sense that I knew them. We were on our way to the train station when we realised that one of the entrances of the station was locked and closed. There were three people outside the station. I asked one of them why the station was shut, he said something and told us to use the other entrance, he said he would show us the other entrance. As he guided us – he was behind us at this point I saw all three of us in third person, he drew a sword out of his jacket and stabbed me in the back. I can’t remember what happend much after that.

I guess the message behind this dream is something to do with connections (the train station)  that I was use to having in my life aren’t necessarily there any more and if there are things I need or want to achieve I will have to do this using alternative methods (the second entrance), which even may require me to alter the way I am now (that’s the death part).

Although I’m certain there’s a million and one way to interpret a dream, I think the person responsible for the dream is the only one who can really interpret and understand its full meaning.