Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Persistent Storage

Persistent Storage

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 11.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    G
    gmonk63
    wrote on last edited by
    #1

    What are the limits for PS ?  are there in guidelines of how many entries you can store and is this stored in a flat file on the local file system or do these also get put into the same database.

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      It's stored in the DB, key max len is 255 and value len 2000.
      https://www.netxms.org/documentation/datadictionary-latest/#t-persistent-storage

      I will check, if data are cached in memory of server proceess.
      How much data do you want to store there?

      1 Reply Last reply
      0
      • G
        G
        gmonk63
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #4

          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.ConfigurationPollingInterval
          

          with new value of polling interval. More info here: https://www.netxms.org/documentation/adminguide/concepts.html#polling

          1 Reply Last reply
          0
          • G
            G
            gmonk63
            wrote on last edited by
            #5

            I see..  Thanks for the info I will give the custom attributes a go as it does seem like a much cleaner solution appreciate it.

            1 Reply Last reply
            0

            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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups