Nagios – how to determine the name of a service in Windows

I’ve recently set up Nagios on one of our test servers, and the Windows client for Nagios allows you to monitor services (whether they started, stopped, etc.). However, the name of the service to monitor isn’t always the same as the name in the Services application in Administrative Tools.

To find out the name of the service, you’ll have to look at the registry:

  1. Open up regedit (Run, regedit)
  2. Navigate to HKEY_LOCAL_MACHINE
  3. Navigate to SYSTEM
  4. Navigate to CurrentControlSet
  5. Navigate to Services
  6. Find the service you plan on monitoring. The name of the node is the name you need to enter on the Nagios server as the name of the service.

Ubuntu 8.10 installation – GRUB error 18

Over the Christmas break I’ve installed Ubuntu 8.10 on my main machine. The installation was not upgradeable without some serious wizardry (the /boot partition was too small, and increasing that on a full disk is not easy), so I decided to do a fresh install.

After going through all the installation steps, and booting up Ubuntu 8.10 for the first time, I was greeted with a GRUB error 18. Some Googling revealed that this was caused by the hard disk being too large for the BIOS to handle. And there was even a helpful post that described a three step process:

  • Set your hard disk for LBA mode
  • Install Ubuntu
  • Set your hard disk back to normal

Unfortunately, this didn’t work for me. The installation resulted in the same GRUB error. However, there is an easier fix.

GRUB error 18 means actually that the kernel cannot be found in the first 1023 cylinders. You can change that by creating a /boot partition that is completely within those first 1023 cylinders. So, after the first try at installing, and failing with the GRUB error, try this:

  • Restart your machine, with the Ubuntu CD as startup.
  • Install Ubuntu as normal, until you get to the partition information.
  • Select Manual from the partition options.
  • The only thing you need to change is the main partition (/). Delete the one that is on the disk now. The partitioner may tell you it needs to write changes to the disk – by all means, let it write them.
  • Next, create a partition at the very beginning of the hard disk, of sufficient size, but not too big (I decided on 1GB, but it may be better to go with 512KB or even smaller – not too small, since I couldn’t do an upgrade on my 128KB boot partition). Choose ext2 as file system – you won’t need journaling or anything fancy on that partition. Your mount point is /boot.
  • Finally, create the main partition, covering the remainder of the hard disk. Make the file system ext3 – you want the journaling etc. on this one.
  • You should now have a /boot partition at the beginning of your disk, a / partition for most of the rest, and a small swap partition (about twice the size of your memory). If not, you need to manually adjust the partitions until you have all three.
  • Continue with the rest of the installation.

Your mileage may vary, but this worked for me (it’s also the trick I used when installing 6.06LTS). Hope this helps someone!

Skype 2.0 beta for Linux includes video

Skype announced the release of a beta version of Skype 2.0 for Linux. The new version supports video, so Linux Skype users can now put the webcam to good use.

The Linux beta can be downloaded here. Hardware requirements are:

  • Processor: 1GHz or faster
  • RAM: 256MB
  • Hard disk: 20MB free space
  • Microphone and speakers, or headset
  • Internet connection, broadband is best, GPRS is not supported for voice calls, and results may vary on a satellite connection.
  • Videocard driver with Xv support
  • Qt 4.2.1 or higher
  • D-Bus 1.0.0
  • libasound2 1.0.12

The page has versions for Ubuntu (7.04 – no 7.10, although this version should work fine with Gutsy), Fedora (Core 6, and 7), Debian Etch, OpenSUSE 10+, Mepis, Mandriva, Xandros and CentOS. There is also a generic Dynamic and Static package.

Linux game company opens doors, releases first game

On November 3rd, 2007, Sixth Floor Labs LLC announced that they launched their business. The press release can be found here.

They also released the first release of Project Alexandria, an Asteroids-like arcade game. This is downloadable for free here.

Although it’s commendable that a company decides to make Linux games, this game’s graphics look very much like the Commodore 64 graphics. I haven’t played the game yet, but I’m not sure the world is waiting for the next 1980′s game. Hopefully future release will look a little better…

Setting up MXP to run under Linux

Recently our systems administrator asked me if it was possible to run MXP under Linux. “I don’t think there is a client of Progress for Linux, at least not graphical”, was my first response. But I got intrigued, and started digging (or rather, googling) around. And it is possible.

I’ll describe what I did under Ubuntu 7.10 with Progress 10.0B, and MXP 8.1E. The steps should be very similar for other Linux flavors, or later versions of Progress and MXP.

[Read more...]