Basic Data Source Code syntax - The Dude - MikroTik community forum
Basic Data Source Code syntax RouterOS The Dude g.bigras August 28, 2007, 5:44pm 1 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 g.bigras August 28, 2007, 6:33pm 2 I guess a follow-up question to my questions would be: Can I create a data source for graphing purposes without any associated probe or service ?