just put together a small makeshift "uptime" monitor.
basically- cron job every 10 mins that opens a php page. php page enters current time into a mysql database. every 24 hours, another cron runs that takes the total number of "check ins" and gives you a % uptime, since there should be 144 check ins in a day.
so its all good, i have that script running. so my database looks like (the date i'm entering this way, but its really stored in the now() format, so yyyy-mm-dd 00:00:00 format):
7-july-05 10:00am
7-july-05 10:10am
7-july-05 10:20am
ok, so that's perfect. HOWEVER, lets say i get to this:
7-july-05 10:20am
7-july-05 10:40am
7-july-05 10:50am
the server didn't "check in" at 10:30, hence there was an issue with the web service, the php service, or the mysql service, which i count as 'downtime'.
question is, how in the world can i "detect" this exact time, rather than just see that there were only 143 checkings today and throw out a percentage?
so i want a table which will show the above times chronologically, and instead of just 'skipping' the blank spot i want it to say 7-july-05 10:30am in red font or something, to show it was down.
thanks guys, hope someone can help!
basically- cron job every 10 mins that opens a php page. php page enters current time into a mysql database. every 24 hours, another cron runs that takes the total number of "check ins" and gives you a % uptime, since there should be 144 check ins in a day.
so its all good, i have that script running. so my database looks like (the date i'm entering this way, but its really stored in the now() format, so yyyy-mm-dd 00:00:00 format):
7-july-05 10:00am
7-july-05 10:10am
7-july-05 10:20am
ok, so that's perfect. HOWEVER, lets say i get to this:
7-july-05 10:20am
7-july-05 10:40am
7-july-05 10:50am
the server didn't "check in" at 10:30, hence there was an issue with the web service, the php service, or the mysql service, which i count as 'downtime'.
question is, how in the world can i "detect" this exact time, rather than just see that there were only 143 checkings today and throw out a percentage?
so i want a table which will show the above times chronologically, and instead of just 'skipping' the blank spot i want it to say 7-july-05 10:30am in red font or something, to show it was down.
thanks guys, hope someone can help!