Cacti Graph Brakes issue.

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

Moderators: Developers, Moderators

tumnahi232
Posts: 2
Joined: Sun Nov 20, 2022 1:36 am

Re: Cacti Graph Brakes issue.

Post by tumnahi232 »

so should I be checking my cpu? Or would it be something like adjusting the settings on the poller page? I did check my cpu earlier and was typically under 15%, never spiking anywhere near max. I did already have several hundred hosts before the problem started.
abhisekp34
Posts: 43
Joined: Mon Aug 29, 2022 1:47 am

Re: Cacti Graph Brakes issue.

Post by abhisekp34 »

Any Suggestion ?

Since This Gaps in Graph is happening for mostly device !
abhisekp34
Posts: 43
Joined: Mon Aug 29, 2022 1:47 am

Re: Cacti Graph Brakes issue.

Post by abhisekp34 »

Getting below ERROR on Cacti.log.

Do they Responsible for Cuts in Graphs ? if so, any solution do you have ?

2022-11-21 12:26:51 - ERROR PHP NOTICE: Undefined offset: 28801 in file: /var/www/html/cacti-1.2.18/lib/graph_variables.php on line: 125
2022-11-21 12:26:51 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[159]:rrdtool_function_graph(), /lib/rrd.php[1589]:variable_nth_percentile(), /lib/graph_variables.php[473]:nth_percentile(), /lib/graph_variables.php[33]:rrdtool_function_stats(), /lib/graph_variables.php[125]:CactiErrorHandler())
2022-11-21 12:26:51 - ERROR PHP NOTICE: Undefined offset: 28801 in file: /var/www/html/cacti-1.2.18/lib/graph_variables.php on line: 100
2022-11-21 12:26:51 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[222]:rrdtool_function_graph(), /lib/rrd.php[1589]:variable_nth_percentile(), /lib/graph_variables.php[473]:nth_percentile(), /lib/graph_variables.php[33]:rrdtool_function_stats(), /lib/graph_variables.php[100]:CactiErrorHandler())
2022-11-21 12:26:51 - ERROR PHP NOTICE: Undefined offset: 28801 in file: /var/www/html/cacti-1.2.18/lib/graph_variables.php on line: 125
2022-11-21 12:26:51 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[222]:rrdtool_function_graph(), /lib/rrd.php[1589]:variable_nth_percentile(), /lib/graph_variables.php[473]:nth_percentile(), /lib/graph_variables.php[33]:rrdtool_function_stats(), /lib/graph_variables.php[125]:CactiErrorHandler())
2022-11-21 12:26:51 - ERROR PHP NOTICE: Undefined offset: 28801 in file: /var/www/html/cacti-1.2.18/lib/graph_variables.php on line: 100
2022-11-21 12:26:51 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[222]:rrdtool_function_graph(), /lib/rrd.php[1589]:variable_nth_percentile(), /lib/graph_variables.php[473]:nth_percentile(), /lib/graph_variables.php[33]:rrdtool_function_stats(), /lib/graph_variables.php[100]:CactiErrorHandler())
2022-11-21 12:26:51 - ERROR PHP NOTICE: Undefined offset: 28801 in file: /var/www/html/cacti-1.2.18/lib/graph_variables.php on line: 125
2022-11-21 12:26:51 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[222]:rrdtool_function_graph(), /lib/rrd.php[1589]:variable_nth_percentile(), /lib/graph_variables.php[473]:nth_percentile(), /lib/graph_variables.php[33]:rrdtool_function_stats(), /lib/graph_variables.php[125]:CactiErrorHandler())
2022-11-21 12:27:02 - SPINE: Poller[1] PID[31548] ERROR: Spine Timed Out While Processing Available Thread Lock
2022-11-21 12:27:03 - SPINE: Poller[1] PID[32196] ERROR: Spine Timed Out While Processing Available Thread Lock
2022-11-21 12:28:03 - SPINE: Poller[1] PID[15058] ERROR: Spine Timed Out While Processing Available Thread Lock
2022-11-21 12:29:03 - SPINE: Poller[1] PID[20258] ERROR: Spine Timed Out While Processing Available Thread Lock
2022-11-21 12:30:03 - SPINE: Poller[1] PID[25394] ERROR: Spine Timed Out While Processing Available Thread Lock
2022-11-21 12:30:03 - SPINE: Poller[1] PID[26033] ERROR: Spine Timed Out While Processing Available Thread Lock
ERROR_Cacti.txt
(177.9 KiB) Downloaded 11 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Cacti Graph Brakes issue.

