DCI poll time out, record a value

Started by mgthump, November 29, 2019, 10:36:18 PM

Previous topic - Next topic

mgthump

I'm trying to figure out how to get a DCI poll to record a "1" for a timeout rather than no value, and thus no change in a graph.


I've got a simple transform setup to change a modulation value of a radio to its capacity. but when the link is down due to weather, and the poll doesn't complete, no data get recorded. on the graph, it appears as though everything is fine when in fact it is offline.

here is my transform script.

if ($1 == 1) return 475000000;
if ($1 == 2) return 950000000;
if ($1 == 3) return 1930000000;
if ($1 == "") return 1;



Thanks!

Tatjana Dubrovica

You can't process error by transformation script. If you want to transform error into some meaningful value you can use script DCI, access agent or SNMP from it or value of other DCI, and return some value in case of error.