|query_ifSpeed| in --upper-limit for graph template

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

Moderators: Developers, Moderators

Post Reply
mastrboy
Posts: 26
Joined: Wed Aug 02, 2006 2:40 am

|query_ifSpeed| in --upper-limit for graph template

Post by mastrboy »

Should be fixed here: http://bugs.cacti.net/view.php?id=1030

But when i'm trying to add |query_ifSpeed| in --upper-limit for graph template i get the following error message:
Error: Save Failed: Field Input Error (Check Red Fields).

Using Cacti version 0.8.8a
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: |query_ifSpeed| in --upper-limit for graph template

Post by gandalf »

Please reopen bug or create a new one which refers to the old
R.
mastrboy
Posts: 26
Joined: Wed Aug 02, 2006 2:40 am

Re: |query_ifSpeed| in --upper-limit for graph template

Post by mastrboy »

docm
Posts: 4
Joined: Fri Nov 22, 2013 5:43 am

Re: |query_ifSpeed| in --upper-limit for graph template

Post by docm »

Hi,

this Bug has beend marked as resolved in 08/2012 but doesn't seem to be included in 0.8.8b
When will 0.8.9 come out or is there a chance to get this bug fix itself somehow ?

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

Re: |query_ifSpeed| in --upper-limit for graph template

Post by gandalf »

Please edit graph_templates.php and replace line 104-107 by

Code: Select all

		$save2["t_upper_limit"] = form_input_validate((isset($_POST["t_upper_limit"]) ? $_POST["t_upper_limit"] : ""), "t_upper_limit", "", true, 3);
		$save2["upper_limit"] = form_input_validate((isset($_POST["upper_limit"]) ? $_POST["upper_limit"] : ""), "upper_limit", "", ((isset($_POST["t_upper_limit"]) || (strlen($_POST["upper_limit"]) === 0)) ? true : false), 3);
		$save2["t_lower_limit"] = form_input_validate((isset($_POST["t_lower_limit"]) ? $_POST["t_lower_limit"] : ""), "t_lower_limit", "", true, 3);
		$save2["lower_limit"] = form_input_validate((isset($_POST["lower_limit"]) ? $_POST["lower_limit"] : ""), "lower_limit", "", ((isset($_POST["t_lower_limit"]) || (strlen($_POST["lower_limit"]) === 0)) ? true : false), 3);
Please respond with your findings
R.
docm
Posts: 4
Joined: Fri Nov 22, 2013 5:43 am

Re: |query_ifSpeed| in --upper-limit for graph template

Post by docm »

Hi,

i changed graph_templates.php according to your advice.
i still get the error message "Error: Save Failed: Field Input Error (Check Red Fields)." with the fields

Data Source Item Fields [traffic_in]
Maximum Value ('U' for No Maximum)
The maximum value of data that is allowed to be collected.

and

Data Source Item Fields [traffic_out]
Maximum Value ('U' for No Maximum)
The maximum value of data that is allowed to be collected.

marked red.

these 2 fields are already filled with "|query_ifSpeed|" .

the error show up, when i try to change any other Field.

As you can see in the attached Pic, i tried to change the Name field.

Regards
Frank

p.s. sorry for the late response!
Attachments
error.jpg
error.jpg (91.83 KiB) Viewed 4118 times
simlac
Posts: 1
Joined: Wed Feb 05, 2014 11:07 am

Re: |query_ifSpeed| in --upper-limit for graph template

Post by simlac »

Hi,

I did the exact same changes, for the same problem, and it doesn't work either.
Would there be any update on this issue ?

Thanks,

Simon
tcprado
Posts: 23
Joined: Fri Apr 12, 2013 7:25 am

Re: |query_ifSpeed| in --upper-limit for graph template

Post by tcprado »

I did it and it was accepted, but the graphs are showing with the maximum set to 1.
Attachments
graph_image.png
graph_image.png (8.22 KiB) Viewed 3135 times
tcprado
Posts: 23
Joined: Fri Apr 12, 2013 7:25 am

Re: |query_ifSpeed| in --upper-limit for graph template

Post by tcprado »

ifSpeed is reported correctly though.
Attachments
Capturar.PNG
Capturar.PNG (36.23 KiB) Viewed 3133 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests