You are here:

Home > Support > Technical Documents > Using the watchdog

Print this page

Technical Documents

Using the watchdog

The watchdog system can be configured from the console shell menu. The watchdog maintains a list of checks for your machine which are performed every 5-10 minutes. These checks can do one of the following:

  • Ping an IP address associated with your machine.
  • Check for an ssh response from an IP address associated with your machine.
  • Try to fetch a web page from a particular IP address and optionally check that it contains a given piece of text.

Each check as an action associated with it which can be one of two things:

  • Send you an email
  • Send you an SMS

The email address and SMS phone number are fixed in our contact database: you should make sure your details are kept up-to-date via the admin panel for these to work properly.

Some examples

Checking for a ping response from an ip address.

This checks for basic network connectivity of an ip address that your machine should respond on.

Checking that SSH is still responding

This is often a more useful test than simply pinging your host to determine whether it is “up”, since the Linux kernel will respond to pings after crashing quite badly sometimes! For instance, machines struggling in an out of memory (OOM) condition, will often respond to pings, but will not reply to a ssh login attempt.

One disadvantage compared to the ping test is that you cannot use it if you’ve adjusted your ssh daemon to listen on a non-standard port – ie one other than port 22.

Making sure your web site is still working

If you’re developing a site for a client who is going to be very sensitive to down time, whatever the cause, it helps to check that a particular page will always fetch correctly. You should pick a page on the site which accesses databases or other external resources, and check for output that confirms that such external data has been read correctly.

A couple of things to note; firstly this is an http test so you can’t use it for pages behind a SSL certificate. Secondly, you must specify a full URL eg http://www..com/index.php will probably be fine, but if you leave off the http:// protocol or the index.php page, the test will fail.

“I've stayed with Bytemark over a few years mainly because of the great value for money, service and overall package you deliver. Now using Symbiosis all the fiddly little bits and pieces that used to confuse me are a thing of the past. It's great how it joins all the best UNIX software for the job and makes it so easy to set up.”

Michael Parker
Zanity

Control Panel

News from our company, and our opinions on emerging technologies.

Control Panel

A 4GiB dedicated server with RAID1 for £69.00 per month - control and isolation for less!

ExtrasThe Team

You get more than just a server - our free extras give you a robust hosting service.