I don't think I made myself quite clear. It's more of a test harness than a set of specific tests. You can use this to test if your php is working correctly, or if your cgi is working correctly, or anything that your web server does. I was using SSI as an example.

I've written it as a module rather than as a script because I'd like it to be usable in various testing/monitoring systems. I've written a script that uses it for nagios, but I'd like it to be usable for mon, or anything else.

As a developer, you would:

  1. Write a web page containing the tests (like my SSI example)
  2. Write a script that...
    1. uses LWP::UserAgent or similer (lynx -source ?) to get the html from that page
    2. feeds the html into my $cw = CheckWeb->new($html)
    3. Then use $cw to do something with the results, ala if ( $cw->all_pass ) { ... do something... }

Does that make sense?

P.S.

I'm calling it CheckWeb in my own head for now. I'll ask for help coming up with a real name once I'm closer to releasing it.


In reply to Re^2: Module Idea by pileofrogs
in thread Module Idea by pileofrogs

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.