Hi,
Basically i am trying to show URLs status with response code and hostname in a DataTable with 15 minute interval which refreshes after every 10 secs.
the above scenario is achieved, however if a service goes down and comes up in a interval less than 15 minutes, 2 records of same URL displays with status up and down.
So how to avoid such scenario and show only latest URL status ?
status | Host Machine | URL to Monitor | Response code(200:Ok & hypen:Unavailable) |
---|---|---|---|
down | Machine1 | http://localhost:8080 | - |
down | Machine1 | http://localhost:9200 | 503 |
up | Machine1 | http://localhost:8080 | 200 |
up | Machine1 | http://localhost1:8088 | 200 |
up | Machine1 | http://localhost1:9995 | 200 |
up | Machine1 | http://localhost2:8083 | 200 |
up | Machine1 | http://localhost2:8080 | 200 |
as you can see in the above table , the URL localhost:8080 is displayed twice one with status - and other with 200.
Note :- This graph need to be embedded in a dashboard where the interval and frequency of refresh has to be constant.