Post by TheWitness »

Helps where scalability is important, or you have an under powered system from a Disk I/O perspective. You can read all about it in the Cacti documentation.
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?
abhisekp34
Posts: 43
Joined: Mon Aug 29, 2022 1:47 am

Re: Cacti Graph Brakes issue.

Post by abhisekp34 »

Can you Please provide the URL for Documents ?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Cacti Graph Brakes issue.

Post by TheWitness »

update lib/graph_variables.php from the 1.2.x branch.
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?
abhisekp34
Posts: 43
Joined: Mon Aug 29, 2022 1:47 am

Re: Cacti Graph Brakes issue.

Post by abhisekp34 »

We are already running on version 1.2.18.

root@grwcacticpe01 # ls -lrt|grep graph_variables
-rw-rw-r-- 1 apache apache 25306 Jul 4 2021 graph_variables.php
root@grwcacticpe01 # pwd
/var/www/html/cacti-1.2.18/lib
root@grwcacticpe01 #


So where is the branch 1.2.x , so that i can update ?
abhisekp34
Posts: 43
Joined: Mon Aug 29, 2022 1:47 am

Re: Cacti Graph Brakes issue.

Post by abhisekp34 »

updated graph_variable.php from below.

we will tell you the result.
Update_graph_variable.png
Update_graph_variable.png (29.53 KiB) Viewed 466 times
abhisekp34
Posts: 43
Joined: Mon Aug 29, 2022 1:47 am

Re: Cacti Graph Brakes issue.

Post by abhisekp34 »

after Update graph_variable as suggested, below came .

2022-11-24 14:39:26 - ERROR PHP NOTICE: Undefined index: direction in file: /var/www/html/cacti-1.2.18/lib/data_query.php on line: 918
2022-11-24 14:39:26 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[918]:CactiErrorHandler())
/lib/data_query.php[1112]:CactiErrorHandler())
2022-11-24 14:39:26 - ERROR PHP NOTICE: Undefined index: direction in file: /var/www/html/cacti-1.2.18/lib/data_query.php on line: 1112
2022-11-24 14:39:26 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[1112]:CactiErrorHandler())
2022-11-24 14:39:26 - ERROR PHP NOTICE: Undefined index: direction in file: /var/www/html/cacti-1.2.18/lib/data_query.php on line: 1955
2022-11-24 14:39:26 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[144]:update_data_query_sort_cache(), /lib/data_query.php[2074]:get_ordered_index_type_list(), /lib/data_query.php[1955]:CactiErrorHandler())
2022-11-24 14:39:26 - ERROR PHP NOTICE: Undefined index: direction in file: /var/www/html/cacti-1.2.18/lib/data_query.php on line: 1955
2022-11-24 14:39:26 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[144]:update_data_query_sort_cache(), /lib/data_query.php[2074]:get_ordered_index_type_list(), /lib/data_query.php[1955]:CactiErrorHandler())


