All devices graph empty for a certain period of time

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

Moderators: Developers, Moderators

krishnar
Posts: 8
Joined: Sun Mar 22, 2020 2:25 pm

All devices graph empty for a certain period of time

Post by krishnar »

Hello All,

I am having some issues with Cacti graphs. The graphs goes empty for all the devices for some period of time. I have only around 10 devices being monitored. Also this instance of Cacti is running in a Docker container. Anyone know how to fix this? This happens very randomly.

Cacti Graph.jpg
Cacti Graph.jpg (567.95 KiB) Viewed 4170 times
Log:

Code: Select all

03/22/2020 11:31:01 - SYSTEM STATS: Time:0.2643 Method:cmd.php Processes:1 Threads:0 Hosts:14 HostsPerProcess:14 DataSources:0 RRDsProcessed:0
03/22/2020 11:30:03 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceFailedPoll (CACTI-MIB), severity: medium
03/22/2020 11:30:03 - SYSTEM STATS: Time:2.2233 Method:cmd.php Processes:1 Threads:0 Hosts:14 HostsPerProcess:14 DataSources:0 RRDsProcessed:0
03/22/2020 11:29:01 - SYSTEM STATS: Time:0.2227 Method:cmd.php Processes:1 Threads:0 Hosts:14 HostsPerProcess:14 DataSources:0 RRDsProcessed:0
03/22/2020 11:28:02 - SYSTEM STATS: Time:1.2395 Method:cmd.php Processes:1 Threads:0 Hosts:14 HostsPerProcess:14 DataSources:0 RRDsProcessed:0
03/22/2020 11:27:01 - SYSTEM STATS: Time:0.2152 Method:cmd.php Processes:1 Threads:0 Hosts:14 HostsPerProcess:14 DataSources:0 RRDsProcessed:0
03/22/2020 11:27:01 - SYSTEM STATS: Time:0.2223 Method:cmd.php Processes:1 Threads:0 Hosts:14 HostsPerProcess:14 DataSources:0 RRDsProcessed:0
03/22/2020 11:26:03 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceFailedPoll (CACTI-MIB), severity: medium
03/22/2020 11:26:03 - SYSTEM STATS: Time:2.2588 Method:cmd.php Processes:1 Threads:0 Hosts:14 HostsPerProcess:14 DataSources:0 RRDsProcessed:0
03/22/2020 11:25:01 - SYSTEM STATS: Time:0.2177 Method:cmd.php Processes:1 Threads:0 Hosts:14 HostsPerProcess:14 DataSources:0 RRDsProcessed:0
03/22/2020 11:24:01 - SYSTEM STATS: Time:0.2265 Method:cmd.php Processes:1 Threads:0 Hosts:14 HostsPerProcess:14 DataSources:0 RRDsProcessed:0
03/22/2020 11:23:03 - SYSTEM STATS: Time:2.2169 Method:cmd.php Processes:1 Threads:0 Hosts:14 HostsPerProcess:14 DataSources:0 RRDsProcessed:0
03/22/2020 11:23:03 - SYSTEM STATS: Time:2.2741 Method:cmd.php Processes:1 Threads:0 Hosts:14 HostsPerProcess:14 DataSources:0 RRDsProcessed:159
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: All devices graph empty for a certain period of time

Post by Osiris »

What is your poller interval? What is your cron interval? What is the sampling rate for these graphs? What version of Cacti?
Before history, there was a paradise, now dust.
krishnar
Posts: 8
Joined: Sun Mar 22, 2020 2:25 pm

Re: All devices graph empty for a certain period of time

Post by krishnar »

I set the poller and cron interval as 1 minute. Cacti version is 1.2.10. Where do I check the sampling rate for graph?
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: All devices graph empty for a certain period of time

Post by Osiris »

Under Data Sources.
Before history, there was a paradise, now dust.
JeevesPreston
Posts: 2
Joined: Tue Mar 31, 2015 12:21 am

Re: All devices graph empty for a certain period of time

Post by JeevesPreston »

I have this same issue. I can't find any menu/screen selection under Templates/Data Sources or Templates/Graphs to change the graph interval. From the log, though, I can clearly see that my Cron and Poller interval is at 1 minute...

Thanks for the assistance...
J
krishnar
Posts: 8
Joined: Sun Mar 22, 2020 2:25 pm

Re: All devices graph empty for a certain period of time

Post by krishnar »

I don't see that option either. For, graphs sometimes go empty for as long as 20-40 minutes and then start showing data again. :x
Dummy
Posts: 24
Joined: Wed Jan 03, 2018 4:35 pm

Re: All devices graph empty for a certain period of time

Post by Dummy »

