How to display the current server response time to the average user

Sorry, I'm not quite sure the right way to ask this, so bear with me ...

We have a web application that runs on many servers in the data center (not in our offices). We want to somehow “advertise” our customers / users that the availability or response time of our servers meets the standard throughout the day.

I am asked to create a standard metric that we can easily advertise on our login screen, which displays the current “standard response time” every 6 minutes.

I think I need to capture something like the traceroute results from the server (or in our office, amazon, etc.) on one of the data center servers and come up with a red / yellow / green notification type for the login screen so that the user I knew that our tests respond normally, and if they have problems with a delay, it could be their network or Internet connection. We have many clients in rural areas who have poor communication, and we are trying to inform them that some kind of slowness may be at their end, and not ours.

I have a LAMP stack with which to work, but it can be any other system if it can update the main server with the results.

I already have pingdom reports that are available, but this is a little more than people sometimes want to read.

Any ideas on what I can do?

Resolution

PEAR Net_Ping. :

$ping->setArgs(array('count' => 6));
$results = $ping->ping('x.x.x.x');
$avgPing = $results->_round_trip['avg'];

avg 6 . avg 5 , . , .

+3
3

, , ( ), ping . ( ).

ping IP- "", , , "".

, ( ).

, cron php script ping. PEAR Net_Ping , .

- , ping, ( ), /. , , ( , " " ).

+3

, Nagios OpenNMS , , , , Nagios -. , OpenNMS , Tomcat.

Nagios, ( dial-up ISP, ). - , cron. , - , , API.

+1

Source: https://habr.com/ru/post/1736419/


All Articles