NetXMS Support Forum

Development => General => Topic started by: mgthump on November 29, 2019, 10:36:18 PM

Title: DCI poll time out, record a value
Post by: mgthump on November 29, 2019, 10:36:18 PM
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!
Title: Re: DCI poll time out, record a value
Post by: Tatjana Dubrovica on December 03, 2019, 04:43:31 PM
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.
Title: Re: DCI poll time out, record a value
Post by: mgthump on December 04, 2019, 06:33:31 PM
Thank you!