Not able to export to CSV

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

Moderators: Developers, Moderators

juangose
Posts: 12
Joined: Thu Jul 07, 2005 2:15 pm

Post by juangose »

I will try to use the last version and then I let you know if it is working.

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

Post by TheWitness »

Yes, if you do not use a preset, things are broken in the current 0.8.7d. We are still preparing a patch for this. Sorry for the delay.

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?
juan50robinson
Posts: 1
Joined: Mon Oct 10, 2005 1:43 pm

Post by juan50robinson »

I used the rrd.php and graph_xport.php of the SVN Browser, but I still have the problem.

Thanks The Witness, I will wait by the patch.

Thanks a lot to all developers.

Att. Juangose
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

I think that rrd version had a bug and returned mal-formed XML data. I alreay filed a bug for that which got solved:

http://bugs.cacti.net/view.php?id=1436

Btw. TheWitness, I like your last comments on that bug ... :-)
Last edited by phalek on Thu Jun 25, 2009 9:06 am, edited 1 time in total.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

So, you are confirming that the patched lib/xml.php did the trick?

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
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

argh, I just downgraded to 1.2.30-1 on Centos, which produces the following XML output:

Code: Select all

rrdtool xport --start=1237803382 \
> --end=1237889782 \
> --maxrows=10000 \
> DEF:a="/var/www/html/cacti-0.8.7d/rra/r..._5min_cpu_40.rrd":5min_cpu:AVERAGE \
> XPORT:a:"CPU Usage" \
>
CPU Usage:86400
step: 86400
<?xml version="1.0" encoding="ISO-8859-1"?>

<xport>
  <meta>
    <start>1237852800</start>
    <step>86400</step>
    <end>1237852800</end>
    <rows>1</rows>
    <columns>1</columns>
    <legend>
      <entry>CPU Usage</entry>
    </legend>
  </meta>
  <data>
    <row><t>1237852800</t><v>1.1333333333e+00</v></row>
  </data>
</xport>
Update:

Having used the svn xml.php lib, the code included there solves the issue more elegant than I did.

THe Bug is solved.


I can confirm with using Revision=5115 of the xml.php file from svn and 1.2.30-1 of rrdtool in CentOS.


I need to grab another coffee to get my mind sorted out ...
Last edited by phalek on Thu Jun 25, 2009 9:45 am, edited 2 times in total.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

please ignore this
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You mean your ramblings right? :)

T
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
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

yeah ... ;-)

So the code in the new xml.php ( more professional than whatI did :-) from svn fixes the problem.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
juangose
Posts: 12
Joined: Thu Jul 07, 2005 2:15 pm

Post by juangose »

Thanks

The xml.php resolved my problem.

Thanks


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

Post by TheWitness »

These fixes were all merged into the 0.8.7e release sent out yesterday.

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?
trinhhoang
Posts: 7
Joined: Thu Jun 18, 2009 2:09 am

Post by trinhhoang »

BSOD2600 wrote:php_error log enabled revealed the following, which is the portion of the file which deals with spitting out the text in the csv file..

Code: Select all

[19-Jun-2009 11:50:47] PHP Notice:  Undefined index:  start in C:\Inetpub\wwwroot\cacti\graph_xport.php on line 101
[19-Jun-2009 11:50:47] PHP Notice:  Undefined index:  end in C:\Inetpub\wwwroot\cacti\graph_xport.php on line 102
[19-Jun-2009 11:50:47] PHP Notice:  Undefined index:  step in C:\Inetpub\wwwroot\cacti\graph_xport.php on line 103
[19-Jun-2009 11:50:47] PHP Notice:  Undefined index:  rows in C:\Inetpub\wwwroot\cacti\graph_xport.php on line 104
[19-Jun-2009 11:50:47] PHP Notice:  Undefined index:  columns in C:\Inetpub\wwwroot\cacti\graph_xport.php on line 122
[19-Jun-2009 11:50:47] PHP Notice:  Undefined index:  data in C:\Inetpub\wwwroot\cacti\graph_xport.php on line 128
Please! How to solve it?
diddi
Posts: 15
Joined: Fri May 08, 2009 5:15 am
Location: Regensburg/Germany

Post by diddi »

TheWitness wrote:These fixes were all merged into the 0.8.7e release sent out yesterday.
Thx, works for me now.

Christian
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

trinhhoang wrote:Please! How to solve it?
As TheWitness already stated, upgrade to cacti 0.8.7e.
trinhhoang
Posts: 7
Joined: Thu Jun 18, 2009 2:09 am

Post by trinhhoang »

BSOD2600 wrote:
trinhhoang wrote:Please! How to solve it?
As TheWitness already stated, upgrade to cacti 0.8.7e.
Thanks! I upgrated my server to cacti 0.8.7e, so that it works.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest