Dave Bullock / eecue

photographer, director of engineering: crowdrise, photojournalist, hacker, nerd, geek, human

Blog

Old School! Rave at the Alexandria

Hey celia I hope you have earplugs! There is a rave tonight at the Alex! I'm so totally there... replete with a drum'n'bass room!

Blog

Secure Cacti with Net-SNMP and SSH Tunnels

So I finally got around to setting up cacti/snmp on my servers. Here is what I did:

  1. Installed cacti on the main monitoring server which we'll call slappy. I used the FreeBSD port of cacti. Slappy already had php/mysql/apache installed.
  2. Added a user snmp to slappy and then I generated keys using ssh-keygen for each of the servers that slappy would be monitoring.
  3. On each of the servers that slappy would be monitoring I installed net-snmp from the ports tree and configured it to run over tcp on 127.0.0.1 and then I added a user snmp with a nologin shell and without password authentication as I will just be using snmp to create a tunnel to the snmpd process that will be running on localhost.
  4. Back on slappy I su'ed to the snmp user and created a shell script that would set up the tunnels to each of the servers using a command like this: ssh -i ~/.ssh/keys/hostname -f -N -L 16101:127.0.0.1:161 hostname and then added the script as a cronjob.
  5. Finally I added all the servers to cacti using the basic built-in net-snmp support as well as a couple of qmail and mysql scripts.

So I now have a nice collection of graphs for traffic / disk space / processor, memory and mysql load.

Blog

Quake Prediction?

On Thanksgiving I was listening to As It Happens on the CBC via KPCC and I heard a report about the nasty benzene spill in China. The reporter who was an English teacher living in China said that there was some panic about the water supply being turned off due to the spill and also that there was an earthquake predicted [real audio stream @ 11:25 and 12:14] "The government gave a warning that an earthquake would occur" and "People were sleeping in tents outside". The I just read today that there was a big quake in China. I found it very interesting that the Chinese government predicts earthquakes and tells the people about it, and that is turns out to be true. Very interesting.

Blog

Racquetball

Yesterday Penelope and I went to the gym and instead of using one of the various machines to get our cardio workout, we decided to try Racquetball. We borrowed some racquets and a couple of balls and hit the court. When we were locked into the court we realized that we had no idea how to play the game we had decided to play, so we just hit the ball against the walls and tried to rally as much as we could. It turned out to be great fun and we decided to get ourselves some racquets and figure out the rules. When I got home I found a page with the basic rules of the game which made sense once I read them a few times. The next step was to look on craigslist for some racquets, of which I found 2 for $20 and I just got back from picking them up. They are in great condition, are nice racquets and I am looking forward to playing a game with Penelope tomorrow.

Blog

Frying Fish Bloken Conveyler

Penelope and I went to Frying Fish today to have some rotating mechanized sushi, but the conveyor was broken, oh my! No big deal though, the sushi was still great although we did have to order it all from the chef instead of just picking various items off of the conveyor.