No Graphs..

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: No Graphs..

Post by TheWitness »

What version of PHP?
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?
thechancer
Posts: 19
Joined: Wed Oct 26, 2011 8:02 am

Re: No Graphs..

Post by thechancer »

5.2.17
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: No Graphs..

Post by TheWitness »

Weird, use BSOD2600's installer.
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?
thechancer
Posts: 19
Joined: Wed Oct 26, 2011 8:02 am

Re: No Graphs..

Post by thechancer »

I am a little reluctant to do it on that box, as BSOD2600 said that it should be used where there isn't anything installed, and my current setup mirrors that of a live client for MySQL and PHP versions. I'll grab it and see if there are any changes in the config when installed on a VM. Although I may keep going for a couple of weeks as by the looks of it a new version is coming, and it seems like the current one was made back in 2010 - so could be a little out of date for PHP and MySQL versions.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: No Graphs..

Post by BSOD2600 »

Do the templates which come stock with cacti (interface, disk, cpu, etc) work as expected? It would appear the custom template you're using hasn't been properly configured.

Yes, the php/mysql versions are old in the current installer. Although those aren't hard to update after the installer has done its thing. A new version will be released shortly after the next Cacti version.
thechancer
Posts: 19
Joined: Wed Oct 26, 2011 8:02 am

Re: No Graphs..

Post by thechancer »

I've setup the graphs for a Win2k3 box for network, CPU and disk, but still no graphs. It is strange as it seems like the PNG is created but it is truncated or corrupted.

I also today tried to export as csv - and ended up with this.

Code: Select all

"Title:",""Mainfs1 - Used Space - G: Label:Data  ""
"Vertical Label:",""bytes""
<br />
<b>Notice</b>:  Undefined index:  start in <b>G:\webroot\cacti\graph_xport.php</b> on line <b>104</b><br />
"Start Date:","1970-01-01 10:00:00"
<br />
<b>Notice</b>:  Undefined index:  end in <b>G:\webroot\cacti\graph_xport.php</b> on line <b>105</b><br />
"End Date:","1970-01-01 10:00:00"
<br />
<b>Notice</b>:  Undefined index:  step in <b>G:\webroot\cacti\graph_xport.php</b> on line <b>106</b><br />
"Step:",""
<br />
<b>Notice</b>:  Undefined index:  rows in <b>G:\webroot\cacti\graph_xport.php</b> on line <b>107</b><br />
"Total Rows:",""
"Graph ID:","13"
"Host ID:","2"
""
<br />
<b>Notice</b>:  Undefined index:  columns in <b>G:\webroot\cacti\graph_xport.php</b> on line <b>125</b><br />
"Date"
<br />
<b>Notice</b>:  Undefined index:  data in <b>G:\webroot\cacti\graph_xport.php</b> on line <b>131</b><br />
I'll have to look at this one later, out of time now.. but if you have any ideas...

If that is what is coming out on the csv - is it likely toalso be happening on the graph itself, even if the rrdtool comand is right when echo'ing out from the code as previous post ?
thechancer
Posts: 19
Joined: Wed Oct 26, 2011 8:02 am

Re: No Graphs..

Post by thechancer »

I've setup the windows installer in a VM - all works as it should, graphs are starting to appear for both the Cisco templates nd local PC (disk, network etc).

I've compared all php.ini settings and copied a few over... changed the single folder with all the .exe's in for rrdtool, spine etc, into separate dirs and setup the net-smtp as per the windows installer - no change. Also compared the httpd.conf - they are practically identical - apart from mine being a slightly later version 2.2.21 vs 2.2.16

The security on each of the file locations (c:\cacti (holds net-snmp, rrdtool, spine),c:\usr,g:\webroot) have all been given full access by everyone group (not ideal, but will be tweaked when working) - but still no graphs...

I've also compared every setting I can see between the two, but still no graphs - yet I can create them with the rrdtool command line from cacti... is it odd - or is it just me ?

I know I can just reinstall the windows installer and be done - but I'm too intrigued now as to why it won't work.. :)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: No Graphs..

Post by TheWitness »

I appreciate you posting, as you've uncovered a minor bug. In most 'production' environment's there is a PHP settings called 'display_errors' that is always 'Off'. In your environment, it is set to 'On'. Please change it to 'Off' and then restart Apache.

TheWitness
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: No Graphs..

Post by TheWitness »

On second review, this can not be the 'H' version in that the line numbers are all wrong in that example. Something is completely hosed in your install.
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?
thechancer
Posts: 19
Joined: Wed Oct 26, 2011 8:02 am

Re: No Graphs..

Post by thechancer »

I'll agree - display errors is on and the csv fails - off and it works - however in neither case the graphs show.

I'll look to ditch the whole install, rrd's, db etc tomorrow and redownload and install from scratch.. I'll let you know how I get on.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: No Graphs..

Post by TheWitness »

Again, you said this was 'H', but it is not. So, you need to start over.
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?
thechancer
Posts: 19
Joined: Wed Oct 26, 2011 8:02 am

Re: No Graphs..

Post by thechancer »

Has taken be a while for this one...

Steps taken :
Redownload cacti-spine-0.8.7h-cygwin1.7.9.zip
And RRDtool 1.2.30, cacti 0.8.7h, netsnmp 5.6.1.1-1

Remade new php.ini from php.ini-recommend.

Dropped cacti db and remade as per instructions from http://www.cacti.net/downloads/docs/htm ... ndows.html

All looks good to this point, can do an snmpwalk through from command line.

Started Cacti, set password, checked directories all OK, removed 1st device, setup local PC, got the SNMP headers and queried for disks, processor and network. Went to view and nothing - then remembered to set the scheduled task and run the poller...

So - after the rrd's were created and all good, then.... I GOT GRAPHS :)

One interesting thing for you though Witness... before i got graphs, and even now I have display_errors=on. However this is what I got before I ran the poller..

Code: Select all

"Title:",""MAINFS1 - Used Space - E: Label:TV Sho""
"Vertical Label:",""bytes""
<br />
<b>Notice</b>:  Undefined index:  start in <b>G:\webroot\cacti\graph_xport.php</b> on line <b>104</b><br />
"Start Date:","1970-01-01 10:00:00"
<br />
<b>Notice</b>:  Undefined index:  end in <b>G:\webroot\cacti\graph_xport.php</b> on line <b>105</b><br />
"End Date:","1970-01-01 10:00:00"
<br />
<b>Notice</b>:  Undefined index:  step in <b>G:\webroot\cacti\graph_xport.php</b> on line <b>106</b><br />
"Step:",""
<br />
<b>Notice</b>:  Undefined index:  rows in <b>G:\webroot\cacti\graph_xport.php</b> on line <b>107</b><br />
"Total Rows:",""
"Graph ID:","5"
"Host ID:","2"
""
<br />
<b>Notice</b>:  Undefined index:  columns in <b>G:\webroot\cacti\graph_xport.php</b> on line <b>125</b><br />
"Date"
<br />
<b>Notice</b>:  Undefined index:  data in <b>G:\webroot\cacti\graph_xport.php</b> on line <b>131</b><br />
which are the same line numbers as before... even after a fresh install... However now I have the graph, it is all working as it should. I must have had something set somewhere that wasn't quite right with the PHP setup or enviro vars...

Thanks for your help and patience - much appreciated..
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: No Graphs..

Post by TheWitness »

I see, says the blind man. Well, I know the vector now, but I'm not sure I'm motivated enough to fix it. ;)
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 1 guest