NetXMS Support Forum

English Support => General Support => Topic started by: tanero on November 18, 2022, 08:20:11 AM

Title: I am getting error while collecting script data
Post by: tanero on November 18, 2022, 08:20:11 AM
I can get a node's traffic value by writing a simple script, but when I add this script to the data collection configuration section of the node to track it as data, it gives an error (Unsupported) and stops collecting data.

What would be the reason ?

script.JPG


data-collection-setup.JPG


However, after waiting for a while, it crashes into passive mode with an error.


Status of DCI 0x00001861 (Script: t) changed to UNSUPPORTED



Title: Re: I am getting error while collecting script data
Post by: tanero on November 19, 2022, 05:26:55 PM
Today netxms version was updated to 4.2.433-1 and the mentioned faulty sensors started to work.

Title: Re: I am getting error while collecting script data
Post by: Filipp Sudanov on November 29, 2022, 07:03:21 PM
Something like this may happen right after server start, if you are taking values from a DCI that has quite frequent collection interval. In this case server is not getting last collected value from database, but awaits it from agent.
You can check if GetDCIRawValue returns null and handle this situation in the script.