RE: tool for checking website
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Ivailo Tanusheff > Sent: Thursday, 5 October 2006 11:26 PM > To: Martin Schweizer > Cc: freebsd-questions@freebsd.org; [EMAIL PROTECTED] > Subject: Re: tool for checking website > > You may use nagios port :) > It also has web interface. > > Ivailo Tanusheff > Deputy Head of IT Department > ProCredit Bank (Bulgaria) AD > > Subject > tool for checking website > > > Hello > > I'm looking for port which checks if a website is online or > not. My goal > is > regulary starts a script which do this for me. Any ideas? > > -- > > Regards > > Martin > <[EMAIL PROTECTED]> > Hi Martin, I use the attached ruby script ( based on one i googled, and probably not the best ruby as it was my intro to the language...) and a crontab line like this 0 */3 * * * $HOME/bin/webcheck.rb -v -m [EMAIL PROTECTED] http://www.example.com command line is -v send emails for an OK test also, otherwise only send on website failure -m email_addr who to send the notification email to (has a default in the code, typ used for testing) URL the URL of the site / page being tested. This was written to monitor a friends business page when he was having 'issues' with the windows noddies who bought the isp... they deleted the DNS configs in the first week and sites 'just vanished' as the caches dried up and in the second week 'Whats a shell server' and it shutdown (the saga continued) Murray Taylor Special Projects Engineer Bytecraft Systems -- "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein --- The information transmitted in this e-mail is for the exclusive use of the intended addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material. E-mails may not be secure, may contain computer viruses and may be corrupted in transmission. Please carefully check this e-mail (and any attachment) accordingly. No warranties are given and no liability is accepted for any loss or damage caused by such matters. --- ### This e-mail message has been scanned for Viruses by Bytecraft ### webcheck.rb Description: webcheck.rb ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: tool for checking website
You may use nagios port :) It also has web interface. Ivailo Tanusheff Deputy Head of IT Department ProCredit Bank (Bulgaria) AD Martin Schweizer <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 05.10.2006 14:40 Please respond to Martin Schweizer <[EMAIL PROTECTED]> To freebsd-questions@freebsd.org cc Subject tool for checking website Hello I'm looking for port which checks if a website is online or not. My goal is regulary starts a script which do this for me. Any ideas? -- Regards Martin <[EMAIL PROTECTED]> PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; public key : http://www.pc-service.ch/pgp/public_key.asc; fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; attibtse.dat Description: Binary data ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: tool for checking website
I forgot a few lines, added in below: At 09:44 AM 10/5/2006, Derek Ragona wrote: Typically I do: #!/bin/sh WGET=/usr/local/bin/wget DIFF=/usr/bin/diff MAIL=/usr/bin/mail CAT=/bin/cat RM=/bin/rm MAILFILE=/tmp/site_report MY_URL=http://www.mydomain.com MY_PAGE=index.html MY_REF_PAGE=/usr/local/www/good/index.html cd /tmp if [ -f "$MY_PAGE" ]; then $RM $MY_PAGE fi $WGET $MY_URL/$MY_PAGE $DIFF $MY_PAGE $MY_REF_PAGE if [ "$?" -eq 1 ] echo "Site is down" > $MAILFILE echo " " >> $MAILFILE echo "Bad page retrieved:" >> $MAILFILE $CAT $MY_PAGE >> $MAILFILE echo " " >> $MAILFILE $MAIL -s "Website Problem Report" [EMAIL PROTECTED] < $MAILFILE fi This will verify the page is being served, and the content is correct. -Derek At 06:40 AM 10/5/2006, Martin Schweizer wrote: Hello I'm looking for port which checks if a website is online or not. My goal is regulary starts a script which do this for me. Any ideas? -- Regards Martin <[EMAIL PROTECTED]> PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; public key : http://www.pc-service.ch/pgp/public_key.asc; fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: tool for checking website
Typically I do: #!/bin/sh WGET=/usr/local/bin/wget DIFF=/usr/bin/diff MAIL=/usr/bin/mail CAT=/bin/cat RM=/bin/rm MAILFILE=/tmp/site_report MY_URL=http://www.mydomain.com MY_PAGE=index.html MY_REF_PAGE=/usr/local/www/good/index.html cd /tmp $WGET $MY_URL/$MY_PAGE $DIFF $MY_PAGE $MY_REF_PAGE if [ "$?" -eq 1 ] echo "Site is down" > $MAILFILE echo " " >> $MAILFILE echo "Bad page retrieved:" >> $MAILFILE $CAT $MY_PAGE >> $MAILFILE echo " " >> $MAILFILE $MAIL -s "Website Problem Report" [EMAIL PROTECTED] < $MAILFILE fi This will verify the page is being served, and the content is correct. -Derek At 06:40 AM 10/5/2006, Martin Schweizer wrote: Hello I'm looking for port which checks if a website is online or not. My goal is regulary starts a script which do this for me. Any ideas? -- Regards Martin <[EMAIL PROTECTED]> PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; public key : http://www.pc-service.ch/pgp/public_key.asc; fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: tool for checking website
riccardo_diago wrote: depend on what u really wanna check... 1. the web server? 2. the protocol http? 3. or if the web site is just visible(avoid defacement) etc... Can u be more specific? Rik if you want /need to monitor more services (like http or mysql) nagios is a nice tool ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: tool for checking website
Hello Rik Am Thu, Oct 05, 2006 at 04:04:23PM +0200 riccardo_diago schrieb: > > depend on what u really wanna check... > 3. or if the web site is just visible(avoid defacement) ... only if the web sie is just visible -- Regards Martin Schweizer <[EMAIL PROTECTED]> PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; public key : http://www.pc-service.ch/pgp/public_key.asc; fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; pgpozr0DM4KcU.pgp Description: PGP signature
Re: tool for checking website
depend on what u really wanna check... 1. the web server? 2. the protocol http? 3. or if the web site is just visible(avoid defacement) etc... Can u be more specific? Rik signature.asc Description: OpenPGP digital signature
Re: tool for checking website
Hello Mile ... it's what I'm looking for... very simpe but useful. Thank you for the hint. Am Thu, Oct 05, 2006 at 08:41:10AM -0400 Mike Jeays schrieb: > On Thu, 2006-10-05 at 13:40 +0200, Martin Schweizer wrote: > > Hello > > > > I'm looking for port which checks if a website is online or not. My goal is > > regulary starts a script which do this for me. Any ideas? > > > > #/bin/sh > > wget http://target.url > if [ "$?" -eq 0 ] > then > echo "Site is up" > else > echo "Site is down" > fi > > Or is this too naive and simple? -- Regards Martin Schweizer <[EMAIL PROTECTED]> PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; public key : http://www.pc-service.ch/pgp/public_key.asc; fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; pgp5vQRH4EEHy.pgp Description: PGP signature
Re: tool for checking website
On Oct 5, 2006, at 6:40 AM, Martin Schweizer wrote: I'm looking for port which checks if a website is online or not. My goal is regulary starts a script which do this for me. Any ideas? Put a fetch command in your crontab. Experiment so that it emails you only when it fails. -- David Kelly N4HHE, [EMAIL PROTECTED] Whom computers would destroy, they must first drive mad. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
tool for checking website
Hello I'm looking for port which checks if a website is online or not. My goal is regulary starts a script which do this for me. Any ideas? -- Regards Martin <[EMAIL PROTECTED]> PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; public key : http://www.pc-service.ch/pgp/public_key.asc; fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; pgpIc516DsruJ.pgp Description: PGP signature