madmaze / pyNmonAnalyzer

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

Errors with AIX nmon files when generating Static Report #3

Closed daixtr closed 10 years ago

daixtr commented 11 years ago

I downloaded your master copy zip from github web. I unzip, did some test play around using your test nmon file and it's working. But when I feed it with my nmon data from AIX system, it emits errors. Sorry, I can't paste the entire log, but I am seeing this:

INFO - Preparing graphs.. /usr/lib/pymodules/python2.7/matplotlib/axes.py:4486: UserWarning: No labeled objects found. Use label='...' kwarg on individual plots. warnings.warn("No labeled objects found. " Traceback (most recent call last): File "/home/daixtr/src/py/pymonizer/pyNmonAnalyzer-master/pyNmonAnalyzer.py", line 231, in nmonAnalyzer = pyNmonAnalyzer(args) File "/home/daixtr/src/py/pymonizer/pyNmonAnalyzer-master/pyNmonAnalyzer.py", line 91, in init self.buildReport() File "/home/daixtr/src/py/pymonizer/pyNmonAnalyzer-master/pyNmonAnalyzer.py", line 182, in buildReport outFiles = nmonPlotter.plotStats(reportConfig) File "/home/daixtr/src/py/pymonizer/pyNmonAnalyzer-master/pyNmonPlotter.py", line 89, in plotStats fname = self.plotStat(data, xlabel="Time", ylabel="Disk Busy (%)", title="Disk Busy vs Time", yrange=[0,105]) File "/home/daixtr/src/py/pymonizer/pyNmonAnalyzer-master/pyNmonPlotter.py", line 195, in plotStat plt.savefig(outFilename) File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 471, in savefig return fig.savefig(_args, _kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 1185, in savefig self.canvas.print_figure(_args, _kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 2021, in print_figure _kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 469, in print_png FigureCanvasAgg.draw(self) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 421, in draw self.figure.draw(self.renderer) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, args, _kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 898, in draw func(_args) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, args, _kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 1997, in draw a.draw(renderer) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, _args, _kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 1041, in draw ticks_to_draw = self._update_ticks(renderer) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 931, in _update_ticks tick_tups = [ t for t in self.iter_ticks()] File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 881, in iter_ticks majorLabels = [self.major.formatter(val, i) for i, val in enumerate(majorLocs)] File "/usr/lib/pymodules/python2.7/matplotlib/dates.py", line 340, in call raise ValueError('DateFormatter found a value of x=0, which is an illegal date. This usually occurs because you have not informed the axis that it is plotting dates, eg with ax.xaxis_date()') ValueError: DateFormatter found a value of x=0, which is an illegal date. This usually occurs because you have not informed the axis that it is plotting dates, eg with ax.xaxis_date()

madmaze commented 11 years ago

Hi daixtr, Could you provide me with with a sample nmon file? I must confess I have not tried this with an nmon file from an AIX system. Thanks, madmaze

daixtr commented 11 years ago

i'll join in your pyNmonAnalyzer instead, so I can submit patches.. Thanks.

On Fri, Jul 26, 2013 at 9:11 PM, madmaze notifications@github.com wrote:

Hi daixtr, Could you provide me with with a sample nmon file? I must confess I have not tried this with an nmon file from an AIX system. Thanks, madmaze

— Reply to this email directly or view it on GitHubhttps://github.com/madmaze/pyNmonAnalyzer/issues/3#issuecomment-21619523 .

madmaze commented 10 years ago

So I got my hands on an AIX file. If you are trying to get an interactive report, try with a config file like below:

CPU_ALL=user,sys,wait{stackedGraph: true, fillGraph: true}
DISKBUSY=hdisk1{}
MEM=Real total(MB),Real free(MB){}
NET=en2{}

To build an interactive report, run: ./pyNmonAnalyzer.py -i foo.nmon -o foo --buildInteractiveReport This doesn't yet work with static reports, but its on my todo list. Basically the issue is that AIX names columns differently than Linux does, therefore when it references the columns by it's Linux names, it falls over.

daixtr commented 10 years ago

thanks man.. i have been meditating on sending you AIX nmon logs but the logs contain too much info... I will try your latest updates.

On Thu, Dec 12, 2013 at 12:10 AM, Matthias Lee notifications@github.comwrote:

So I got my hands on an AIX file. If you are trying to get an interactive report, try with a config file like below:

CPU_ALL=user,sys,wait{stackedGraph: true, fillGraph: true} DISKBUSY=hdisk1{} MEM=Real total(MB),Real free(MB){} NET=en2{}

To build an interactive report, run: ./pyNmonAnalyzer.py -i foo.nmon -o foo --buildInteractiveReport This doesn't yet work with static reports, but its on my todo list. Basically the issue is that AIX names columns differently than Linux does, therefore when it references the columns by it's Linux names, it falls over.

— Reply to this email directly or view it on GitHubhttps://github.com/madmaze/pyNmonAnalyzer/issues/3#issuecomment-30333947 .

madmaze commented 10 years ago

so this should be fixed now, be sure to set your report.config to the right settings. See the defaults