Availability

Bash skripty
User avatar
Ashus
Administrátor
Posts: 417
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

Availability

Postby Ashus » 17. 08. 2007 14:58

Simple script, that pings every 10 minutes a stable internet address. The number of successful pings is added to a new line of a data file.
Included PHP script counts relevant nonzero lines from the end of datafile and equates a percentage of availability last month.

If results are to be accurate, it is required for the server to run 24/7 and for cron to run the script regularly. If the server freezes and is kept frozen for an hour, the percentage may still output 100% incorrectly. On the other hand, the script doesn't require much resources and is as lightweight as it can be.
Attachments
availability.rar
(863 Bytes) Downloaded 40 times
Image
Coffee phreak!
Bethune
Posts: 1
Joined: 15. 05. 2017 18:24

Re: Availability

Postby Bethune » 22. 05. 2017 13:59

Just the script I needed I hope it still works!

Who is online

Users browsing this forum: No registered users and 1 guest

cron