Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Limiting ntopng disk usage

    Scheduled Pinned Locked Moved Traffic Monitoring
    5 Posts 3 Posters 541 Views 3 Watching
    Loading More Posts
    • 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.
    • D Offline
      digitalgimpus
      last edited by

      Curious how others are handling this.

      I've got a 8192 MB RAM Disk for /var to prevent a ton of writes to my drive, which feels pretty generous, almost excessive.

      I've got notpng configured as such:
      3b18dc28-c76d-4e57-b421-7d5de793ebe8-image.png

      Regardless every couple of days I'm managing to overflow /var, and thus pfsense goes down hard.

      I really hate the idea of setting up influxdb in a VM on another box for this, is it possible to just segregate ntopng to something less critical than /var/? Ideally any package would not be writing to a shared RAM disk which could take down the entire system.

      dennypageD 1 Reply Last reply Reply Quote 0
      • dennypageD Offline
        dennypage @digitalgimpus
        last edited by

        @digitalgimpus ntopng writes a ton of data to disk. There is no way around this. To lessen it a bit, you could turn off the host time series data, and the interface data. But there will still be a ton of writes. Even if you use InfluxDB off host for the traffic data, there will still be a lot of local writes via Redis. In short, if you care about disk writes, do not run ntopng.

        FWIW, I recommend ntopng be used as a diagnostic resource when you have issues. I do not recommend ntopng as something you continuously run.

        D L 2 Replies Last reply Reply Quote 0
        • D Offline
          digitalgimpus @dennypage
          last edited by

          @dennypage Noted, and thanks.

          1 Reply Last reply Reply Quote 1
          • L Offline
            Leon Straathof @dennypage
            last edited by

            @dennypage Hi, do you know if there is a way to purge old data automated? I would want to run this permanent as my system is more then capable to keep up. The only thing that is a problem is running out of diskspace over a long period. I just have the need to view things of the last couple of days i do not care if things have happened weeks ago.

            dennypageD 1 Reply Last reply Reply Quote 0
            • dennypageD Offline
              dennypage @Leon Straathof
              last edited by

              @Leon-Straathof Data retention settings are handled inside of ntopng. Documentation here. Pay attention to the RRD note.

              Also, if you've turned on some of the slice and dice time series information (is off by default), I'd suggest turning them back off. These balloon the storage requirements and are of little actual use.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.