What about an PING which is running continously to check if the IP-connection between Cacti and the "External World" is available without interruption?
Maybe it's not an issue of Cacti / Poller :-)
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: All devices graph empty for a certain period of time

Post by Osiris »

There is a bug in boost in the latest cacti. Download poller_boost.php and lib/boost.php from githubs 1.2.x branch.
Before history, there was a paradise, now dust.
Ben94x
Posts: 13
Joined: Wed Mar 18, 2020 2:08 pm

Re: All devices graph empty for a certain period of time

Post by Ben94x »

Osiris wrote: Thu Mar 26, 2020 6:11 am There is a bug in boost in the latest cacti. Download poller_boost.php and lib/boost.php from githubs 1.2.x branch.
Hi Osiris,

I have Cacti v.1.2.8

I tried that, so I switched the old poller_boost.php (in /var/www/html/cacti) and lib/boost.php (in /var/www/html/cacti/lib) for the new one on github 1.2.x branch last day and it still not working tomorrow. Do you have another alternative that I can do ?

Here are some of my graphs
Cacti_graph_hole.png
Cacti_graph_hole.png (246.57 KiB) Viewed 4128 times
Thanks
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: All devices graph empty for a certain period of time

Post by TheWitness »

If you are using spine, you might consider downloading the 1.2.x branch as well.
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?
Ben94x
Posts: 13
Joined: Wed Mar 18, 2020 2:08 pm

Re: All devices graph empty for a certain period of time

Post by Ben94x »

TheWitness wrote: Tue Mar 31, 2020 7:28 pm If you are using spine, you might consider downloading the 1.2.x branch as well.
Yeah I'm using spine with v1.2.8.

So to be sure, I should replace all my cacti files (in var/www/html/cacti) with your current github branch 1.2.x ? (https://github.com/Cacti/cacti/tree/1.2.x).

I will not have problems and I shouldn't lose my current data?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: All devices graph empty for a certain period of time

Post by TheWitness »

If not using debian, the upgrade, from my perspective is pretty easy with no loss of data:

As root:

cd /var/www/html
git clone -b 1.2.x https://github.com/Cacti/cacti/cacti.git cacti-develop
/bin/cp -frp cacti-develop/* cacti
chown -R apache:apache cacti

Then, refresh your browser to go through the update if you are using the Debian packaging, it's a bit more complicated.
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?
Ben94x
Posts: 13
Joined: Wed Mar 18, 2020 2:08 pm

Re: All devices graph empty for a certain period of time

Post by Ben94x »

TheWitness wrote: Wed Apr 01, 2020 8:52 pm If not using debian, the upgrade, from my perspective is pretty easy with no loss of data:

As root:

cd /var/www/html
git clone -b 1.2.x https://github.com/Cacti/cacti/cacti.git cacti-develop
/bin/cp -frp cacti-develop/* cacti
chown -R apache:apache cacti

Then, refresh your browser to go through the update if you are using the Debian packaging, it's a bit more complicated.
Thank you TheWitness, it worked ! You just give the wrong git clone syntax (had an extra /clone in your path), but after theses commands it worked, just needed to shutdown my Cacti server and restart it with 4 cores instead of 2.

I have better graphs but it's not perfect yet.
As you can see here:
CactiGraph_v1.2.11.png
CactiGraph_v1.2.11.png (117.69 KiB) Viewed 4066 times
Do you know what is the best config in Cacti for my poller ? I put 500 max_connections in my MARIADB.

Like for theses variables :

Data collectors:
Processes:
Threads:
PHP Scripts:

Connections = data collectors * processes * (threads + script servers)

I don't really know what to put to get the best performances.

Thanks,
Ben
Last edited by Ben94x on Mon Apr 06, 2020 2:46 pm, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: All devices graph empty for a certain period of time

Post by TheWitness »

1.2.11 is released. Connection counts are important. There is a feature request out there for that one for a forthcoming release.
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?
Ben94x
Posts: 13
Joined: Wed Mar 18, 2020 2:08 pm

Re: All devices graph empty for a certain period of time

Post by Ben94x »

TheWitness wrote: Mon Apr 06, 2020 11:21 am 1.2.11 is released. Connection counts are important. There is a feature request out there for that one for a forthcoming release.
Alright, but I still have trouble with holes in my graphs...
Cacti2.png
Cacti2.png (109.29 KiB) Viewed 4069 times
Is it due to my bad poller settings ?
poller1.png
poller1.png (27.17 KiB) Viewed 4069 times
poller2.png
poller2.png (62.86 KiB) Viewed 4069 times
poller3.png
poller3.png (63.97 KiB) Viewed 4069 times
poller4.png
poller4.png (50.82 KiB) Viewed 4069 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests