[PVE-User] pvesh rrd option not working
Dietmar Maurer
dietmar at proxmox.com
Fri Sep 26 11:10:56 CEST 2014
> root at bull:/# pvesh get /nodes/bull/rrd -ds netin,netout -timeframe hour
> 200 OK
>
> {
> "filename" : "/var/lib/rrdcached/db/pve2-node/bull_netin_netout.png",
> "image" : "‰PNG\r\n\u001a\n...........................................................
> .................
>
>
> as the "filename" shows /var/lib/rrdcached/db/pve2-node/ must contain
> bull_netin_netout.png image.
> however when i "ls" the directory it is empty
You cannot access that file with 'pvesh', because the file is a temporary file deleted immediately.
Then PNG data is contained inside the 'image' attribute.
But you can also use the REST API:
https://lola:8006/api2/json/nodes/lola/rrd?ds=netin,netout&timeframe=hour
which provides a way to get the PNG directly (for easy inclusion into web portals):
https://lola:8006/api2/png/nodes/lola/rrd?ds=netin,netout&timeframe=hour
- Dietmar
More information about the pve-user
mailing list