Hello,
I have made a control panel in PHP.
If I try to fetch the rrd graphs via the proxmox api I get some errors.
Ex:
GET /api2/json/...../rrd?...
Returns:
{"data":{"filename":"/var/lib/rrdcached/db/pve2-vm/101_cpu.png","image":"PNG\r\n\u001a\n\u0000\u0000\u0000\rIHDR\u0000\u0000\u0003 \u0000\u0000\u0000È\b\u0002\u0000\u0000\u0000í\u0012M\u0000\u0000\u0000\u0006bKGD\u0000ÿ\u0000ÿ\u0000ÿ ½§\u0000\u0000 \u0000IDATxíÝpSu¾ÿñO©(j#µ?ú\u0003¤ âÏuí ¤R¡ãùâÈwg\u0014ïW´êîÜ .... }
The filepath "filename" doesn't exists. I can only find /var/lib/rrdcached/db/pve2-vm/101.
If i save the "image" variable to a image.png file, the image doesn't display.
I have Proxmox 3.1-3.
Thank you.
I have made a control panel in PHP.
If I try to fetch the rrd graphs via the proxmox api I get some errors.
Ex:
GET /api2/json/...../rrd?...
Returns:
{"data":{"filename":"/var/lib/rrdcached/db/pve2-vm/101_cpu.png","image":"PNG\r\n\u001a\n\u0000\u0000\u0000\rIHDR\u0000\u0000\u0003 \u0000\u0000\u0000È\b\u0002\u0000\u0000\u0000í\u0012M\u0000\u0000\u0000\u0006bKGD\u0000ÿ\u0000ÿ\u0000ÿ ½§\u0000\u0000 \u0000IDATxíÝpSu¾ÿñO©(j#µ?ú\u0003¤ âÏuí ¤R¡ãùâÈwg\u0014ïW´êîÜ .... }
The filepath "filename" doesn't exists. I can only find /var/lib/rrdcached/db/pve2-vm/101.
If i save the "image" variable to a image.png file, the image doesn't display.
I have Proxmox 3.1-3.
Thank you.