I am looking for a php program I can run on my Linux server as a cron job. I need it to see if my internet connection is good at home. If not send an email and record the “event”.
Mark
I am looking for a php program I can run on my Linux server as a cron job. I need it to see if my internet connection is good at home. If not send an email and record the “event”.
Mark
Mark,
Some time ago I wrote flatline-check which will probably do what you want to do. You can get it at http://jcweather.us/scripts.php and give it a try.
You’d be better looking for a perl script to run under cron. Whilst PHP can be run from the command line, it’s really designed for creating dynamic web pages through a web server.
True, but for someone with some knowledge of php, and maybe none of perl, php will do the job just fine. To a man with a hammer etc.
I did up a Perl script to check connectivity of my Motorola SAB5100 SurfBoard cable modem
This I run every 5 minutes via Windows Scheduler, but being Perl, would work on a Linux system too (after install of the Device::CableModem::SURFboard package, available from CPAN.
Maybe this could help?
Best regards,
Ken
Mediacom is giving me the run around. My internet drops and by the time I get through the voice prompts, the internet is back up. What I would like to do is run a cron job from a 1and1 server that will check to see if my internet is running. I have a domain name that is directed to my home IP address by dyndns. So could I ping that domain once a minute and then if it returns a ping stop. If no ping is returned try four more times at one minute intervals. Then if on the fifth try with no ping log it and send an email to a mediacom tech. Hmmm
Has someone already invented this wheel
Mark
Maybe you could use this, http://www.pingdom.com/
Mark,
I had a similar situation with Mediacom … sporadic dropouts. After several trips to my home and equipment replacements I finally got them to bury a new wire from the box at the curb into the house. It’s been solid since then. One tool that I used was StartWatch which you can set to monitor your web site, then it will log each interruption.
They have replaced the cable from the pole to my home. After two more trips to my site they told me it had to be internal. So I ran a quad shield cable from the outside connection to the modem. They finally agreed it was not me but them.
mark
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.