I don't think
gregor42 meant that your question was off topic... As I read it, the answer was marked as off-topic. (i.e. not really perl related) In the same spirit my answer below is probably off topic as well....
In my experience, scripts that automatically diagnose and "fix" a problem (ala bouncing your webserver) are more trouble than they are worth. I'd recommend running a full fledged monitoring program that alerts you whenever a problem occurs. I've had good success with Big Brother but am seriously considering switching over to netsaint. Both systems religiously monitor everything from memory usage, to internet connectivity, to database connectability (sp?).
You can also write your own "plug-in" scripts to monitor anything you want. Some have even used this feature to send out stock market alerts, or keep an eye out for cheap airline tickets.
While the last two uses are rather esoteric, having a monitoring system that is easily customizable, is crucial to running a high quality internet service.
-Blake
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.