Error when edit Data source : Validation Error on field

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

Moderators: Developers, Moderators

Post Reply
nugrozz2k
Posts: 7
Joined: Wed Jan 09, 2013 11:04 pm
Location: Indonesia

Error when edit Data source : Validation Error on field

Post by nugrozz2k »

Hi...
I have some question, after created new graph, i try to edit manually data sources name, but error message appear when i save it: "Error: Save Failed: Field Input Error (Check Red Fields)"
Then I crosscheck in cacti.log, i found this message :Validation error on field rrd maximum
I know, we should not editing manually data sources. But I really need answer about this, how can rrd_maximum caused some error, I only change the data name
Please kindly help :-?

Note: Using cacti 0.8.8a @ Ubuntu 12.10 Server Edition 64bit
Last edited by nugrozz2k on Thu Jan 10, 2013 7:51 pm, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Error when edit Data source : Validation Error on field

Post by gandalf »

This cacti version should log the exact error to cacti.log (well, to be honest: for this feature to be active, you must permit your httpd to be able to write to cacti.log). Unfortunately, your images are not shown (I fear this is a result of a tight anti-spam policy)
R.
nugrozz2k
Posts: 7
Joined: Wed Jan 09, 2013 11:04 pm
Location: Indonesia

Re: Error when edit Data source : Validation Error on field

Post by nugrozz2k »

Hi G,
Thanks for your response, i resend my capture with attachment

Save Failed after edit data source :
1save failed after edit data source.jpg
1save failed after edit data source.jpg (78.47 KiB) Viewed 2391 times
Cacti Log :
2cactilog.jpg
2cactilog.jpg (27.94 KiB) Viewed 2391 times
I already test with new data template (see picture below) which is not use "rrd_maximum - |query_ifSpeed|
3test data template without rrdmaximum.JPG
3test data template without rrdmaximum.JPG (78.54 KiB) Viewed 2391 times
Try edit datasource with new_template
4edit data source with new template.JPG
4edit data source with new template.JPG (64.6 KiB) Viewed 2391 times
5succes without rrd_max.JPG
5succes without rrd_max.JPG (48.07 KiB) Viewed 2391 times
and voila.... no problem to edit data source many many time. but sadly if I didn't use query_ifSpeed for rrd_maximum the maximum counter will be not right.

Need your advice G :(
Thanks
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Error when edit Data source : Validation Error on field

Post by gandalf »

Please see "System Utilities -> View SNMP Cache" and search for the host/interface/ifSpeed value.
I fear, that they are absent.
In this case, please
1. perform a reindex of that data query by pressing the green circle next to the Data Query on the host edit screen - retry
2. from cli: perform an snmpwalk against that host for table "interface" and watch out, whether ifSpeed is reported - better post the whole output (at least the ifSpeed part)
R.
nugrozz2k
Posts: 7
Joined: Wed Jan 09, 2013 11:04 pm
Location: Indonesia

Re: Error when edit Data source : Validation Error on field

Post by nugrozz2k »

Hi G,

Sorry for late response,
I already check it, and IfSpeed is not absent :
1.JPG
1.JPG (71.86 KiB) Viewed 2375 times
Snmpwalk attached (open with ultraedit or wordpad):
snmpwalk.txt
(84.13 KiB) Downloaded 139 times
Please kindly help to solve this issue, thanks before

regards,
n2k
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Error when edit Data source : Validation Error on field

Post by gandalf »

nugrozz2k wrote:I already test with new data template (see picture below) which is not use "rrd_maximum - |query_ifSpeed|
3test data template without rrdmaximum.JPG
Well, the image does not show a data template but the Data Query.
In fact |query_ifSpeed| is used by the official traffic data template. But that's a bit tricky. So I need to know as exact as possible how you changed that data template (copy and change, create new from scratch or whatever); best is to post screenshots of that template
R.
nugrozz2k
Posts: 7
Joined: Wed Jan 09, 2013 11:04 pm
Location: Indonesia

Re: Error when edit Data source : Validation Error on field

Post by nugrozz2k »

gandalf wrote:
nugrozz2k wrote:I already test with new data template (see picture below) which is not use "rrd_maximum - |query_ifSpeed|
The attachment 3test data template without rrdmaximum.JPG is no longer available
Well, the image does not show a data template but the Data Query.
In fact |query_ifSpeed| is used by the official traffic data template. But that's a bit tricky. So I need to know as exact as possible how you changed that data template (copy and change, create new from scratch or whatever); best is to post screenshots of that template
R.
Hi G,
Sorry for late response. I'm create new data template :
Data Queries > SNMP Network Interfaces > Add ...
Basically same with "In/Out Bits (64-bit Counter)" but without |query_ifSpeed|
Capture.JPG
Capture.JPG (90.58 KiB) Viewed 2357 times
Thanks before..
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Error when edit Data source : Validation Error on field

Post by gandalf »

Again, what you you have posted is a Data Query, not a Data Template. And I need that very data template
R.
nugrozz2k
Posts: 7
Joined: Wed Jan 09, 2013 11:04 pm
Location: Indonesia

Re: Error when edit Data source : Validation Error on field

Post by nugrozz2k »

gandalf wrote:Again, what you you have posted is a Data Query, not a Data Template. And I need that very data template
R.
Sorry G, below is the data template,but i am not sure i have changed it before.
DT_traffic_in.png
DT_traffic_in.png (141.44 KiB) Viewed 2352 times
DT_traffic_out.png
DT_traffic_out.png (141.04 KiB) Viewed 2352 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Error when edit Data source : Validation Error on field

Post by gandalf »

Ok, let me try to sum up:

- You are using a Data Query for Interface Traffic
- this is linked to the default data template for interface traffic
- you are trying to modify a Data Source, which has been created for that very Data Query

Well, this should work to a specific extend. The options are restricted by the governing Data Query, e.g. when changing the title, on next renaming event the title will again be overwritten by the Data Query "Suggested Names" section.

So my next answer is twofold:
1. Please explain, which field you want to change to make sure the change is permanent
2. Yes, the error should not occur, even if a field is changed that will be governed by the Data Query. For this issue, please open a bug report and put everything in

R.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests