nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Shell script to monitor remote local http or port 80

This is a discussion on Shell script to monitor remote local http or port 80 within the Shell scripting forums, part of the Development/Scripting category; Hello! I have a problem and I think you can help me. The problem is to write an application which ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 02-12-2007, 05:38 PM
Junior Member
 
Join Date: Feb 2007
Posts: 1
Rep Power: 0
amigo28
Default Shell script to monitor remote local http or port 80

Hello! I have a problem and I think you can help me. The problem is to write an application which periodical verify if a website is active. The list of websites will be read from a configuration file. You will determine the situations that a wetsite change from active to inactive or from inactive to active. In that case you will send an email to an email adress specified in configuration file. To verify if a website is active, you can use the HTTP protocol. That's all. I hope you will help me with that. Thanks a lot and have a nice day.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-12-2007, 10:58 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,036
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

This kind of work done using perl, python or ruby script. Here are few links

http://www.openfree.org/forums/showthread.php?t=17379
http://www.blazonry.com/perl/monitor_pl.txt

You can also use sophisticated tool called monit. Which can monitor local http server and try to restart them along with email based alert. Monit can be used to monitor remote server and send email when they fails.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
MYSQL master-master replication monitor shell script zafar466 Databases servers 2 07-12-2008 01:26 PM
Script to monitor a particular directory and send out e-mail.... nageshms Shell scripting 1 02-11-2008 03:01 PM
Shell script to perform operation on remote server vivekv Shell scripting 3 10-24-2007 01:10 AM
Shell script to check the disk space on remote systems vijayscripts Shell scripting 5 10-21-2007 07:29 PM
Linux Shell script to mount remote windows share angelus_kit Shell scripting 2 09-06-2007 08:18 PM


All times are GMT +5.5. The time now is 07:41 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36