[SOLVED] Validation Error.

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

Moderators: Developers, Moderators

Post Reply
User avatar
samapi123
Cacti User
Posts: 57
Joined: Wed Mar 12, 2008 10:29 am
Location: Honduras
Contact:

[SOLVED] Validation Error.

Post by samapi123 »

Hello Again I have a new problem when I am making a zoom of a graph and I what to make a csv export I can´t make it because and Validation error appears.

What can I do?

Thanks for your help.
Thanks for your Help
:D :roll: :oops:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Post the error text and/or screenshot (NOT as a word document!) of the problem.
User avatar
samapi123
Cacti User
Posts: 57
Joined: Wed Mar 12, 2008 10:29 am
Location: Honduras
Contact:

Post by samapi123 »

First I make the zoom I what to preview then when I have the wanted zoom (screenshot picture) I try to click on csv export and this appears(screenshot-next).
Attachments
screenshot.JPG
screenshot.JPG (133.62 KiB) Viewed 8921 times
screenshot-next.JPG
screenshot-next.JPG (31.47 KiB) Viewed 8923 times
Thanks for your Help
:D :roll: :oops:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Weird.

Looking at the address in the second screenshot, it's obviously wrong. Not sure if it's a cacti or webserver problem. CSV export works fine on my standard 0.8.7b install, so not an inherent bug.

On that same graph, click the wrench icon and paste the contents of it here.

Does csv export work for any graph?
User avatar
samapi123
Cacti User
Posts: 57
Joined: Wed Mar 12, 2008 10:29 am
Location: Honduras
Contact:

Post by samapi123 »

The csv export works in the preview but not when you try to make a zoom.

I click on the wrench and I got this:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=1206652177 \
--end=1206738277 \
--title="MPBN SGSN - TGUSR03 - Traffic - ge-0/3/0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2008/03/27 16\:09\:37 To 2008/03/28 16\:04\:37\c" \
COMMENT:" \n" \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="C\:/Inetpub/wwwroot/cacti/rra/prueba_traffic_in_110.rrd":traffic_in:AVERAGE \
DEF:b="C\:/Inetpub/wwwroot/cacti/rra/prueba_traffic_in_110.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
Attachments
wrenchclick.JPG
wrenchclick.JPG (163.51 KiB) Viewed 8905 times
Thanks for your Help
:D :roll: :oops:
User avatar
samapi123
Cacti User
Posts: 57
Joined: Wed Mar 12, 2008 10:29 am
Location: Honduras
Contact:

Post by samapi123 »

I clicked on the wrench. Then the next page appear. I try clicking on the csv export and it apparently worked. But why it doesn´t work when you make the zoom out?
Attachments
wrenchclick2.JPG
wrenchclick2.JPG (182.99 KiB) Viewed 8902 times
Thanks for your Help
:D :roll: :oops:
User avatar
samapi123
Cacti User
Posts: 57
Joined: Wed Mar 12, 2008 10:29 am
Location: Honduras
Contact:

Post by samapi123 »

It was as I said before apparently work.

I view the information that was on csv and it doesn´t belong to the zoom area. It belong to the entire graph.
Thanks for your Help
:D :roll: :oops:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

ahh, now I too can replicate the error. You're correct, it IS a bug with cacti.

Report created: http://bugs.cacti.net/view.php?id=1216
User avatar
samapi123
Cacti User
Posts: 57
Joined: Wed Mar 12, 2008 10:29 am
Location: Honduras
Contact:

Post by samapi123 »

There is anything I can do to solve this error??
Thanks for your Help
:D :roll: :oops:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Nope, the cacti devs must fix it.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Here is the root of the issue. I will look into it in the next few minutes.

Regards,

TheWitness
Attachments
ZoomError.jpg
ZoomError.jpg (19.98 KiB) Viewed 8760 times
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: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Change line 130 to the following and try again. Post your results:

Code: Select all

	$rra = db_fetch_row("select id,timespan,steps,name from rra where id=" . $_GET["rra_id"]);
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
samapi123
Cacti User
Posts: 57
Joined: Wed Mar 12, 2008 10:29 am
Location: Honduras
Contact:

Post by samapi123 »

Sorry for asking but to which file I need to changed that.
Thanks for your Help
:D :roll: :oops:
User avatar
samapi123
Cacti User
Posts: 57
Joined: Wed Mar 12, 2008 10:29 am
Location: Honduras
Contact:

Post by samapi123 »

Thanks I changed the line 130 in graph.php and It solved my problem thanks very much for your help.
Attachments
solved.JPG
solved.JPG (145.73 KiB) Viewed 8617 times
Thanks for your Help
:D :roll: :oops:
trinhhoang
Posts: 7
Joined: Thu Jun 18, 2009 2:09 am

Post by trinhhoang »

I cannot use CSV Export. Please help me solving it.

When I click CSV Export. Brower redirect to "http://localhost/cacti/graph_xport.php? ... view_type=" page, and show code as followings.

Code: Select all

PHP Notice: Undefined index: start in C:\inetpub\wwwroot\cacti\graph_xport.php on line 101 PHP Notice: Undefined index: end in C:\inetpub\wwwroot\cacti\graph_xport.php on line 102 PHP Notice: Undefined index: step in C:\inetpub\wwwroot\cacti\graph_xport.php on line 103 PHP Notice: Undefined index: rows in C:\inetpub\wwwroot\cacti\graph_xport.php on line 104 PHP Notice: Undefined index: columns in C:\inetpub\wwwroot\cacti\graph_xport.php on line 122 PHP Notice: Undefined index: data in C:\inetpub\wwwroot\cacti\graph_xport.php on line 128 
Line 130 in Graph.php of me is:

Code: Select all

$rra = db_fetch_row("select id,timespan,steps,name from rra where id=" . $_GET["rra_id"]);
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest