It fails when I graph many devices, please help me

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
david454545
Posts: 13
Joined: Mon Oct 31, 2022 8:51 pm

It fails when I graph many devices, please help me

Post by david454545 »

I work for an ISP.

I want to know what is the maximum number of devices that I can graph, if cacti has a limit of concurrent graphs


My intention is to graph all my users and have the graphs of the network interfaces to look at the graphs of the Mb consumed, the users exceed 5000 users.

currently when I have a high number of graphs I see that the new graphs do not work, but the old ones do keep graphing well

please help me with this; to know why when I add more graphics the new ones don't work; I want to know if cacti has a limit of concurrent graphs
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: It fails when I graph many devices, please help me

Post by Osiris »

I know of sites with 1M+
Before history, there was a paradise, now dust.
david454545
Posts: 13
Joined: Mon Oct 31, 2022 8:51 pm

Re: It fails when I graph many devices, please help me

Post by david454545 »

Hi

question:

I have to configure something additional in php to make it work with many simultaneous graphs ?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: It fails when I graph many devices, please help me

Post by cigamit »

Show the STATS line from your Cacti log.
david454545
Posts: 13
Joined: Mon Oct 31, 2022 8:51 pm

Re: It fails when I graph many devices, please help me

Post by david454545 »

cigamit wrote: Fri Aug 04, 2023 10:48 pm Show the STATS line from your Cacti log.
Hi

Attached screenshot of Log messages

how can i correct that
Attachments
ERROR PHP.PNG
ERROR PHP.PNG (96.3 KiB) Viewed 1381 times
david454545
Posts: 13
Joined: Mon Oct 31, 2022 8:51 pm

Re: It fails when I graph many devices, please help me

Post by david454545 »

Hi

This error appears constantly and coincides with the time when some devices do not graph
Attachments
Trafico.PNG
Trafico.PNG (117.75 KiB) Viewed 1146 times
Error.PNG
Error.PNG (87.09 KiB) Viewed 1146 times
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: It fails when I graph many devices, please help me

Post by cigamit »

You are only running a single process for cmd.php for a lot of systems. You need to increase the number of processes. Goto Console > Data Collection > Data Collectors and then edit the Main Poller. Set the number of processes to be twice the number of CPUs in the Cacti system and see how it goes. Watch the system load of the Cacti server and adjust the number up or down accordingly.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: It fails when I graph many devices, please help me

Post by cigamit »

Ideally, I would swap to Spine instead of cmd.php, but test with cmd.php first.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: It fails when I graph many devices, please help me

Post by Osiris »

What cacti version?
Before history, there was a paradise, now dust.
david454545
Posts: 13
Joined: Mon Oct 31, 2022 8:51 pm

Re: It fails when I graph many devices, please help me

Post by david454545 »

Osiris wrote: Sun Aug 06, 2023 3:38 am What cacti version?
Version 1.2.10
david454545
Posts: 13
Joined: Mon Oct 31, 2022 8:51 pm

Re: It fails when I graph many devices, please help me

Post by david454545 »

cigamit wrote: Sat Aug 05, 2023 9:27 pm You are only running a single process for cmd.php for a lot of systems. You need to increase the number of processes. Goto Console > Data Collection > Data Collectors and then edit the Main Poller. Set the number of processes to be twice the number of CPUs in the Cacti system and see how it goes. Watch the system load of the Cacti server and adjust the number up or down accordingly.

Change the processors from 1 to 8 in console > Data Collectors

Data Collector Information
Processes: 8
Attach screenshot


I have a question

Console > Configuration > Settings > Poller
Attach screenshot


Please help me by telling me if it is necessary to modify the value of Default Data Collector Processes in the tab Poller
currently Data Collector Processes is 1
Attachments
Data Collector Processes.PNG
Data Collector Processes.PNG (89.1 KiB) Viewed 871 times
Data Collector.PNG
Data Collector.PNG (51.82 KiB) Viewed 871 times
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: It fails when I graph many devices, please help me

Post by cigamit »

The one under Settings is just the default if you create any new remote Pollers, its not going to help with your current poller issue, so you can ignore it.

After changing the Data Collectors processes where I stated, what does your SYSTEM STATS line in the log look like now?
david454545
Posts: 13
Joined: Mon Oct 31, 2022 8:51 pm

Re: It fails when I graph many devices, please help me

Post by david454545 »

cigamit wrote: Sun Aug 06, 2023 4:28 pm The one under Settings is just the default if you create any new remote Pollers, its not going to help with your current poller issue, so you can ignore it.

After changing the Data Collectors processes where I stated, what does your SYSTEM STATS line in the log look like now?
I attach screenshots of the recent log where lines are shown in red

How can I fix this to avoid these errors?
Attachments
4.PNG
4.PNG (114.69 KiB) Viewed 842 times
3.PNG
3.PNG (124.05 KiB) Viewed 842 times
2.PNG
2.PNG (80.12 KiB) Viewed 842 times
1.PNG
1.PNG (137.28 KiB) Viewed 842 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: It fails when I graph many devices, please help me

Post by TheWitness »

You also need to fix your extensions. You have duplicate entries in /etc/php.d/ for snmp.conf
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests