Which lightweight self hosted remote monitoring script would you recommend?

Discussion in 'Questions and Answers' started by fixidixi, Oct 7, 2013.

  1. fixidixi

    fixidixi Active Member

    307
    71
    May 17, 2013
    Hy,

    I've read this topic and did the ususal google search, but I'd be interested in your recommendations:

    I'm looking for a lightweight self hosted remote monitoring script which would generate a static uptime report.

    Report should only include if the node/service ip is up/down.

    Goodie: if its able to monitor services on different ports.

    But the major factor would be to be able to run it with minimal resources..

    The script should be able to monitor at least 5 different nodes..

    I've also looked at the pretty graphs of catci/munin but drawing graphs is cpu intensive as ive read. Any ideas?

    Thanks & Regards,
     
  2. peterw

    peterw New Member

    800
    189
    Jun 14, 2013
    Looking forward to recommendations too.
     
  3. zim

    zim The Invader Verified Provider

    39
    12
    Sep 2, 2013
    PHP Ping

    https://github.com/geerlingguy/Ping

    Code:
    $host = 'www.example.com';
    $ping = new Ping($host);
    $latency = $ping->ping();
    if ($latency) {
      print 'Latency is ' . $latency . ' ms';
    }
    else {
      print 'Host could not be reached.';
    }
    
     
  4. nunim

    nunim VPS Junkie

    485
    157
    May 15, 2013
    You can do it in bash, will be the most secure and use the least resources.  I create downtime logs with traceroutes on downtime so I can see where the problem is or you can send a mail alert or both.  If you want to monitor ports as well you can use nmap after ensuring the host is online.  You can then parse the logs any way you wish to create a report or graph.
     
    Last edited by a moderator: Oct 7, 2013
  5. rosehosting

    rosehosting New Member Verified Provider

    7
    0
    Sep 15, 2013
  6. fixidixi

    fixidixi Active Member

    307
    71
    May 17, 2013
    Thanks for your input everyone!