how to limit Cacti data size

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Post Reply
lgcmorris
Posts: 8
Joined: Tue May 24, 2022 3:39 am

how to limit Cacti data size

Post by lgcmorris »

I noticed my Cacti server VM size is growing 300MB after 1 day polling of only 4 devices. How do I limit the data retention so it wont grow beyond limit? I only set 30GB for this VM.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: how to limit Cacti data size

Post by TheWitness »

Define what you mean by "cacti server vm size". It's not really clear.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: how to limit Cacti data size

Post by camerabob »

FYI. My Cacti VM config is set for 25 GB and it's been running for years . It's only maybe at 10 GB with just under 100 devices being polled in 1 minute intervals. If this is a new install, that growth should be expected. All the RRD files will be created taking up space, but once created, they will remain relatively the same in size as the contents are rolled within the file. Check you size growth after a few days. It should stabilize.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
lgcmorris
Posts: 8
Joined: Tue May 24, 2022 3:39 am

Re: how to limit Cacti data size

Post by lgcmorris »

My Cacti is installed in VM.

Okay, I'll keep monitoring the size.
lgcmorris
Posts: 8
Joined: Tue May 24, 2022 3:39 am

Re: how to limit Cacti data size

Post by lgcmorris »

This is what I recorded. when setup total of 19 devices, size grew 300MB in 3 days. Is it normal?

Starting 10.6G 7June2022
size 10.9G 8June2022
size 11.3G 10June2022
size 11.9G 14June2022 -- total device 19
size 12.2G 17June2022
lgcmorris
Posts: 8
Joined: Tue May 24, 2022 3:39 am

Re: how to limit Cacti data size

Post by lgcmorris »

it looks stable now

size 12.2G 24June2022
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: how to limit Cacti data size

Post by phalek »

Basically there are a few things that grow:
  • RRD files ( these are static in size once greated, but the number of files grow with each new device/graph/data source
  • Log files ( i.e. cacti.log These grow unless you ahve some mamangement (or limited them by disabling/reducing the loging level)
  • Database ( pretty static, except for some tables which are temporarly filled.
So check your instance which of these items are actually growing.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests