Ping times and HTTP response times on device labels

Greetings,

I am trying to add http response times and ping times devices in my “Internet” map. I want to be able to get a snapshot of ping and http response times to Internet sites like google, yahoo and a few others.

I have a ping one working by adding the following to the device label

concatenate("Ping: ", if(array_element(ping(device_property("FirstAddress")), 0) = -1, "<none>", array_element(ping(device_property("FirstAddress")), 0)), " ms ")

This seems to work pretty good.

Now I want to add http response times in ms to the label also. I know a probe can do this but I can’t seem to find any function that the probes call.
So can I

  1. Directly get http response time via a function
    or
  2. Call a probe to get the response times from a function

Thanks,
Tom

not working at me

concatenate("Ping: ", if(array_element(ping(device_property("FirstAddress")), 0) = -1, "<none>", array_element(ping(device_property("FirstAddress")), 0)), " ms ")

I tried to put a tcp http probe on a label and it didn’t work. Not that this works for you but I have the 5 web sites I am tracking added to a chart then I made a panel out of that chart. Note: A panel will save the legend and scale between views, a chart won’t. The downside is you have to open the panel to see how things are performing but you can see how things are working over time and have comparison.
web.png