njmon: the next generation tool of nmon

This article refers to the original- 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.

Similar to nmon, but the output is in JSON format and can be used for server performance statistics.

Original link: http://nmon.sourceforge.net/docs/nmon_why.png

Comparison with nmon

Functional comparison between nmon and njmon:

Comparison of analysis tools:

install

# download  
$ wget http://sourceforge.net/projects/nmon/files/njmon_linux_binaries_v53.zip  
  
# decompression  
$ unzip njmon_linux_binaries_v53.zip  
  
# Select the corresponding version and put it under bin of local  
$ mv njmon_linux_RHEL7_AMD64_v53 /usr/local/bin/njmon  
  
# Verification  
$ njmon -?  

Frequently used commands

view help

$ njmon -?  

Every 5 minutes, one day

$ njmon -s 300 -c 288 -f -m /tmp  

Explain:

  • -s: Acquisition interval, in seconds, default 60 seconds
  • -c: Collection times, default permanent
  • -f: Output to file, data content: hostname.json, error content: hostname.err
  • -m: File storage directory

Default interval (- s 60), save json results

$ njmon > daodaotest.json  

Report generation using njmon2chart

# download  
$ wget http://sourceforge.net/projects/nmon/files/njmonchart_v40.zip  
  
# decompression  
$ unzip njmonchart_v40.zip  
  
# Select the corresponding version and put it under bin of local  
$ mv njmonchart_linux_v40.py /usr/local/bin/njmonchart  
  
# Add execution permission  
$ chmod +x /usr/local/bin/njmonchart  
  
# Generate html report  
$ njmonchart daodaotest.json daodaotest.html  

Report screenshot

CPU chart

Memory chart

Tool map

This article refers to the original- 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.

Similar to nmon, but the output is in JSON format and can be used for server performance statistics.

Original link: http://nmon.sourceforge.net/docs/nmon_why.png

Comparison with nmon

Functional comparison between nmon and njmon:

Comparison of analysis tools:

install

# download  
$ wget http://sourceforge.net/projects/nmon/files/njmon_linux_binaries_v53.zip  
  
# decompression  
$ unzip njmon_linux_binaries_v53.zip  
  
# Select the corresponding version and put it under bin of local  
$ mv njmon_linux_RHEL7_AMD64_v53 /usr/local/bin/njmon  
  
# Verification  
$ njmon -?  

Frequently used commands

view help

$ njmon -?  

Every 5 minutes, one day

$ njmon -s 300 -c 288 -f -m /tmp  

Explain:

  • -s: Acquisition interval, in seconds, default 60 seconds
  • -c: Collection times, default permanent
  • -f: Output to file, data content: hostname.json, error content: hostname.err
  • -m: File storage directory

Default interval (- s 60), save json results

$ njmon > daodaotest.json  

Report generation using njmon2chart

# download  
$ wget http://sourceforge.net/projects/nmon/files/njmonchart_v40.zip  
  
# decompression  
$ unzip njmonchart_v40.zip  
  
# Select the corresponding version and put it under bin of local  
$ mv njmonchart_linux_v40.py /usr/local/bin/njmonchart  
  
# Add execution permission  
$ chmod +x /usr/local/bin/njmonchart  
  
# Generate html report  
$ njmonchart daodaotest.json daodaotest.html  

Report screenshot

CPU chart

Memory chart

Tool map

Tags: Programming JSON Database Linux

Posted on Tue, 24 Mar 2020 11:59:30 -0400 by Alex007152