Data source field input error?
Moderators: Developers, Moderators
Data source field input error?
In Cacti .8.8, we have an existing data source that we created, but when we try and modify a value in it we get the error below when we try to save it.
The previous setting was server2.te.com but the removal of that number appears to break it. We tried to create a new data source using the same template, and we are unable to enter any value in that box. In addition, if we attempt to edit the template and remove the check mark next to that field, we get the same error as shown below.
Re: Data source field input error?
Sounds like the global_arrays.php issue. Try updating the file as discussed in this thread - http://forums.cacti.net/viewtopic.php?f=2&t=47018
Re: Data source field input error?
No. Replacing my file with that version did not resolve the situation. Seems like the problem is spreading as this is a different data source and you can see there is no red box even though there is supposedly an issue.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Data source field input error?
Unfortunately, we doo not (yet) highlight dropdown lists in case the error is related to such a field.
But running in highest verbosity may print more information regarding this error to cacti.log (not really sure on this: I implemented a related print, but am not sure to which version this was introduced first)
R.
But running in highest verbosity may print more information regarding this error to cacti.log (not really sure on this: I implemented a related print, but am not sure to which version this was introduced first)
R.
Re: Data source field input error?
Why am I getting the error for the other data sources though that do not involve a drop down list? (the ones where I am trying to change the "remote host" value?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Data source field input error?
In case I knew the exact SQL error code, I could tell, ...
It may e.g. happen, that some of the tables are broken; in this case a "repair table" would help. But I suspect a different issue. In case no SQL messages can be found and no logging of the exact error is shown, I can provide small code tweaks to provide the missing information
R.
It may e.g. happen, that some of the tables are broken; in this case a "repair table" would help. But I suspect a different issue. In case no SQL messages can be found and no logging of the exact error is shown, I can provide small code tweaks to provide the missing information
R.
Re: Data source field input error?
Where would be the best place to look for SQL errors? I set the log level in Cacti to debug, attempted to modify the data source, but saw no SQL messages in that log.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Data source field input error?
The file log/cacti.log must have permissions granted to the web server's user to print messages during browser actions.
R.
R.
Re: Data source field input error?
I just set the log level to Devel, attempted to change the data source in question, got the error, then looked at the log via cli and saw no errors about SQL or anything related to that data source/host.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Data source field input error?
I am looking for an error like Please see file "lib/functions.php". Locate function "form_input_validate". Make sure to have the line with "cacti_log" as follows:
Then, please try again, looking for an error message like the one above
R.
Code: Select all
04/21/2012 10:07:56 PM - CMDPHP: Poller[0] Validation Error on field 'snmp_port', value 'bla': Save Failed: Field Input Error (Check Red Fields).
Code: Select all
if ((!preg_match('/' . $regexp_match . '/', $field_value) || (($allow_nulls == false) && ($field_value === "")))) {
raise_message($custom_message);
cacti_log("Validation Error on field '".$field_name."', value '".$field_value."': " . $messages[$custom_message]["message"], false);
$_SESSION["sess_error_fields"][$field_name] = $field_name;
}else{
$_SESSION["sess_field_values"][$field_name] = $field_value;
}
R.
Re: Data source field input error?
Hey,
I'm having a similar problem. The problem started when I reinstalled Cacti on my machine. Here are the excerpts from my log.
1/19/2012 08:04:43 AM - CMDPHP: Poller[0] Validation Error on field 'rrd_maximum_111', value '|query_ifSpeed|': Save Failed: Field Input Error (Check Red Fields).
11/19/2012 08:04:43 AM - CMDPHP: Poller[0] Validation Error on field 'rrd_maximum_110', value '|query_ifSpeed|': Save Failed: Field Input Error (Check Red Fields).
11/19/2012 08:02:07 AM - CMDPHP: Poller[0] Validation Error on field 'rrd_maximum_111', value '|query_ifSpeed|': Save Failed: Field Input Error (Check Red Fields).
11/19/2012 08:02:07 AM - CMDPHP: Poller[0] Validation Error on field 'rrd_maximum_110', value '|query_ifSpeed|': Save Failed: Field Input Error (Check Red Fields).
Cheers.
I'm having a similar problem. The problem started when I reinstalled Cacti on my machine. Here are the excerpts from my log.
1/19/2012 08:04:43 AM - CMDPHP: Poller[0] Validation Error on field 'rrd_maximum_111', value '|query_ifSpeed|': Save Failed: Field Input Error (Check Red Fields).
11/19/2012 08:04:43 AM - CMDPHP: Poller[0] Validation Error on field 'rrd_maximum_110', value '|query_ifSpeed|': Save Failed: Field Input Error (Check Red Fields).
11/19/2012 08:02:07 AM - CMDPHP: Poller[0] Validation Error on field 'rrd_maximum_111', value '|query_ifSpeed|': Save Failed: Field Input Error (Check Red Fields).
11/19/2012 08:02:07 AM - CMDPHP: Poller[0] Validation Error on field 'rrd_maximum_110', value '|query_ifSpeed|': Save Failed: Field Input Error (Check Red Fields).
Cheers.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Data source field input error?
Please open a new thread and provide a screenshot of the data template
R.
R.
Who is online
Users browsing this forum: No registered users and 1 guest