2022-11-24 15:41:56 - ERROR PHP NOTICE: Undefined offset: 1 in file: /var/www/html/cacti-1.2.18/lib/graph_variables.php on line: 301
2022-11-24 15:41:56 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[159]:rrdtool_function_graph(), /lib/rrd.php[1589]:variable_nth_percentile(), /lib/graph_variables.php[473]:nth_percentile(), /lib/graph_variables.php[33]:rrdtool_function_stats(), /lib/graph_variables.php[160]:nth_percentile_fetch_statistics(), /lib/graph_variables.php[235]:cacti_stats_calc(), /lib/graph_variables.php[301]:CactiErrorHandler())
2022-11-24 15:41:56 - ERROR PHP NOTICE: Undefined offset: 1 in file: /var/www/html/cacti-1.2.18/lib/graph_variables.php on line: 302
2022-11-24 15:41:56 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[159]:rrdtool_function_graph(), /lib/rrd.php[1589]:variable_nth_percentile(), /lib/graph_variables.php[473]:nth_percentile(), /lib/graph_variables.php[33]:rrdtool_function_stats(), /lib/graph_variables.php[160]:nth_percentile_fetch_statistics(), /lib/graph_variables.php[235]:cacti_stats_calc(), /lib/graph_variables.php[302]:CactiErrorHandler())
2022-11-24 15:41:56 - ERROR PHP NOTICE: Undefined offset: 1 in file: /var/www/html/cacti-1.2.18/lib/graph_variables.php on line: 303
2022-11-24 15:41:56 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[159]:rrdtool_function_graph(), /lib/rrd.php[1589]:variable_nth_percentile(), /lib/graph_variables.php[473]:nth_percentile(), /lib/graph_variables.php[33]:rrdtool_function_stats(), /lib/graph_variables.php[160]:nth_percentile_fetch_statistics(), /lib/graph_variables.php[235]:cacti_stats_calc(), /lib/graph_variables.php[303]:CactiErrorHandler())
2022-11-24 15:41:56 - ERROR PHP NOTICE: Undefined offset: 1 in file: /var/www/html/cacti-1.2.18/lib/graph_variables.php on line: 304
2022-11-24 15:41:56 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[159]:rrdtool_function_graph(), /lib/rrd.php[1589]:variable_nth_percentile(), /lib/graph_variables.php[473]:nth_percentile(), /lib/graph_variables.php[33]:rrdtool_function_stats(), /lib/graph_variables.php[160]:nth_percentile_fetch_statistics(), /lib/graph_variables.php[235]:cacti_stats_calc(), /lib/graph_variables.php[304]:CactiErrorHandler())
2022-11-24 15:41:56 - ERROR PHP NOTICE: Undefined offset: 1 in file: /var/www/html/cacti-1.2.18/lib/graph_variables.php on line: 305
2022-11-24 15:41:56 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[159]:rrdtool_function_graph(), /lib/rrd.php[1589]:variable_nth_percentile(), /lib/graph_variables.php[473]:nth_percentile(), /lib/graph_variables.php[33]:rrdtool_function_stats(), /lib/graph_variables.php[160]:nth_percentile_fetch_statistics(), /lib/graph_variables.php[235]:cacti_stats_calc(), /lib/graph_variables.php[305]:CactiErrorHandler())
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Cacti Graph Brakes issue.

Post by TheWitness »

Since you are just learning, can you update to the 1.2.x branch? I'm noting the last error, and that looks like a corner case, though I'm taking notice. Updating to the 1.2.x branch is pretty easy as long as you have not installed Cacti from a distribution.

Code: Select all

cd /var/www/html
git clone -b 1.2.x https://github.com/cacti/cacti.git cacti-develop
/bin/cp -frp cacti-develop/* cacti
chown -R apache:apache cacti
The refresh your browser using F5, the upgrade will commence.
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
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Cacti Graph Brakes issue.

Post by TheWitness »

These warning are fixed in the 1.2.x branch now. The "direction" undefined index was fixed after the 1.2.18 release already.
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?
abhisekp34
Posts: 43
Joined: Mon Aug 29, 2022 1:47 am

Re: Cacti Graph Brakes issue.

Post by abhisekp34 »

root@grwcacticpe01 # pwd
/var/www/html
root@grwcacticpe01 # git clone -b 1.2.x https://github.com/cacti/cacti.git cacti-develop
-bash: git: command not found
root@grwcacticpe01 #


Command is not working !
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti Graph Brakes issue.

Post by Osiris »

Please install git.
Before history, there was a paradise, now dust.
abhisekp34
Posts: 43
Joined: Mon Aug 29, 2022 1:47 am

Re: Cacti Graph Brakes issue.

Post by abhisekp34 »

Getting below -nan values in rrd files.

Any Reason ?

As there is no ERRORs for this Device. Device is Up. Even Manual SNMP Connection is working. I can see the data by connecting SNMP with Specific OIDs

root@grwcacticpe01 # rrdtool fetch adecco01-41lge-ci2_5min_cpu_27386.rrd AVERAGE |tail
1669879500: -nan
1669879800: -nan
1669880100: -nan
1669880400: -nan
1669880700: -nan
1669881000: -nan
1669881300: -nan
1669881600: -nan
1669881900: -nan
1669882200: -nan
abhisekp34
Posts: 43
Joined: Mon Aug 29, 2022 1:47 am

Re: Cacti Graph Brakes issue.

Post by abhisekp34 »

Any Suggestion for above Issue in RRD file ?
Locked

Who is online

Users browsing this forum: No registered users and 2 guests