mirror of
https://github.com/Corsinvest/cv4pve-api-php.git
synced 2026-04-25 04:25:48 +03:00
[GH-ISSUE #39] getRrd on PVE 9.0 #28
Labels
No labels
enhancement
needs investigation
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-api-php#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @eurohoster on GitHub (Aug 27, 2025).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-api-php/issues/39
What happened?
$rdd_cpu = $pve->getNodes()->get($node)->getQemu()->get($HostingID)->getRrd()->rrd('cpu','day'); $rdd_cpu->getResponse()Doesn't return an image on PVE 9.0
Expected behavior
Should return base64 image, as on previous versions.
Relevant log output
PHP Version
8.3
Proxmox VE Version
9.0.5
Version (bug)
8.4.1
Version (working)
No response
On what operating system are you experiencing the issue?
Linux
Pull Request
@franklupo commented on GitHub (Aug 28, 2025):
Hi,
Did it work before? Is it still the same library version?
best regards
@eurohoster commented on GitHub (Aug 28, 2025):
Hi,
All my servers used the Proxmox v8. Yesterday I have installed a new version 9 of proxmox. I saw that your last version of library was updated before released v9 was published.
Probably your library doesn’t support new proxmox yet.
->getResponse() return only data:image/png;base64,
Best regards,
Andrii Balytskyi
EuroHoster Ltd. https://eurohoster.org/
@franklupo commented on GitHub (Aug 28, 2025):
Have you tried calling the API URL manually? What do you get back?
/nodes/{node}/qemu/{vmid}/rrd
@eurohoster commented on GitHub (Aug 28, 2025):
@.***:~# pvesh get /nodes/{node}/qemu/18891/rrd --timeframe day --ds cpu
┌──────────┬─────────────────────────────────────────────┐
│ key │ value │
╞══════════╪═════════════════════════════════════════════╡
│ filename │ /var/lib/rrdcached/db/pve-vm-9.0/18891_.png │
└──────────┴─────────────────────────────────────────────┘
Best regards,
Andrii Balytskyi
EuroHoster Ltd. https://eurohoster.org/
@franklupo commented on GitHub (Aug 28, 2025):
execute in browser
https://host:8006/api2/json/nodes/nl-165005/qemu/18891/rrd?timeframe=day&ds=cpu
@eurohoster commented on GitHub (Aug 28, 2025):
{"data":{"filename":"/var/lib/rrdcached/db/pve-vm-9.0/18891_.png","image":null}}
Best regards,
Andrii Balytskyi
EuroHoster Ltd. https://eurohoster.org/
@eurohoster commented on GitHub (Aug 28, 2025):
I saw. It’s a proxmox issue, not your library.
Best regards,
Andrii Balytskyi
EuroHoster Ltd. https://eurohoster.org/
@franklupo commented on GitHub (Aug 28, 2025):
try /api2/png
https://host:8006/api2/png/nodes/nl-165005/qemu/18891/rrd?timeframe=day&ds=cpu
@franklupo commented on GitHub (Aug 28, 2025):
I've always used GET /api2/json/nodes/{node}/qemu/{vmid}/rrddata and I create my own graph.
@eurohoster commented on GitHub (Aug 28, 2025):
Now there is a very long delay and strange answer.