- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Shell script to monitor for a hung web page
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2015 10:09 AM
01-20-2015 10:09 AM
Shell script to monitor for a hung web page
Hello all.
I'm trying to put together a shell script to check for a "hung" or unresponsive web page and generate an email if that occurs.
I've looked at some wget and curl examples on line but nothing really meets my needs.
In addition to checking for a hung web site, I was wondering how I would reproduce a hung web page to confirm the check actually works.
Any suggestions would be greatly appreciated.
Thanks in advance all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2015 09:18 PM
01-20-2015 09:18 PM
Re: Shell script to monitor for a hung web page
> [...] check for a "hung" or unresponsive web page [...]
I'll interpret that as "check for an unresponsive Web server".
> [...] I've looked at some wget and curl examples on line but nothing
> really meets my needs.
Here's some advice which is about as specific as your problem
description: Wget works for me for this kind of task. (I do it on VMS
with a batch-job DCL script, but I'd expect a shell script to be
similar, except for the way a time-out would be implemented.)
Perhaps if you cite an actual example script and explain what makes
it deficient for your needs (or explain what your needs are), then you
might get more specific suggestions.
> [...] I was wondering how I would reproduce a hung web page to confirm
> the check actually works.
A CGI script/program which includes a long sleep() ought to be easy
enough to implement.