[Date Prev] [Date Next] | [Thread Prev] [Thread Next] | [Date Index] [Thread Index] |
Re: portmon and web serviecs
|
> > Here's how we do it: > > 1. Make a file (like ping.txt) that has two lines in the server's root: > PING_OK > > > 2. Make your config look like this: > > HOST www.cque.com 236.4.13.50 WWWport 80 Error GET /ping.txt > info PING_OK > We do sort of the same. To check perl is running, cgi's can run, the servers root directory is correct we have a script (monitor.pl) that is on every server : #!/usr/local/bin/perl # print "Content-type: text/plain\n\n"; print "DOCUMENT_ROOT : "; print $ENV{'DOCUMENT_ROOT'}; print "\n"; # # Done # Then we have : HOST hermod.ttsg.com 204.141.224.128 WWWport 80 Critical GET /cgi-bin/monitor.pl info DOCUMENT_ROOT : /var/www/htdocs Tuc/TTSG |