[PVE-User] pvesh rrd option not working

Muhammad Yousuf Khan sirtcp at gmail.com
Fri Sep 26 14:29:10 CEST 2014


with my research i also came to the same conclusion that you have share.

Thanks for you input.
i think i need to see the API.




On Fri, Sep 26, 2014 at 2:10 PM, Dietmar Maurer <dietmar at proxmox.com> wrote:

> > 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
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pve.proxmox.com/pipermail/pve-user/attachments/20140926/800924c2/attachment-0015.html>


More information about the pve-user mailing list