INCLUDE_DATA

Archive for May, 2006

I’m tired!

Posted in Family, Tech, Whatever on May 29th, 2006

The holiday is over. It was a long three days of grilling, drinking, bouncing on the trampoline, swimming, and just plain having fun. I’m exhausted! This is the first down time I have had.
memorialday

memorialday2

Here the quick updates with photos.

1) T1 line got installed today. On Memorial day! Covad works on Memorial day! More to follow on this later.


T1
2) Here is a photo of the WiFi antenna installed.


wifi
3) All the plants and veggies have been moved into the ground!
Garden

Check it

Posted in Tech, Whatever on May 24th, 2006

Graffiti Comit

Bag’o'Updates

Posted in Whatever on May 23rd, 2006

School is almost over. I just registered for my summer session. American Government and Politics. I think I stand to learn a lot in this course. Two days a week, for five weeks. (Gulp!)

Eno finished his rock climbing class last saturday and starts swimming lessons a week from this Saturday. Hopefully he is looking forward to it. He really did well at the climing lessons though I think he suffered from fear of heights. His favorite thing was something called a bouldering cave. A small room with climbing widgets all over the walls and ceiling.

We finally planted all the seedlings out in the back yard. Can’t wait.. we are gonna have some nice salads this summer.

Installed a big omni directional WiFi antenna on the deck and upgraded Cosmo to a Dual AMD Athlon 2100 MP with 1.5GB of RAM.

Most importantly we ordered a T1 line for the house. Speakeasy gave us greate deal. Full 1.5MB and I get to keep my routed 7MB DSL connection for $399. The delta after you factor our what I am currently paying for DSL and Cable Internet is about $200. Good thing is the T1 is a tax deduction.

I ordered the T1 on Monday and already have a FOC date of this Thrusday (25th). I was expecting at least a month for install time. I think I have figured out a way to have the DSL be redundant to the T1. Will post more on this as flesh out the plan.

If anyone is looking to CoLo a box shoot me an email!

40 72GB Fiber Disk Drives

Posted in Family, Tech on May 20th, 2006

My brother is obssessed with disk arrays. Here is his latest project. A 40 disk fiber channel array!

Adam Array

Using Nagios with Quickpage. A SMS TAP Gateway

Posted in Tech, neutron star on May 19th, 2006

Yesterday I spent the day setting up SMS paging from Nagios. In the past I had just used email to SMS gateways for sending notifications to my cell. SMS Gateways rely on the Nagios host having access to them and the network infrastructure in between them to be functional. Unfortunately many of the times Nagios needs to send out notifications the network is not in a reliable state. I have experienced several instances where a major router/switch goes down and Nagios has no way to let me know. Solution: SMS TAP dial-up gateway.

Most cellular service providers provide dial up SMS TAP gateways (Some even offer toll free numbers). These gateways allow you to send SMS messages to cellular devices by using your modem. With this setup Nagios could be completely disconnected from an IP network and still be able to get notifications sent out via a modem and some paging software.

Here is a great source of TAP dial-up numbers for most providers.

http://www.notepage.net/tap-phone-numbers-c.htm

