The graphs stop every X amount of time

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Sergiolocuelo
Posts: 15
Joined: Thu Apr 15, 2021 7:45 am

The graphs stop every X amount of time

Post by Sergiolocuelo »

I have a few charts monitoring devices, I have the poller set to 5 minutes, but sometimes every 5 minutes no data is collected.
graphics-stoped-every-5min.png
graphics-stoped-every-5min.png (74.3 KiB) Viewed 2765 times
In the "Grap Utility View" of the graph I have shown the following appears:
Grap-Utility-View.png
Grap-Utility-View.png (102.37 KiB) Viewed 2764 times
I don't really understand it, I have this configuration done in the poller.
poller-config.png
poller-config.png (160.31 KiB) Viewed 2765 times


The cacti crontab is also configured to run every 5 minutes.
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: The graphs stop every X amount of time

Post by macan »

Logs - > filter SYSTEM STATS. You will see lines like this:
2021-06-17 13:11:33 - SYSTEM STATS: Time:93.1284 Method:spine Processes:3 Threads:15 Hosts:344 HostsPerProcess:115 DataSources:16365 RRDsProcessed:7261

Column "Time" says how log poller runs. Have you here time about 300 seconds? If Time is about 300 seconds, it seems that the poller does not have time to process all devices
Let the Cacti grow!
Sergiolocuelo
Posts: 15
Joined: Thu Apr 15, 2021 7:45 am

Re: The graphs stop every X amount of time

Post by Sergiolocuelo »

macan wrote: Thu Jun 17, 2021 6:20 am Logs - > filter SYSTEM STATS. You will see lines like this:
2021-06-17 13:11:33 - SYSTEM STATS: Time:93.1284 Method:spine Processes:3 Threads:15 Hosts:344 HostsPerProcess:115 DataSources:16365 RRDsProcessed:7261

Column "Time" says how log poller runs. Have you here time about 300 seconds? If Time is about 300 seconds, it seems that the poller does not have time to process all devices
This is what the logs show:

Code: Select all

2021-06-17 14:30:04 - SYSTEM DSSTATS STATS: Type:HOURLY, Time:0.1051 RRDUser:0.0000 RRDSystem:0.0000 RRDReal:0.0000
2021-06-17 14:30:04 - SYSTEM DSSTATS STATS: Type:HOURLY, Time:0.0238 RRDUser:0.0000 RRDSystem:0.0000 RRDReal:0.0000
2021-06-17 14:30:03 - SYSTEM STATS: Time:1.3050 Method:cmd.php Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:78 RRDsProcessed:0
2021-06-17 14:30:03 - SYSTEM STATS: Time:1.2990 Method:cmd.php Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:78 RRDsProcessed:9
2021-06-17 14:25:03 - SYSTEM DSSTATS STATS: Type:HOURLY, Time:0.0398 RRDUser:0.0000 RRDSystem:0.0000 RRDReal:0.0000
2021-06-17 14:25:03 - SYSTEM DSSTATS STATS: Type:HOURLY, Time:0.0317 RRDUser:0.0000 RRDSystem:0.0000 RRDReal:0.0000
2021-06-17 14:25:03 - SYSTEM STATS: Time:1.3154 Method:cmd.php Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:78 RRDsProcessed:48
2021-06-17 14:25:03 - SYSTEM STATS: Time:1.3097 Method:cmd.php Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:78 RRDsProcessed:48  
And just now the result of these 5 minutes has not appeared:
no-data.png
no-data.png (78.19 KiB) Viewed 2760 times
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: The graphs stop every X amount of time

Post by cigamit »

Looks like you have 2 cron jobs running. Maybe under different users

2021-06-17 14:25:03 - SYSTEM STATS: Time:1.3154 Method:cmd.php Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:78 RRDsProcessed:48
2021-06-17 14:25:03 - SYSTEM STATS: Time:1.3097 Method:cmd.php Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:78 RRDsProcessed:48
Sergiolocuelo
Posts: 15
Joined: Thu Apr 15, 2021 7:45 am

Re: The graphs stop every X amount of time

Post by Sergiolocuelo »

cigamit wrote: Thu Jun 17, 2021 8:56 am Looks like you have 2 cron jobs running. Maybe under different users

2021-06-17 14:25:03 - SYSTEM STATS: Time:1.3154 Method:cmd.php Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:78 RRDsProcessed:48
2021-06-17 14:25:03 - SYSTEM STATS: Time:1.3097 Method:cmd.php Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:78 RRDsProcessed:48
I have checked the directory "/etc/cron.d" and 2 files related to cacti, one of them is called "cacti" and another one "cacti.bk", this second one I created because I was testing with the original one.

The "cacti.bk" file is also executed even if it has a different name than the original one?

Code: Select all

-rw-r--r--. 1 root root 128 nov 12  2019 0hourly
-rw-r--r--  1 root root  77 jun 16 17:21 cacti
-rw-r--r--  1 root root  77 jun 16 09:19 cacti.bk
-rw-r--r--. 1 root root 108 abr  7 11:06 raid-check
I have to add that at the moment the graphs are printing well, what I have done is to change in the file "php.ini" this variable:

Code: Select all

max_execution_time = 300
And at the moment the graphs are printing well.
What does this variable mean?
Why changing this variable works fine?
Should I change something else?
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: The graphs stop every X amount of time

Post by macan »

The "cacti.bk" file is also executed even if it has a different name than the original one?
I seems that yes. Remove .bk file or comment all lines in file.
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests