madmaze / pyNmonAnalyzer

Python tool for reformatting and plotting/graphing NMON output
118 stars 42 forks source link

Interactive graph issues #6

Closed AlexDeGruven closed 11 years ago

AlexDeGruven commented 11 years ago

Using the most recent git version as of 10/9/2013:

When I create the interactive graph, the HTML display is incorrect.

The graphs are labeled CPU, DISKBUSY, and MEM, which is what I want to see, but the data are incorrect.

The headings for the CPU graph are the disk names 'sda1, etc' (and also do not reflect the actual disks (vda1 - vda8). The graph itself and its values appear correct.

The graph labeled DISKBUSY is actually the memory graph, but has the correct items laid out.

The graph labeled MEM is actually the network graph, but has the correct items laid out.

The JavaScript from the source shows:

var dataSources=[ "csv/DISKBUSY.csv", "csv/MEM.csv", "csv/NET.csv" ];

I imagine it should be CPU, MEM, NET as far as the 3 graphs that are laid out in the output.

I tried editing the resulting HTML to put CPU_ALL.csv, MEM.csv, and NET.csv in the right places, but the graphs failed to load after that point.

madmaze commented 11 years ago

Hi Alex,

I think this may have to do with your report.config, try it with this: CPU_ALL=user,sys,wait{stackedGraph: true, fillGraph: true} DISKBUSY=sda1,sdb1{} MEM=memtotal,active{} NET=eth0{}

AlexDeGruven commented 11 years ago

Thanks for the quick response. Not sure how that got messed up like that. Looks much better now.

madmaze commented 11 years ago

I believe that may actually be my fault, I'll be pushing a fix later this evening. When the default config file gets written out, it doesn't include the new setting introduced for the interactive report-generation

madmaze commented 11 years ago

The fix has been pushed to the dev branch and will soon be merged into master.

Thanks for reporting this issue.