четверг, 15 июля 2010 г.

FreeBSD monitoring tool

I like to have a single monitoring tool for all my needs: to monitor I/O, interface bandwidth, virtual memory usage, ip statistics and so on.
Fortunately, there is such tool in FreeBSD: systat:
# systat
/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10
Load Average ||

/0% /10 /20 /30 /40 /50 /60 /70 /80 /90 /100
root idle XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
root idle XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
root idle XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
root idle XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
alp trackerd XXXXXXXXX
alp firefox-bi X

Now, as in vi, we could use command line to choose necessary statisctics: e.g. we can type ":io"
and then ":numbers" to look at I/O rates:
/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10
Load Average ||

/0% /10 /20 /30 /40 /50 /60 /70 /80 /90 /100
cpu user|
nice|
system|X
interrupt|
idle|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

ad4 ad6 ad12
KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s
0,00 0 0,00 0,00 0 0,00 0,00 0 0,00
0,00 0 0,00 0,00 0 0,00 0,00 0 0,00


ar0 md0 cd0
KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s
61,46 457 27,45 0,00 0 0,00 0,00 0 0,00
61,05 452 26,97 0,00 0 0,00 0,00 0 0,00

Or, we just can watch interface bandwidth with ":ifstat":
/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10
Load Average |

Interface Traffic Peak Total
lo0 in 0,039 KB/s 0,039 KB/s 1,777 MB
out 0,039 KB/s 0,039 KB/s 1,777 MB

em0 in 0,403 KB/s 0,403 KB/s 26,535 MB
out 0,000 KB/s 0,000 KB/s 4,549 MB

I really like this tool!

Комментариев нет:

Отправить комментарий