|
Hello,
I am looking for some ideas on a little project I am about to start. I want to create a monitoring service and looking for suggestions on the backend structure.
Lets say my service allows a member to enter a URL and the loaded page is checked for text, if the text is present the site is assumed to be 'up', if it doesn't the site is assumed to be 'down'.
Now lets say I have 100 members with 1 of these monitors each. What is the best way to call the script to check the service? At first I figured a cron job, but 100 cron jobs? What if I allow each member 5 monitors, thats 500 cron jobs, obviously you can see how that will get crazy and possibly unmanagable over time.
Then I thought maybe a cron job for each interval (monitors that check every 5min, 15min, 30min, 60min). So thats 4 cron jobs, maybe each could scan a database looking for members who have a 5min monitor and then runs the script.
It seems like there are alot of possibilities, so wondering if someone has some knowledge on this or how other services do it. Im trying to think in terms of ease of managment and server load.
Any ideas?
Thanks in advance!
|