Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jaevan21 opened this issue Nov 9, 2021 · 1 comment
Closed

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

jaevan21 opened this issue Nov 9, 2021 · 1 comment
Labels
bug Undesired behaviour graphview Issue related to the Graphs page resolved A fixed issue
Milestone

Comments

@jaevan21
Copy link

jaevan21 commented Nov 9, 2021

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())
@jaevan21 jaevan21 added bug Undesired behaviour unverified Some days we don't have a clue labels Nov 9, 2021
@netniV netniV changed the title Utility View 500 Internal Server Error When viewing graph data, non-numeric values may appear Nov 14, 2021
@netniV
Copy link
Member

netniV commented Nov 14, 2021

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

@netniV netniV closed this as completed Nov 14, 2021
@netniV netniV added graphview Issue related to the Graphs page resolved A fixed issue and removed unverified Some days we don't have a clue labels Nov 14, 2021
@netniV netniV added this to the v1.2.20 milestone Nov 14, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Feb 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour graphview Issue related to the Graphs page resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants