I have been testing with the latest of everything (every package). I am running SLSE 11 SP2
When I export to CSV (or JSON), I am getting no data contents - only the headers. In diagnosing the issue, I found that the graph command result is returning Some header fields that the xml parser does not like and when I stripped these, the export worked. The correction: Graph.php line 879 From : $xml = simplexml_load_string($string); To: $xml = simplexml_load_string(stristr($string, "<xport>")); The command issued by graph.php /usr/bin/rrdtool xport --start '-3600s' --end 'now' DEF:'mem_total'='/var/lib/ganglia/rrds/cluster jsilver/linux-6cyo/mem_total.rrd':'sum':AVERAGE CDEF:'bmem_total'=mem_total,1024,* DEF:'mem_shared'='/var/lib/ganglia/rrds/cluster jsilver/linux-6cyo/mem_shared.rrd':'sum':AVERAGE CDEF:'bmem_shared'=mem_shared,1024,* DEF:'mem_free'='/var/lib/ganglia/rrds/cluster jsilver/linux-6cyo/mem_free.rrd':'sum':AVERAGE CDEF:'bmem_free'=mem_free,1024,* DEF:'mem_cached'='/var/lib/ganglia/rrds/cluster jsilver/linux-6cyo/mem_cached.rrd':'sum':AVERAGE CDEF:'bmem_cached'=mem_cached,1024,* DEF:'mem_buffers'='/var/lib/ganglia/rrds/cluster jsilver/linux-6cyo/mem_buffers.rrd':'sum':AVERAGE CDEF:'bmem_buffers'=mem_buffers,1024,* CDEF:'bmem_used'='bmem_total','bmem_free',-,'bmem_cached',-,'bmem_shared',-,'bmem_buffers',- AREA:'bmem_used'#5555cc:'Use\g' CDEF:used_pos=bmem_used,0,INF,LIMIT VDEF:used_last=used_pos,LAST VDEF:used_min=used_pos,MINIMUM VDEF:used_avg=used_pos,AVERAGE VDEF:used_max=used_pos,MAXIMUM GPRINT:'used_last':' Now\:%6.1lf%s' GPRINT:'used_min':' Min\:%6.1lf%s' GPRINT:'used_avg':'Avg\:%6.1lf%s' GPRINT:'used_max':' Max\:%6.1lf%s\l' STACK:'bmem_shared'#0000aa:'Share\g' CDEF:shared_pos=bmem_shared,0,INF,LIMIT VDEF:shared_last=shared_pos,LAST VDEF:shared_min=shared_pos,MINIMUM VDEF:shared_avg=shared_pos,AVERAGE VDEF:shared_max=shared_pos,MAXIMUM GPRINT:'shared_last':' Now\:%6.1lf%s' GPRINT:'shared_min':' Min\:%6.1lf%s' GPRINT:'shared_avg':'Avg\:%6.1lf%s' GPRINT:'shared_max':' Max\:%6.1lf%s\l' STACK:'bmem_cached'#33cc33:'Cache\g' CDEF:cached_pos=bmem_cached,0,INF,LIMIT VDEF:cached_last=cached_pos,LAST VDEF:cached_min=cached_pos,MINIMUM VDEF:cached_avg=cached_pos,AVERAGE VDEF:cached_max=cached_pos,MAXIMUM GPRINT:'cached_last':' Now\:%6.1lf%s' GPRINT:'cached_min':' Min\:%6.1lf%s' GPRINT:'cached_avg':'Avg\:%6.1lf%s' GPRINT:'cached_max':' Max\:%6.1lf%s\l' STACK:'bmem_buffers'#99ff33:'Buffer\g' CDEF:buffers_pos=bmem_buffers,0,INF,LIMIT VDEF:buffers_last=buffers_pos,LAST VDEF:buffers_min=buffers_pos,MINIMUM VDEF:buffers_avg=buffers_pos,AVERAGE VDEF:buffers_max=buffers_pos,MAXIMUM GPRINT:'buffers_last':' Now\:%6.1lf%s' GPRINT:'buffers_min':' Min\:%6.1lf%s' GPRINT:'buffers_avg':'Avg\:%6.1lf%s' GPRINT:'buffers_max':' Max\:%6.1lf%s\l' DEF:'swap_total'='/var/lib/ganglia/rrds/cluster jsilver/linux-6cyo/swap_total.rrd':'sum':AVERAGE DEF:'swap_free'='/var/lib/ganglia/rrds/cluster jsilver/linux-6cyo/swap_free.rrd':'sum':AVERAGE CDEF:'bmem_swapped'='swap_total','swap_free',-,1024,* STACK:'bmem_swapped'#9900CC:'Swap\g' CDEF:swapped_pos=bmem_swapped,0,INF,LIMIT VDEF:swapped_last=swapped_pos,LAST VDEF:swapped_min=swapped_pos,MINIMUM VDEF:swapped_avg=swapped_pos,AVERAGE VDEF:swapped_max=swapped_pos,MAXIMUM GPRINT:'swapped_last':' Now\:%6.1lf%s' GPRINT:'swapped_min':' Min\:%6.1lf%s' GPRINT:'swapped_avg':'Avg\:%6.1lf%s' GPRINT:'swapped_max':' Max\:%6.1lf%s\l' LINE2:'bmem_total'#FF0000:'Total\g' CDEF:total_pos=bmem_total,0,INF,LIMIT VDEF:total_last=total_pos,LAST VDEF:total_min=total_pos,MINIMUM VDEF:total_avg=total_pos,AVERAGE VDEF:total_max=total_pos,MAXIMUM GPRINT:'total_last':' Now\:%6.1lf%s' GPRINT:'total_min':' Min\:%6.1lf%s' GPRINT:'total_avg':'Avg\:%6.1lf%s' GPRINT:'total_max':' Max\:%6.1lf%s\l' XPORT:'bmem_used':'Use\g' XPORT:'bmem_shared':'Share\g' XPORT:'bmem_cached':'Cache\g' XPORT:'bmem_buffers':'Buffer\g' XPORT:'bmem_swapped':'Swap\g' XPORT:'bmem_total':'Total\g' > The result that I am getting: Use\g:15 Share\g:15 Cache\g:15 Buffer\g:15 Swap\g:15 Total\g:15 step: 15 <?xml version="1.0" encoding="ISO-8859-1"?> <xport> <meta> <start>1358171805</start> <step>15</step> <end>1358175390</end> <rows>240</rows> <columns>6</columns> <legend> <entry>Use\g</entry> <entry>Share\g</entry> <entry>Cache\g</entry> <entry>Buffer\g</entry> <entry>Swap\g</entry> <entry>Total\g</entry> </legend> </meta> <data> <row><t>1358171805</t><v>2.2861905920e+08</v><v>0.0000000000e+00</v><v>2.4557568000e+08</v><v>1.8586828800e+07</v><v>0.0000000000e+00</v><v>2.0977541120e+09</v></row> <row><t>1358171820</t><v>2.2860595200e+08</v><v>0.0000000000e+00</v><v>2.4557568000e+08</v><v>1.8599936000e+07</v><v>0.0000000000e+00</v><v>2.0977541120e+09</v></row> <row><t>1358171835</t><v>2.2860103680e+08</v><v>0.0000000000e+00</v><v>2.4557568000e+08</v><v>1.8604851200e+07</v><v>0.0000000000e+00</v><v>2.0977541120e+09</v></row> .... lots more lines ..... </row> </data> </xport> To Whomever can validate this change and take action, much appreciated. Jonathan ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers