Persistent Storage
-
-
It's stored in the DB, key max len is 255 and value len 2000.
https://www.netxms.org/documentation/datadictionary-latest/#t-persistent-storageI will check, if data are cached in memory of server proceess.
How much data do you want to store there? -
There could be a potential to store a few thousand entries. I have created an EPP with a script that takes the SNMP interface down events and creates two entries (1) the source and original timestamp (2) source and interface value so if a switch is generating several down even traps within a 5min period I know the interface is flapping and generate an alarm. Is there maybe a better way ? I want to capture the events and soon as the happen I did not want to rely on having to increase polling rate. In a Layer2 segment flapping interfaces can reek havoc with Spanning Tree TCN events being generated each time interfaces go up and down on uplink ports.
Thanks
-
Few thousands should not cause any problems.
The other options could be to use custom attributes on corresponding nodes - this is a bit cleaner solutions, as when a node is deleted, custom attributes are deleted as well, while persistent storage might still have some remaining entries. If you go that way, it's better to use custom attributes with names starting from $ sign - it's a new feature added in 4.5.0 - these custom attributes are not being sent to GUI client.
You may want to keep several comma-separated timestamps in one persistent storage entry or custom attribute. It's convenient to do this by converting comma-separated values to array and back, e.g.:
s = "123,456,789"; a = s->split(","); println(a); s = ArrayToString(a, ","); println(s);P.S. There's a trick to temporarily change polling interval for a node - you script can add custom attribute named
SysConfig:Objects.ConfigurationPollingIntervalwith new value of polling interval. More info here: https://www.netxms.org/documentation/adminguide/concepts.html#polling
-
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