Recent Changes - Search:

Home Page



Other tools


edit SideBar

Nmon2json

Site.Nmon2json History

Hide minor edits - Show changes to output

December 14, 2017, at 01:04 PM by 127.0.0.1 -
Added lines 35-39:
Possible "to do" projects:
* Extract individual network stats
* Extract individual disk stats
* Problem with the above two is with many networks and 100's of disks this would be a massive increase in the volume of data - let me know what you think. Yes, no, make it optional?
Deleted lines 48-49:

nmon2json_python_example_code_v26.py
December 14, 2017, at 12:34 PM by 127.0.0.1 -
Added lines 38-41:
||[[http://sourceforge.net/projects/nmon/files/nmon2json_python_example_code_v26.py|nmon2json_python_example_code_v26.py]] ||Python v3 example program of reading the nmon2json output files &\\
extracting the data - to get you started. \\
Assumes some Python & you can edit to suite your files. \\
The code near the end covers both single & multiple level formats.||
Added lines 44-45:

nmon2json_python_example_code_v26.py
December 14, 2017, at 12:23 PM by 127.0.0.1 -
Changed lines 26-27 from:
For example:
* nmon for AIX data file:
to:
For example of generated JSON data:
* '''nmon for AIX''' data file:
Changed line 31 from:
* nmon for Linux data file:
to:
* '''nmon for Linux''' data file:
December 14, 2017, at 12:22 PM by 127.0.0.1 -
Changed lines 9-15 from:
* nmon2json nmonfile -> Single level output
* nmon2json -m nmonfile -> Multi level output
* nmon2json -h -> output this help & version

Modes:
* Default - All data goes into an unnamed array of dictionaries (in Python terms)
* -m In Python terms, an "info": {...} dictionary once then followed by a "samples": array of dictionaries
to:
* nmon2json nmonfile.nmon
** Single level output
* nmon2json -m nmonfile.nmon
** Multi level output
* nmon2json -h
** Output help & version

Options:
* '''Default'''
** All data goes into an unnamed array of dictionaries (in Python terms)
* '''-m'''
** In Python terms, an "info": {...} dictionary once then followed by a "samples": array of dictionaries
December 14, 2017, at 12:16 PM by 127.0.0.1 -
Deleted lines 20-21:

Changed lines 22-26 from:
* nmon2json sampleL.nmon >sampleL.json
* [[http:/docs/sampleL_nmon2json_v26_single_level.json|sampleL_nmon2json_v26_single_level.json]]

Here is a simple small sample output file so you can see what the graphs look like:
*
to:
* nmon for AIX data file:
** Single level output generated: [[http:/docs/sampleD_nmon2json_v26_single_level.json|sampleD_nmon2json_v26_single_level.json]] ~139 KB
** Multiple level output generated: [[http:/docs/sampleD_nmon2json_v26_multiple_level.json|sampleD_nmon2json_v26_multiple_level.json]] ~100 KB

* nmon for Linux data file:
** Single level output generated: [[http:/docs/sampleL_nmon2json_v26_single_level.json|sampleL_nmon2json_v26_single_level.json]] ~1.1 MB
** Multiple level output generated: [[http:/docs/sampleL_nmon2json_v26_multiple_level.json|sampleL_nmon2json_v26_multiple_level.json]] ~1.0 MB
December 14, 2017, at 12:11 PM by 127.0.0.1 -
Changed line 18 from:
* nmon2json myfile.nmon >single_level.json
to:
* nmon2json myfile.nmon >single_level.json
Added lines 21-22:

Changed lines 24-25 from:
* nmon2json sampleD.nmon >sampleD.json
to:
* nmon2json sampleL.nmon >sampleL.json
* [[http:/docs/sampleL_nmon2json_v26_single_level.json|sampleL_nmon2json_v26_single_level.json]]
December 14, 2017, at 12:04 PM by 127.0.0.1 -
Changed lines 30-31 from:
||[[http://sourceforge.net/projects/nmon/files/nmon2json_v26.tar|nmon2json_v26.tar]] ||'''Current version 26 - 14th Dec 2017''' %red%TO BE UPLOADED SOON%%||
to:
||[[http://sourceforge.net/projects/nmon/files/nmon2json_v26.tar|nmon2json_v26.tar]] ||'''Version 26 - 14th Dec 2017'''\\
includes sample input & output files ||
December 14, 2017, at 11:22 AM by 127.0.0.1 -
Changed line 30 from:
||[[http://sourceforge.net/projects/nmon/files/nmon2json_v26.tar|nmon2json_v26.tar]] ||'''Current version 26 - 14th Dec 2017''' %red%TO BE UPLOADED SOON%%'''||
to:
||[[http://sourceforge.net/projects/nmon/files/nmon2json_v26.tar|nmon2json_v26.tar]] ||'''Current version 26 - 14th Dec 2017''' %red%TO BE UPLOADED SOON%%||
December 14, 2017, at 11:21 AM by 127.0.0.1 -
Changed line 30 from:
||[[http://sourceforge.net/projects/nmon/files/nmon2json_v26.tar|nmon2json_v26.tar]] ||'''Current version 26 - 14th Dec 2017''' TO BE UPLOADED SOON||
to:
||[[http://sourceforge.net/projects/nmon/files/nmon2json_v26.tar|nmon2json_v26.tar]] ||'''Current version 26 - 14th Dec 2017''' %red%TO BE UPLOADED SOON%%'''||
December 14, 2017, at 11:21 AM by 127.0.0.1 -
Added lines 1-30:
[+++nmon2json - reformat you nmon files to JSON format+++]

'''%blue%nmon2json is a Korn shell script for AIX or Linux to convert nmon collected files to JSON \\
- which is Python friendly and accepted by online performance tools like Splunk and ELK(logstash)%%'''

It is ~450 lines of fairly simple Ksh script so please fix bugs or add functions and let me know the changes.

Syntax:
* nmon2json nmonfile -> Single level output
* nmon2json -m nmonfile -> Multi level output
* nmon2json -h -> output this help & version

Modes:
* Default - All data goes into an unnamed array of dictionaries (in Python terms)
* -m In Python terms, an "info": {...} dictionary once then followed by a "samples": array of dictionaries

Example:
* nmon2json myfile.nmon >single_level.json
* nmon2json -m myfile.nmon >multi_level.json

For example:
* nmon2json sampleD.nmon >sampleD.json

Here is a simple small sample output file so you can see what the graphs look like:
*

[++Downloads++]
||border=1
||'''Download File''' ||'''Comments'''||
||[[http://sourceforge.net/projects/nmon/files/nmon2json_v26.tar|nmon2json_v26.tar]] ||'''Current version 26 - 14th Dec 2017''' TO BE UPLOADED SOON||
Edit - History - Print - Recent Changes - Search
Page last modified on December 14, 2017, at 01:04 PM