Been there, done that. First of all, if your computer isn't connected 24/7, what's the point of sending email? You first have to determine why you are monitoring, and what you want to do if something fails, before deciding what you are going to use to monitor. Are you monitoring a mission critical application? Do you (or someone else) have to perform a manual intervention if a service is unreachable? Are you just monitoring to get an indication of your weekly uptimes?

I've monitored services in several previous gigs. That included using off-the-self products like mon, big brother, and mrtg, and products written from scratch, which either ran 24/7 or ran from cron. Sometimes the monitor ran on the same box that performed the service - and sometimes the monitor was a spin in a web, monitoring services of a range of machines. Sometimes, all they did was producing graphs, some products send out messages to pagers and phones, some tools tried to fix problems instead of reporting them, and sometimes they did all three. And I've written monitors to monitor my monitors.

I've written scripts as simple as:

#!/bin/sh if ping -c 1 'xxx.xxx.xxx.xxx' then : else /etc/init.d/network restart echo "Restarted the network" fi
and programs with thousands of lines monitoring dozens of functions of tens of database servers, with cascading alerts.

Abigail


In reply to Re: Monitoring system availability? by Abigail-II
in thread Monitoring system availability? by JayBee

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.