3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MS Excelを使用せずにAIXやLinuxのnmonデータをグラフ表示

Last updated at Posted at 2020-11-11

nmonchartを使うことで、MAC上でもAIXやLinuxのnmonデータをグラフ表示可能

背景

nmonは、AIXやLinuxのパフォーマンス情報や構成情報を収集、表示するOSSユーティリティ。各種Linuxに対応。AIXには同梱される。
CUI全画面モードとデータを収集するモードがある。

nmonで収集したデータをMS Excel上でグラフ表示するユーティリティとしてnmon analyserが存在するが、MAC上のExcelでは現時点で動作が確認できなかった。

ソリューション

nmonchartを使うことで、MAC上などでもExcelを使用することなく、nmonデータからパフォーマンス情報などのグラフ表示が可能。

参照

グラフ表示の例(上のサイトに含まれる)

MAC上での導入、使用イメージ

Linux, AIXなどで情報収集

# nmon -f -s 10 -c 120 -t

10秒おきに120回分の情報を./<ノード名>\_<日時>.nmonテキストファイルに出力
以下、データファイルをp8126a_201111_1529.nmonとする。

MAC上でのhtml作成、表示イメージ

要ksh

## nmonchartスクリプトを含むgitリポジトリーを入手
$ git clone --depth 1 git@github.com:aguther/nmonchart.git

## 対象マシンからnmonデータをローカルにcopy
$ scp p8126a:p8126a_201111_1529.nmon . 

## スクリプトを実行し、htmlファイルを作成
$ ksh nmonchart/nmonchart p8126a_201111_1529.nmon

## 作成したファイルをsafariで表示
$ open -a /Applications/Safari.app p8126a_201111_1529.nmon.html

バージョンは上のサイトからtarで落とした方が新しいので注意。

nmonchartスクリプトの内容を確認すると、AIXもしくはLinux上での実行を想定しているので、MAC上での実行に問題が出る様であれば、nmon対象ノード上でhtml化することで回避できる可能性がある。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?