Skip to content

Graphs can not properly handle negative axis values #3457

Closed

Description

@F-i-f

Describe the bug

In the Cacti 1.211 Graph and Graph Templates pages, the right axis scale is not allowed to be negative. However rrdtool handles negative scales (in effect flipping the right axis).

To Reproduce

Steps to reproduce the behavior:

  1. Log in into Cacti.
  2. Navigate to the Console
  3. In the left menu bar, scroll down to Management > Graphs
  4. Edit any existing graph or create a new one.
  5. Scroll down to Axis Options.
  6. In the Right Axis text field, enter -1:0.
  7. Click Save.

Expected behavior

The graph should be saved, but instead Cacti refuses to save the graph and issues the error: Save Failed due to field input errors (Check red fields)..

Desktop (please complete the following information)

  • OS: Linux
  • Browser: Firefox

Additional context

The same issue exists for Graph Template.

Activity

  1. added
    bugUndesired behaviour
    unverifiedSome days we don't have a clue
    on Apr 12, 2020
  2. added this to the 1.2.12 milestone on Apr 15, 2020
  3. added a commit that references this issue on Apr 16, 2020
  4. TheWitness commented on Apr 16, 2020

    @TheWitness
    Member

    @F-i-f, that's for your contribution. I'm going to mark this one resolved. You can close once you have verified that everything is as you would expect it to be.

  5. F-i-f commented on Apr 17, 2020

    @F-i-f
    ContributorAuthor

    All looks good. Thank for your responsiveness and work on Cacti.

  6. changed the title [-]Graph right axis scale can be negative.[/-] [+]Cacti does not allow graphs to handle negative axis properly[/+] on May 3, 2020
  7. changed the title [-]Cacti does not allow graphs to handle negative axis properly[/-] [+]Graphs can not properly handle negative axis values[/+] on May 3, 2020
  8. locked and limited conversation to collaborators on Aug 2, 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 behaviourconfirmedBug is confirm by dev teamresolvedA fixed issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions