How Do You Monitor Services?

Discussion in 'Linux VPS/Dedicated - General' started by NeilHerbert, Jun 26, 2007.

  1. NeilHerbert

    NeilHerbert YummyHost

    This morning I woke up to find my server had had a 10 hour downtime because HTTPD failed. This is a big problem, specially for a webhost! I'm wondering if theres any scripts out there that can help internally monitor running services and restart any that fail? All the ones I've come across just don't seem up for the job. :( I'm really interested to know how everybody else keeps an eye on their services and that?

    Neil
     
  2. ppc

    ppc Moderator

    Hi Neil,

    Sorry to hear about that.

    Which control panel do you use?

    I currently use Plesk and included in plesk is a module called Watchdog and although its not perfect(there are several false alarms) it has caught times when a service has gone down and it goes ahead and restarts it.

    Regards,
     
  3. NeilHerbert

    NeilHerbert YummyHost

    I'm using cPanel, cPanel is suposedly meant to do all that, monitor services and restart them if they fail but it doesn't seem to. I've used watchdog in the past but must have misunderstood it's purpose. I thought it was only to reboot the server if it crashes rather than indavidual services? I might have a look at that. Thanks for reminding me of that.
     
  4. ppc

    ppc Moderator

    Nope it monitors each service on your "server".

    Glad to be of help.

    Let us know how it goes,
     
  5. NeilHerbert

    NeilHerbert YummyHost

    Ah, cPanel does use watchdog to monitor it's services including httpd. It just doesn't seem to be doing the job o_O
     
  6. khiltd

    khiltd New Member

    Perhaps there was an error in your configuration which prevented httpd from starting.
     
  7. Dan

    Dan Moderator

    Neil,

    In WHM go to Main >> Service Configuration >> Service Manager and make sure the box Monitor for the service is checked. By default so far as I know it is enabled for httpd though...
     
  8. Aussie_Boy

    Aussie_Boy Member


    great tip, thanks.

    I checked mine and only 'named' was set to Monitor.

    Have now added httpd and mysql.
     
  9. NeilHerbert

    NeilHerbert YummyHost

    lol I feel a bit stupid now, figured out the problem. godaddy... I needn't say more tbh lol but I will. The domain I registered with them last week was going to replace the domain i had been using for my vps. I registered the domain and reconfigured the server and got everyone to
    switch their nameservers over to the new domain. This morning godaddy decided to delete my account and domain with no reason. Thus causing the problem. Wasn't anything to do with the server. (Thanks to Eugene on support for helping to figure this one out)

    Problem is all sorted now, re-registered with a different registrar.

    Whoops
     
  10. ppc

    ppc Moderator

    Yeah Euegene is one of the finest support technicians I have ever seen. He is amazing problem solver and very patient and honest.

    Glad its all sorted out.
     

Share This Page