Time Graph View shows nothing

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

Moderators: Developers, Moderators

Post Reply
Moltes
Posts: 8
Joined: Thu Jul 05, 2018 2:36 am

Time Graph View shows nothing

Post by Moltes »

Hello,
I've upgraded to 1.1.37.
Since I've upgraded Cacti, when I click on the "Time Graph View" button near the graph, nothing is displayed.
I tested using Firefox, Opera, and Internet Explorer without any difference.

Have you any clue about this issue ?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Time Graph View shows nothing

Post by netniV »

Can you provide a screenshot and the URL being used?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Moltes
Posts: 8
Joined: Thu Jul 05, 2018 2:36 am

Re: Time Graph View shows nothing

Post by Moltes »

Here is the link I click :
2018-07-05_135020.png
2018-07-05_135020.png (22.04 KiB) Viewed 1323 times
Here is the screenshot.
2018-07-05_134717.png
2018-07-05_134717.png (1.86 KiB) Viewed 1323 times
The URL used on the link I click is :
http://<server>/cacti/graph.php?local_graph_id=9332
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Time Graph View shows nothing

Post by netniV »

Are there any logs reporting an error?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Moltes
Posts: 8
Joined: Thu Jul 05, 2018 2:36 am

Re: Time Graph View shows nothing

Post by Moltes »

I have seen any error log.

I checked source code in browser.
I also checked flow trafic using wireshark.

I found this Javascript code :

Code: Select all

<div id='navigation_right' class='cactiGraphContentArea'>
			<div style='position:static;' id='main' role='main'>
	<script type='text/javascript'>
	var cactiVersion='1.1.37';
	var theme='classic';
	var refreshIsLogout=false;
	var refreshPage='/cacti/graph_view.php?action=tree&node=tbranch-239&hgd=&hyper=true&header=false';
	var refreshMSeconds=300000;
	var urlPath='/cacti/';
	var previousPage='';
	var searchFilter='Enter a search term';
	var searchRFilter='Enter a regular expression';
	var noFileSelected='No file selected';
	var timeGraphView='Time Graph View';
	var filterSettingsSaved='Filter Settings Saved';
	var spikeKillResuls='SpikeKill Results';
	var utilityView='Utility View';
	var realtimeClickOn='Click to view just this Graph in Realtime';
	var realtimeClickOff='Click again to take this Graph out of Realtime';
	var treeView='Vue en arbre';
	var listView='Vue en liste';
	var previewView='Vue de prévisualisation';
	var cactiHome='Cacti Home';
	var cactiProjectPage='Cacti Project Page';
	var cactiCommunityForum='Cacti Community Forum';
	var reportABug='Report a bug';
	var aboutCacti='A propos de Cacti';
	var spikeKillResults='SpikeKill Results';
	var showHideFilter='Click to Show/Hide Filter';
	var clearFilterTitle='Clear Current Filter';
	var clipboard='Clipboard';
	var clipboardID='Clipboard ID';
	var clipboardNotAvailable='Copy operation is unavailable at this time';
	var clipboardCopyFailed='Failed to find data to copy!';
	var clipboardUpdated='Clipboard has been updated';
	var clipboardNotUpdated='Sorry, your clipboard could not be updated at this time';
	var defaultSNMPSecurityLevel='authPriv';
	var defaultSNMPAuthProtocol='MD5';
	var defaultSNMPPrivProtocol='DES';
	var passwordPass='Passphrase length meets 8 character minimum';
	var passwordTooShort='Passphrase too short';
	var passwordMatchTooShort='Passphrase matches but too short';
	var passwordNotMatchTooShort='Passphrase too short and not matching';
	var passwordMatch='Passphrases match';
	var passwordNotMatch='Passphrases do not match';
	var errorOnPage='Sorry, we could not process your last action.';
	var errorNumberPrefix='Error:';
	var errorReasonPrefix='Reason:';
	var errorReasonTitle='Action failed';
	var errorReasonUnexpected='The response to the last action was unexpected.';
	var sessionMessageTitle='Operation successful';
	var sessionMessageSave='The Operation was successful.  Details are below.';
	var sessionMessage=[];
	var sessionMessageOk='Ok';
	var sessionMessagePause='Pause';
</script>
			</div>
		</div>
Nothing is shown : no graphs.
Moltes
Posts: 8
Joined: Thu Jul 05, 2018 2:36 am

Re: Time Graph View shows nothing

Post by Moltes »

I've checked Firebug if any Exception appeared :
Firebug screenshot
Firebug screenshot
2018-07-10_135239.png (6.17 KiB) Viewed 1294 times
2018-07-10_135541.png
2018-07-10_135541.png (2.8 KiB) Viewed 1294 times
2018-07-10_135752.png
2018-07-10_135752.png (4.42 KiB) Viewed 1294 times
I checked into Apache's log files. There are only the call to graph_view.php.
I think it's Javascript that doesn't call to get the RRD images.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Time Graph View shows nothing

Post by netniV »

The above exceptions all appear to be either jQuery or some other JavaScript library. Not sure why you would be seeing those kinds of errors. Have you tried with no addon's enabled?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Moltes
Posts: 8
Joined: Thu Jul 05, 2018 2:36 am

Re: Time Graph View shows nothing

Post by Moltes »

I tried with Internet Explorer (no add-on) and also with Opera (fresh install). Both of them don't show the graph.
Moltes
Posts: 8
Joined: Thu Jul 05, 2018 2:36 am

Re: Time Graph View shows nothing

Post by Moltes »

I tested an other function : "Graph Details, Zooming and Debugging utilities" options.
When I click, I've a php error message :

Code: Select all

Notice: Undefined offset: 0 in /usr/share/cacti/graph.php on line 266

Notice: Undefined index: steps in /usr/share/cacti/graph.php on line 268

Notice: Undefined index: step in /usr/share/cacti/graph.php on line 268

Notice: Undefined index: rows in /usr/share/cacti/graph.php on line 268

Notice: Undefined index: steps in /usr/share/cacti/graph.php on line 283
Is this problem can explain the problem I mentioned first ?

I already reinstalled cacti using yum on CENTOS 7. There was no change.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Time Graph View shows nothing

Post by netniV »

Have you per chance updated to php 7.2? If so, there are known compatability issues.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Moltes
Posts: 8
Joined: Thu Jul 05, 2018 2:36 am

Re: Time Graph View shows nothing

Post by Moltes »

PHP is still in 5.4.16

I've found the problem.
In fact, the person upgraded Cacti before me hasn't executed the upgrade script of version 1.1.17.
This script adds a column in the data_source_profiles_rra table.
I corrected the database.
Since, the buttons are functionning very well.

It can be useful to detect that the mysql queries return error. Is there a log file containing these messages ?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Time Graph View shows nothing

Post by netniV »

Any MySQL failure is normally recorded into the cacti.log file (which is in the log folder). This is available via the GUI using the Logs tab at the top.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Moltes
Posts: 8
Joined: Thu Jul 05, 2018 2:36 am

Re: Time Graph View shows nothing [RESOLVED]

Post by Moltes »

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests