Refer to the original paper-http: //bjbsair.com/2020-03-22/tech-info/2813/
njmon
njmon = nmon + JSON format + real-time push to a stats database + instant graphing of “all the stats you can eat” (AIX and Linux)
This njmon is a major overhaul of nmon for the next 10 years:
Load more stats
JSON format is self documenting, flexible and the performance stats format for many new tools
Direct real-time loading of the JSON into modern open source time aware databases
New age browser based graphing tools allow dynamic data choice and graph style per VM, per server or across the estateAll this will be covered and more including many demo’s.
And nmon similar, but the output is in JSON format, it can be used for server performance statistics.
Original link: http: //nmon.sourceforge.net/docs/nmon_why.png
Comparison with nmon
nmon and njmon feature comparison:
Comparative analysis tool:
installation
# 下载
$ wget http://sourceforge.net/projects/nmon/files/njmon_linux_binaries_v53.zip
# 解压
$ unzip njmon_linux_binaries_v53.zip
# 选择相应版本,放到 local 的 bin 下
$ mv njmon_linux_RHEL7_AMD64_v53 /usr/local/bin/njmon
# 验证
$ njmon -?
Common Commands
View Help
$ njmon -?
5 min intervals, collected one day
$ njmon -s 300 -c 288 -f -m /tmp
Description:
- -s: collection interval, in seconds, default 60 seconds
- -c: number of acquisitions, the default permanent
- -f: output to a file, the data content: hostname.json, error contents: hostname.err
- -m: file storage directory
The default interval (-s 60), save json results
$ njmon > daodaotest.json
Generate reports using njmon2chart
# 下载
$ wget http://sourceforge.net/projects/nmon/files/njmonchart_v40.zip
# 解压
$ unzip njmonchart_v40.zip
# 选择相应版本,放到 local 的 bin 下
$ mv njmonchart_linux_v40.py /usr/local/bin/njmonchart
# 添加执行权限
$ chmod +x /usr/local/bin/njmonchart
# 生成 html 报告
$ njmonchart daodaotest.json daodaotest.html
Report Screenshot
CPU Charts
Memory chart