NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: DCI poll time out, record a value  (Read 107 times)

mgthump

  • Newbie
  • *
  • Posts: 17
    • View Profile
DCI poll time out, record a value
« 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!
Logged

Tatjana Dubrovica

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 257
    • View Profile
Re: DCI poll time out, record a value
« Reply #1 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.
Logged

mgthump

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: DCI poll time out, record a value
« Reply #2 on: December 04, 2019, 06:33:31 pm »

Thank you!
Logged