Hello
I need a single PHP page to grab and save server statistics information, like:
using this GET method: [login to view URL]
Traffic in Mbps Upload
Packets in PPS Upload
Traffic in Mbps Download
Packets in PPS Download
using this GET method: [login to view URL]
CPU Usage %
Memory Usage %
Load Average 1
Load Average 5
Load Average 15
using this GET method: [login to view URL]
/home Usage %
The script has to:
Update every 60 sec from N dedicated servers (N parametric)
Save all data on a mysql database on each minute, save up to 24 hours.
Create 6 tables from all colected data.
First table will be about all this statistics about right now (last updated data)
All other 5 tables will be about:
Highest data on last 15min,
Highest data on last 1h,
Highest data on last 8h,
Highest data on last 24h,
Average data on last 24h.
All tables has to update every minute and the average one has to get info from all 1440 (24x60) minutes saved on database.
Each data will be printed on a specific collor, and this coolor will change on a gradient from green to red (called HSV, more info here: [login to view URL])
Higher values, closer to red
Lower values, closer to green
Everytime a value goes to full red, a default e-mail has to be sent (no smtp needed), including which value reached red color and what time it happened.
Below I'll show how each color is defined for each value:
Traffic in Mbps Upload: Always Green
Packets in PPS Upload: Always Green
Traffic in Mbps Download: Green for every value lower tham 5Mbps, Red for every value higher tham N x ServerAverage (N parametric)
Packets in PPS Download: Green for every value lower tham 1000pps, Red for every value higher tham N x ServerAverage (N parametric)
CPU Usage %: Green for every value lower tham 50%, Red for every value higher tham 90%
Memory Usage %: Green for every value lower tham 50%, Red for every value higher tham 90%
Load Average 1: Green for every value lower tham 4, Red for every value higher tham 20
Load Average 5: Green for every value lower tham 4, Red for every value higher tham 20
Load Average 15: Green for every value lower tham 4, Red for every value higher tham 20
/home Usage: Green for every value lower tham 30%, Red for every value higher tham 80%
Remember all those collors has to be a gradient HSV as said before.
The tables has to look like those: [login to view URL]
For security reasons I'll NOT provide my API for your tests, if you wanna take this project, you have to have your own way to make your tests.
Hi,
Thank you for posting your requirement.
My name is Inderjeet and I run a small 4-member IT services firm at Chandigarh, India. We have been into IT since 1994 and have done a vast number of software (from Dos+Foxpro to C# and complicated hardware interfacing and IPTV solutions) tasks for our clients. Currently we work on web applications, preferably open source to lower end user costs, and live/VoD video streaming solutions. Having a vast experience, we intend to harness the power of these portals and reach out to worldwide audience providing cost effective (not cheap) but reliable IT solutions.
Please feel free to ask any questions you may have. We look forward to hearing from you and assisting you on the project, developing a long lasting relationship in the process.
Sincerely,
Inderjeet