Skip to content

[QA 1.3] graph error image does not contain any information #6220

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

Open
xmacan opened this issue Apr 9, 2025 · 3 comments
Open

[QA 1.3] graph error image does not contain any information #6220

xmacan opened this issue Apr 9, 2025 · 3 comments
Labels
bug Undesired behaviour unverified Some days we don't have a clue

Comments

@xmacan
Copy link
Member

xmacan commented Apr 9, 2025

Display graph debug information if rrd file is missing says a lot of information:

  • image with "Failed to open data file ..."
  • correct rrdtool command
  • RRDtool Says: ERROR: opening '/usr/local/share/cacti/rra/pokus_fg_snmp_oid_35399.rrd': No such file or directory

In 1.3 I get only:

  • image unknown rrdtool error
  • empty rrdtool command
  • empty rrdtool Says:
@xmacan xmacan added bug Undesired behaviour unverified Some days we don't have a clue labels Apr 9, 2025
@xmacan
Copy link
Member Author

xmacan commented Apr 9, 2025

I had only few minutes for debug now. It seems that the code is very similar to 1.2.x. I don't know if it is any small bug or any bigger issue. I can look at it.
@TheWitness any advice?

@xmacan
Copy link
Member Author

xmacan commented Apr 10, 2025

@TheWitness I found it. Please check lib/rrd.php line 1815.
Someone add these lines:
if (!rrdtool_file_exists($data_source_path, $rrdtool_pipe)) {
return false;
}

It causes my issue. Without lines it works well. But I do not know the consequences of my modification or the reason for this condition. Please have a look at it

@TheWitness
Copy link
Member

Yea, we need to improve that. The file missing was causing other issues with export and ptile data. So, I think we can simply change the check to not fail if it's not export for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour unverified Some days we don't have a clue
Projects
None yet
Development

No branches or pull requests

2 participants