Function GetDCIValueByDescription returns (once) an empty string
-
I set up an DCI with: origin-script, data type-string, polling intervall-300
The script returns possible node problems as string - amongst other things using the function GetDCIValueByDescription.
While NetXMS is constantly running, I get the last value (not empty as expected).
If the Core Server has been restarted, the function GetDCIValueByDescription returns (once) an empty string. :-
I checked in the history that the last value was not empty.I would call it a bug ::) , observed in version 2.0-RC1 and 2.0-RC2.
Best Regards.
-
Hi,
GetDCIValueByDescription reads last value from cache. It can happen that it was called faster then cache for queried DCI was populated (either by poll or from database). I'll think what I can do with that.
Best regards,
Victor -
-
Many thanks for your answers.
@victor said in Function GetDCIValueByDescription returns (once) an empty string:
..
GetDCIValueByDescription reads last value from cache. It can happen that it was called faster then cache for queried DCI was populated (either by poll or from database). I'll think what I can do with that.
..It would be nice if the behavior could be changed.

(Although a restart is a special situation ..)Best Regards.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login