Before you can configure Nagios to use a SMS TAP gateway you need to install some software that actually makes the call and speaks TAP. I decided to use quickpage (http://www.qpage.org/) because it was small, easy to build, and easy to configure. Just download quickpage, untar, run configure followed by a make and make install. (You may also want to take a look at sendmpage. http://www.sendpage.org)
Quickpage operates in a client server manner. A daemon sits and listens for a quickpage client to connect and tell it to send a message. (The qpage binary is both the daemon and cleint depending on which switches are specified.) Before you can start the qpage daemon you need to create an initial configuration file for quickpage. The configuration file sets some of the following options: Which serial port you modem is on, cellular service provider definitions, and recipient pager definitions. You can place the config file in any directory as long as you use the -C switch to tell qpage where it is. I think the default place it will look is /etc/qpage.cf

Here is an example qpage.cf file:

——————————————————————–
#Administrators email
administrator=protect.the@innocent.com

#Make sure qpage can write to this directory. If you start qpage as root
#it will become the daemon account.
queuedir=/var/spool/qpage

identtimeout=5
snpptimeout=60

#Serial port your modem is on
modem=ttya device=/dev/ttyS0

#A service definition called default
service=default
device=ttya
baudrate=1200
parity=even
allowpid=yes
maxtries=6
phone=18886561727

#A service definition called cingular - This seems to work for cingular cell phones
service=cingular
device=ttya
baudrate=1200
parity=even
allowpid=yes
maxtries=6
phone=18668837243

#A service definition called CingularBB - Blackberries
service=cingularBB
device=ttya
baudrate=9600
parity=even
allowpid=yes
maxtries=6
phone=18009094602

#These are pager definitions, Obviously you should replace 5555551212
#with your own cellular number.
#The service tag associates the pager with the services defined above.
pager=eric
pagerid=5555551212
service=default

pager=EdCingular
pagerid=5555551212
service=cingular

pager=EricCingular
pagerid=5555551212
service=cingularBB
——————————————————————–

Save this file somewhere and then execute the following command to start quickpage:

qpage -C /usr/local/etc/qpage.cf -q 5

The will start quickpage and tell it check the queue every five seconds. You may also want to consider adding the -d switch. This will force qpage into debug mode and is very helpful when testing new configurations.

Also note, that some providers like to have a 1 in front of the area code on the pager ID. This was the case with the Cingular dial-up. i.e. 15555551212 instead of 5555551212. They key here is to play around.

Once qpage is running try to send yourself a test SMS message. Quickpage by default will attempt to connect to the qpage daemon running on localhost. This is fine because we are testing from the same machine.
Type: qpage -p eric

Where eric is the name of the pager definition in your qpage.cf. qpage will connect to the daemon and submit a message for delivery. Now watch your qpage debug output. You should see it attempting to dial-out using the modem and connect to the provider. Thats it!

Because quckpage is a client server applications you can actualy run qpage from any host that has IP access to the machine running the qpage daemon. Just use the -s switch and specify the hostname. When thinking about this options it’s important to remember why we are doing this in the firstplace…
Now configure nagios to use qpage:

First you need to define a notification command. I have the following in my misccommands.cfg file:

# notify via sms using qpage
define command{
command_name notify-by-sms
command_line /usr/local/bin/qpage -s localhost -P $CONTACTNAME$ -f $HOSTNAME$ $SERVICEDESC$ ‘$SERVICEOUTPUT$’ $HOSTNAME$
}

Now define a contact that uses the notify-by-sms notification command:

define contact{
contact_name EricCingular
alias Eric’s Blackberry
service_notification_period 24×7
host_notification_period 24×7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-sms
host_notification_commands notify-by-sms
email top.secret@neutronstar.com
}

Now any service or host that is setup to send notifications to EricCingular will use the notify-by-sms command which calls qpage.

Thats it!

The Daily Update

Posted in Whatever on May 16th, 2006

So I got my official production machine to run Nagios and cacti today. I think they may be coming around to the realization that Open Source is not a bad idea. It also look like we may be deploying a 100 node beowolf cluster by years end!!

Been to lazy to fool around with the SE/30 or next slab..

Ordered two AMD 2100 MP CPUs to upgrade cosmo with. Cosmo has been running on a 1Ghz Athlon for years now.

Lonnie’s machine needs an upgrade too. Thinking about a dual core AMD. It’s been a while since I shoped for mother boards or even researched current standards. I was surprised to find that AGP is dead. Everything is now PCI Express. Too bad cause Lonnie has a really nice AGP graphics card to drive the 21 inch Apple display.

Got the cabling and connectors to install a nice big omni directional WiFi antenna on the back deck.

Eno had a soccer game and climbing lessons this weekend. Brendan stopped by for a vist last week and updated me on all the Astellas drama. Boy, I don’t miss that place one bit!

Installed a ceiling fan on the second floor ceiling!! Wee..

The landscaping guys are coming Friday to dig out some root stumps so we can plant all the baby seedlings.. will post photos soon.

Going to school tonight…

Packages

Posted in Tech on May 10th, 2006

I am a Debian fan. I’ve loved and used Debian since the early days of version 1.3. If any of you know anything about the Debian release cycle, then you know that version 1.3 was a long long time ago. One of my the main reasons I love Debian so much is apt-get. Apt-get is a nice little utility that will fetch deb packages automatically from any source you specify, mainly the official Debian mirrors. To install a package you simply type apt-get install packageName and apt-get does the rest. Debian had apt-get before any other distribution had anything like it. (yum, up2date, pkgget, etc). I love nothing more then doing a apt-get dist-upgrade to move to the new version of Debian relatively painlessly. Oddly enough, I have never really though about making my deb packages. I’m not a professional software developer, so why would I need to make packages?

Over the last month at my new job I have become intimately familiar with building RPM packages of my companies custom trading software. We have many RedHat systems and need to make sure we have the same version of the software installed on all machines. We need to be able to easily remove the software, or upgrade it. I have compiled a lot of software on my Debian machines (Apache, PHP, image libraries, etc) because often times the Debian packages are several versions behind. BUT when it came time to upgrade or remove something that was installed via a make install, forget it! You have no idea what files got dropped on your system. So, I decided to build RPMs of everything we may be installing outside of the stock RedHat RPMS.

My purpose here is give you some quick instructions on how you can build deb packages of Apache or PHP or whatever software you compile on a regular basis so that you can easily remove it.

Build your software as you normally would. (./configure, make)

Now use the DESTDIR option when doing a make install to set an alternate root for your software to be installed to. Typically the default DESTDIR is / but we want all the files that will be installed dropped in a temp directory that we can use for our deb package. So instead of doing a make install do a make DESTDIR=/tmp/apache install

If you look in /tmp/apache you will now probably see something like /tmp/apache/usr/local/apache etc etc etc.

Next we need to create the Debian package control file. Create a directory called DEBIAN in /tmp/apache. (/tmp/apache/DEBIAN)

Now create a file in /tmp/apache/DEBIAN called control. Here is an example control file that I used for an apache build:

———————————————————————
Package: Apache-Custom
Version: 2.2
Section: My_Custom_Packages
Priority: optional
Architecture: all
Essential: no
Depends:
Pre-Depends:
Recommends:
Suggests:
Installed-Size: 1024
Maintainer: Eric Dynowski [eric@dynowski.com
Conflicts:
Replaces:
Provides: httpd
Description: Custom Apache 2.2 installation
.
More descriptive text.
———————————————————————

Next type dpkg -b /tmp/apache /tmp/apache.deb

If everything went right you should have a Debian package of your apache compile! When it comes time to upgrade you can just run dpkg –purge Apache-Custom and everything gets removed from your system.

There is much more to Debian packages and if you really interested I recommend taking a look at the Chapter 6 of the Debian FAQ.

http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html

Miles Dynowski

Posted in Family on May 10th, 2006

Miles Dynowski

The Next revisited

Posted in Tech on May 9th, 2006

I spent about a couple of hours messing with the Next slab and SE/30 again this evening. I thought I would try a smaller disk instead of the 18GB drive I played with earlier. Oddly enough I don’t have very many narrow SCSI 50 pin drives! Tons of 80 pin SCA and 68 pin drives though. Might be time to hit Ebay or Craig’s list if I’m going to keep messing around with these old machines. So I tried a couple of smaller drives.  A Seagate ST3600N, which is a 525MB drive. It was DOA. I also tried an IBM WDS-3200 which is a 200MB drive. I bought about a dozen of these about eight or nine years ago. Used to use them as swap drives. I hooked the IBM up to the SE/30 booted MacOS and did the APS floppy swap dance for 20 minutes. The SE/30 saw it and partitioned/formatted it. Then I moved the drive into the Next slab and attempted to boot from the CD-ROM and got a bunch of SCSI timeout errors. I tried a bunch of different combinations of termination, parity settings, etc.. but no luck. The Next just doesn’t like the IBM drive. So I wasted a bunch of time and I’m back to where I started. Time to start shopping for some old SCSI drives.

Eno Rock Climbing

Posted in Family on May 9th, 2006

He reached about 40 feet before getting tired.
Eno Rock