in reply to Re: Module Idea
in thread Module Idea

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.