No graphing for 100+ mbit interface

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

Moderators: Developers, Moderators

Post Reply
shaunr
Posts: 2
Joined: Tue Mar 01, 2016 12:57 pm

No graphing for 100+ mbit interface

Post by shaunr »

I have a Cisco 2960G switch that i'm polling/graphing. When the device was originally added some of the ports were forced to 'speed 100' and i'm guessing that cacti noticed this and set the maximum speed based on that. Now I've changed some of these ports back to speed auto and they are linking at 1000 Mbit. Problem i'm having is that my graphs look to stop showing traffic when the interface starts pushing more than 100 Mbit. I've checked the data source for that port and the Maximum Value is set to '|query_ifSpeed|'. This tells me that cacti is probably querying the switch port speed and setting a max based on that.

First problem is that if I try and save that data source i get a error "Error: Save Failed: Field Input Error (Check Red Fields)." Searching the forums i see others have had this issue in the past and nobody has resolved it. If |query_ifSpeed| is a valid input value then the issue I believe is with the regex on line 233 in the data_sources.php file.

Code: Select all

$save3["rrd_maximum"] = form_input_validate($_POST["rrd_maximum$name_modifier"], "rrd_maximum$name_modifier", "^(-?([0-9]+(\.[0-9]*)?|[0-9]*\.[0-9]+)([eE][+\-]?[0-9]+)?)|U$", false, 3);
$save3["rrd_minimum"] = form_input_validate($_POST["rrd_minimum$name_modifier"], "rrd_minimum$name_modifier", "^(-?([0-9]+(\.[0-9]*)?|[0-9]*\.[0-9]+)([eE][+\-]?[0-9]+)?)|U$", false, 3);
I commented out 'raise_message($custom_message);' in the form_input_validate function to see if allowing the save would fix the issue and it did not.

So, i guess my main question first is how do i fix my graphs. All my interfaces that were set to speed auto when the device was added are fine, it's the ones that were not.

Second question is in regards to the validation error and how we can fix this. I'm guessing it's a bug and one that has existed for a very long time from the looks of it.
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: No graphing for 100+ mbit interface

Post by micke2k »

Are you sure its not related to using Snmp V2c and 64bit polling?
shaunr
Posts: 2
Joined: Tue Mar 01, 2016 12:57 pm

Re: No graphing for 100+ mbit interface

Post by shaunr »

Device is using SNMP v2

Graphs all look to be set to In/Out Bits (64-bit counters).
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: No graphing for 100+ mbit interface

Post by micke2k »

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests