Skip to content

When viewing graph data, non-numeric values may appear #4461

Closed

Description

@jaevan21

Cacti Version | 1.2.19
Cacti OS | unix
NET-SNMP Version | NET-SNMP version: 5.8
RRDtool Version Configured | 1.7.2+
RRDtool Version Found | 1.7.2
Poller Type | SPINE 1.2.19

To recreate the issue: go to any graph and click on utility view. A popup window appear with 500 internal server error.
cacti.log output

2021-11-09 06:52:32 - ERROR PHP ERROR: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /usr/share/cacti/graph_xport.php:266 Stack trace: #0 /usr/share/cacti/graph_xport.php(266): round() #1 {main} thrown in file: /usr/share/cacti/graph_xport.php on line: 266
2021-11-09 06:52:32 - CMDPHP PHP ERROR Backtrace:  (CactiShutdownHandler())

Activity

  1. added
    bugUndesired behaviour
    unverifiedSome days we don't have a clue
    on Nov 9, 2021
  2. changed the title [-]Utility View 500 Internal Server Error [/-] [+]When viewing graph data, non-numeric values may appear[/+] on Nov 14, 2021
  3. netniV commented on Nov 14, 2021

    @netniV
    Member

    Try the above patch, that should at least allow things to be viewable without crashing the code. From there, you may find another issue.

  4. added
    graphviewIssue related to the Graphs page
    and removed
    unverifiedSome days we don't have a clue
    on Nov 14, 2021
  5. added this to the v1.2.20 milestone on Nov 14, 2021
  6. locked and limited conversation to collaborators on Feb 13, 2022
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 behaviourgraphviewIssue related to the Graphs pageresolvedA fixed issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions