Monitor a specific web page or script output or port

Hi,

I have a problem on one of my boxes and I can't seem to workaround it.

I have Chili!ASP installed in several boxes and it always as run smoothly but in this box, it's giving me crazy every week or so it crashes, so I need to monitor it. I've tried several options but none have solved it.

Apache doesn't crash, it's just the asp server so I really can't monitor the apache (witch cpanel already does - this is a cpanel box)

I also tryed chksrvd.

The asp service uses 2 ports, so I tried to monitor it in chksrvd with

#SERVICE = PORT, SEND, RESPONSE, RESTART COMMAND
service[casp_3000]=3000,QUIT,,/opt/casp/admin/bin/caspctrl stopall;/opt/casp/admin/bin/caspctrl startall

The problem is that monitoring the port doesn't really work well because I don't get an output, if I actually telnet to port 3000 for example (for this scneario), I get no result so the chksrvd only works if the port is actually down (and sometimes it's not - even thought the service crashes it's still on memory and the port is alive)

So I have basically try to monitor the http process of a site and see if the result is ok or not, I am looking for a script or something to put on crontab or something to check the status of a page

eg: lynx http://www.webhostingtalk.com/testasp.asp and see the result is alive or not (this was my thought but I haven't found any script that does it)

Any ideas? Or other alternatives Monitor a specific web page or script output or port

Thank's

 

 

 

 

Top