Problem Changing Graph details - error

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

Moderators: Developers, Moderators

Feldmann
Posts: 10
Joined: Wed Sep 26, 2007 2:34 pm

Problem Changing Graph details - error

Post by Feldmann »

Error: Save Failed: Field Input Error (Check Red Fields).

Setting up a new graph, I cannot change any of the supplemental Graph Template Data. Clicking save without changing any fields also throws the error. I get the error above when I click save. I also see the following message in my messages file:

Jan 3 11:58:02 NetGraph httpd: PHP Notice: Undefined variable: local_graph_id in /var/www/html/cacti/graphs.php on line 203

Cacti ver 0.8.7a on RHEL v4

Any ideas? The message says to check red fields, but none are highlighted.

I can provide any additional details you may need.

Thanks.
Attachments
GraphSaveError.jpg
GraphSaveError.jpg (209.12 KiB) Viewed 10909 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Problem Changing Graph details - error

Post by gandalf »

Feldmann wrote:Jan 3 11:58:02 NetGraph httpd: PHP Notice: Undefined variable: local_graph_id in /var/www/html/cacti/graphs.php on line 203

Cacti ver 0.8.7a on RHEL v4
I'm a bit worried. In 087a, there's no line 203 with that variable in that file. Are you running plugin arch?
Reinhard
Feldmann
Posts: 10
Joined: Wed Sep 26, 2007 2:34 pm

Re: Problem Changing Graph details - error

Post by Feldmann »

removed text - bad info.
Last edited by Feldmann on Mon Jan 14, 2008 12:26 pm, edited 1 time in total.
Feldmann
Posts: 10
Joined: Wed Sep 26, 2007 2:34 pm

Re: Problem Changing Graph details - error

Post by Feldmann »

Removed text - bad info.
Last edited by Feldmann on Mon Jan 14, 2008 12:26 pm, edited 1 time in total.
Feldmann
Posts: 10
Joined: Wed Sep 26, 2007 2:34 pm

Re: Problem Changing Graph details - error

Post by Feldmann »

Something went wrong there. Pevious posts have wrong code block, and I don't see how to edit post.

Yes I have the Plugin Arch installed.

Line 203 is in this block:

if (sizeof($input_list) > 0) {
foreach ($input_list as $input) {
update_graph_data_query_cache($local_graph_id);
}

of function form_save()

Sorry for the confusion, and thanks for the help
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Again, I'm sorry. There's no such bit of code in 087a graphs.php file. Even plugin arch should not have changed that piece of code, at least when installing plugin arch via patch. Did you install plugin arch by replacing files or by patching?
You may provide a larger bit of code to help me identifying what's going on here
Reinhard
Feldmann
Posts: 10
Joined: Wed Sep 26, 2007 2:34 pm

Re: Problem Changing Graph details - error

Post by Feldmann »

Attached is my graphs.php file.

Thanks again
Attachments
graphs.php.txt
(49.22 KiB) Downloaded 320 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This code should only be executed when changing the Graph Template of an exting graph. But that's not what you did, eh?
Reinhard
Feldmann
Posts: 10
Joined: Wed Sep 26, 2007 2:34 pm

Re: Problem Changing Graph details - error

Post by Feldmann »

When I create a new graph via:
Graph Management
-> Add
-> Template = SNMP -Generic OID Template
-> Host = MyDevice
-> Create

I then get a window with the Supplemental Graph data Fields at their defaults.

-> Select my data source snmp_oid
-> Modify title
-> Set vert Label and Legent Text

See attachment 1 ImgBeforeSave

-> Click Save

See attachment 2 ImgAfterSave

Note: Some of the settings take. The Datasource must be working because it shows the graph. The legend Text is right, but the Vertical Label is still defaulted to 0, and the Title is the default without my changes
Attachments
ImgBeforeSave.jpg
ImgBeforeSave.jpg (234.73 KiB) Viewed 10864 times
ImgAfterSave.jpg
ImgAfterSave.jpg (212.66 KiB) Viewed 10866 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Ok. Will try to reproduce this, but not before tomorrow. What happens, if you create a graph from the host edit view:
Devices -> select device -> associate graph template if not already there -> Create graphs for this Host -> check graph template -> create
Reinhard
Feldmann
Posts: 10
Joined: Wed Sep 26, 2007 2:34 pm

Re: Problem Changing Graph details - error

Post by Feldmann »

gandalf wrote:Ok. Will try to reproduce this, but not before tomorrow. What happens, if you create a graph from the host edit view:
Devices -> select device -> associate graph template if not already there -> Create graphs for this Host -> check graph template -> create
Reinhard
Same thing if I followed you right. Ultimately I get to the same page to modify the info, and it throws the error on save.

Thanks again for you help on this!
djule
Posts: 1
Joined: Thu Jan 10, 2008 10:44 am

Post by djule »

I've exactly the same problem than you Feldmann.
When I create the graph from an existing data source, I fill out all the field and I obtain this damn message :

Error: Save Failed: Field Input Error (Check Red Fields)

However, the graph is created, and everything is working!!

I think the problem come from Title field : If I add argumment to the default field (|host_description|), they aren't taken in consideration after having created graph.

So, it appears to be a big problem in my case, because I'm using several graph for a single device, so all the created graphs have the same name (the default field).

I think, I haven't the same problem when I using a last version of cacti without plugin Architecture.

I would be very great, Gandalf, if you could come in help.

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

Post by gandalf »

Please file a bug as given by http://www.cacti.net/bugs.php.
Reinhard
Feldmann
Posts: 10
Joined: Wed Sep 26, 2007 2:34 pm

Re: Problem Changing Graph details - error

Post by Feldmann »

gandalf wrote:Please file a bug as given by http://www.cacti.net/bugs.php.
Reinhard
Entered as bug. ID 0001145
patrick
Posts: 8
Joined: Tue May 20, 2008 12:00 pm

Post by patrick »

Has this been fixed? I am getting this as well....
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests