Hi there,
I’m a newbie here and would like to know how to create a custom data source. I was practicing using the function “ping” but have no clue as to storing the data. Basically I just want to ping an IP address and store the rtt. Yes I know that there are built-in data sources but I wanted to try on my own …
Here are my data source params:
Name : MyTestDS
Type: function
Data : Gauge
Scale Mode : Multiply
Scale : 1
Unit: ms
Rate: none
Device: none
interval: 30
Code:
If I wanted to store the rtt results from a ping to say: 10.1.1.1 What would the code look like ? I’ve tried putting “ping 10.1.1.1” as the code and I know that ping returns an array of 4 elements but I’m not sure on how to extract that info.
thanks in advance
Guy