(sorry adding the list ignore my last message) 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 5:29 PM, Muhammad Yousuf Khan <[email protected]> wrote: > 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 <[email protected]> > wrote: > >> > root@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 >> >> >> >> >> >
_______________________________________________ pve-user mailing list [email protected] http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
