Is it possible to control NetXMS cache?
-
Hi!
I have a few questions regarding NetXMS database caching:
Is it possible to turn off caching and set it to write to database instead?
Is the cache flushing time based or data based? If it is time based, is it possible to set the interval?I'm using custom attributes to store some user specified data, which I need to query from DB. I would like to avoid using the web API.
Best regards,
Sch. Donat -
Hi,
It is not possible to turn off caching, but you can set synchronization interval by changing server configuration parameter: "SyncInterval".
-
Hi!
Thanks for the answer, it works great when I change the Custom Attribute from the NetXMS Management Console via the object properties. I can see the changes after the specified time (in SyncInterval).
Changing Custom Attributes from script, however, doesn't seem to work. I can see the change in the console, but the server doesn't write it to the database. If I restart the server, the change is completely lost (I can't see it in the console anymore).I use the following script, maybe I'm missing something:
SetCustomAttribute($node, "operationalstatus", "status");Best regards,
Sch.Donat -
Looks like a bug I'll check it.
What server version do you use?
-
-
This bug is present in both 3.0 and current 3.1. It will be fixed in next patch release.
-
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