Skip to content

When attempting to save Graph field, query_ifSpeed is not properly validated #2265

Description

@flippind

I'm running into the same issue reported in this forum thread. Noticed the last hit on the thread suggests the bug report, but I'm unable to find existing. In my case, I am able to pull the expected value in the graph title via |query_ifSpeed| but am unable to populate that variable in either individual graphs nor graph template. Attempts to suggest via the associated Data Query Suggested Values -graphs (specifically upper-limit) has no discernible effect. It looks like this may have been resolved in the 0.8.8 release, but returned as early as 0.8.8b

   Total: 0.310000, Delta: 0.000000, Located input field 'ifSpeed' [walk]
   --
   Total: 0.350000, Delta: 0.040000, Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
   Found item [ifSpeed='1000000000'] index: 1 [from value]
   Found item [ifSpeed='1000000000'] index: 2 [from value]
   Found item [ifSpeed='20000000'] index: 3 [from value]
   
   Cacti Version | 1.1.38
   Cacti OS | unix
   NET-SNMP Version | NET-SNMP version: 5.7.2
   RRDtool Version | RRDtool 1.4.x

In this image you can see the error thrown when using |query_ifSpeed| in the Graph Fields. Note that the graph title is successfully using |query_ifSpeed|.
1-3-2019 8-28-33 am

Activity

  1. cigamit commented on Jan 4, 2019

    @cigamit
    Member

    Looks like a nice enhancement request.

  2. added this to the v1.3 milestone on Mar 8, 2019
  3. TheWitness commented on Mar 17, 2020

    @TheWitness
    Member

    Oh this is interesting, there is all sorts of code for this in the code, but you can not save in the template. Actually you can in the Graph Template "Graph Template Input" section, but that seems to be have been removed from the default template some releases ago. @gan-dalf had written this in almost a decade ago.

  4. added
    guiUI related issue
    bugUndesired behaviour
    and removed
    enhancementGeneral tag for an enhancement
    on Mar 17, 2020
  5. modified the milestones: v1.3.0, 1.2.11 on Mar 22, 2020
  6. added a commit that references this issue on Mar 22, 2020
  7. changed the title [-]Graph Field Limits Save Failed: Field Input Error - |query_ifSpeed|[/-] [+]When attempting to save Graph field, query_ifSpeed is not properly validated[/+] on Apr 5, 2020
  8. locked and limited conversation to collaborators on Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourguiUI related issueresolvedA fixed issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions