nmon – monitor di sistema

Nmon  ( Nigel’s Monitor )  è un programma, molto completo per monitorare in real time il sistema con contenute risorse di Cpu.
Fornisce info dettagliare e chiare su: CPU, memoria, dischi, processi, rete, kernel, file systems e adapters e  in AIX Workload Manger e  Workload Partitions.

Si installa e si avvia con

sudo apt-get install nmon
nmon monitor di sistema

nmon monitor di sistema

Una volta avviato per accedere alle principali statistiche premere i seguenti tasti :

c per la cpu
m stato della memoria
n statistiche network
t statistche processi (come top)
v check semplice (CPU e dischi)   con OK, Warnings e Danger
r computer type, name, cache e versione OS + LPAR
h per visualizzare come accedere alle varies statisticheprincipali statistiche.

I tasti funzionano in modalità on/off. Premendo nuovamente lo stesso tasto viene disattivata la statistica precedentemente attivata.

nmon prevede anche una modalità raccolta dati  “Data-Collect-Mode”. Per  raccogliere i dati utilizzare l’opzione -f il formato è di tipo spreadsheet

nmon in teminator

nmon in due pc con teminator

nmon [-h] [-s ] [-c ] [-f -d  -t -r ] [-x]

	-h            FULL help information
	read startup banner and type: "h" once it is running
	For Data-Collect-Mode (-f)
	-f            spreadsheet output format [note: default -s300 -c288]
	-s   between refreshing the screen [default 2]
	-c    of refreshes [default millions]
	-d     to increase the number of disks [default 256]
	-t            spreadsheet includes top processes
	-x            capacity planning (15 min for 1 day = -fdt -s 900 -c 96)

Version - nmon 13g

For Interactive-Mode
	-s   time between refreshing the screen [default 2]
	-c    of refreshes [default millions]
	-g  User Defined Disk Groups [hit g to show them]
	              - file = on each line: group_name  space separated
	              - like: database sdb sdc sdd sde
	              - upto 64 disk groups, 512 disks per line
	              - disks can appear more than once and in many groups
	-b            black and white [default is colour]
	example: nmon -s 1 -c 100

For Data-Collect-Mode = spreadsheet format (comma separated values)
	Note: use only one of f,F,z,x or X and make it the first argument
	-f            spreadsheet output format [note: default -s300 -c288]
			 output file is _YYYYMMDD_HHMM.nmon
	-F  same as -f but user supplied filename
	-r   used in the spreadsheet file [default hostname]
	-t            include top processes in the output
	-T            as -t plus saves command line arguments in UARG section
	-s   between snap shots
	-c    of snapshots before nmon stops
	-d     to increase the number of disks [default 256]
	-l       disks/line default 150 to avoid spreadsheet issues. EMC=64.
	-g  User Defined Disk Groups (see above) - see BBBG & DG lines
	-N            include NFS Network File System
	-I   Include process & disks busy threshold (default 0.1)
	              don't save or show proc/disk using less than this percent
	-m  nmon changes to this directory before saving to file
	example: collect for 1 hour at 30 second intervals with top procs
		 nmon -f -t -r Test1 -s30 -c120

	To load into a spreadsheet:
	sort -A *nmon >stats.csv
	transfer the stats.csv file to your PC
	Start spreadsheet & then Open type=comma-separated-value ASCII file
	 The nmon analyser or consolidator does not need the file sorted.

Capacity planning mode - use cron to run each day
	-x            sensible spreadsheet output for CP =  one day
	              every 15 mins for 1 day ( i.e. -ft -s 900 -c 96)
	-X            sensible spreadsheet output for CP = busy hour
	              every 30 secs for 1 hour ( i.e. -ft -s 30 -c 120)

Interactive Mode Commands
	key --- Toggles to control what is displayed ---
	h   = Online help information
	r   = Machine type, machine name, cache details and OS version + LPAR
	c   = CPU by processor stats with bar graphs
	l   = long term CPU (over 75 snapshots) with bar graphs
	m   = Memory stats
	L   = Huge memory page stats
	V   = Virtual Memory and Swap stats
	k   = Kernel Internal stats
	n   = Network stats and errors
	N   = NFS Network File System
	d   = Disk I/O Graphs
	D   = Disk I/O Stats
	o   = Disk I/O Map (one character per disk showing how busy it is)
	o   = User Defined Disk Groups
	j   = File Systems 
	t   = Top Process stats use 1,3,4,5 to select the data & order
	u   = Top Process full command details
	v   = Verbose mode - tries to make recommendations
	b   = black and white mode (or use -b option)
	.   = minimum mode i.e. only busy disks and processes

	key --- Other Controls ---
	+   = double the screen refresh time
	-   = halves the screen refresh time
	q   = quit (also x, e or control-C)
	0   = reset peak counts to zero (peak = ">")
	space = refresh screen now

Startup Control
	If you find you always type the same toggles every time you start
	then place them in the NMON shell variable. For example:
	 export NMON=cmdrvtan

	a) To you want to stop nmon - kill -USR2 
	b) Use -p and nmon outputs the background process pid
	c) To limit the processes nmon lists (online and to a file)
	   Either set NMONCMD0 to NMONCMD63 to the program names
	   or use -C cmd:cmd:cmd etc. example: -C ksh:vi:syncd
	d) If you want to pipe nmon output to other commands use a FIFO:
	   mkfifo /tmp/mypipe
	   nmon -F /tmp/mypipe &
	   grep /tmp/mypipe
	e) If nmon fails please report it with:
	   1) nmon version like: 13g
	   2) the output of cat /proc/cpuinfo
	   3) some clue of what you were doing
	   4) I may ask you to run the debug version

	Developer Nigel Griffiths
	Feedback welcome - on the current release only and state exactly the problem
	No warranty given or implied.


Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo di WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione /  Modifica )

Google photo

Stai commentando usando il tuo account Google. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...