标签:nmon
1、wget https://github.com/xanpeng/nmon/archive/master.zip
2、yum install unzip
3、unzip master.zip
4、cd nmon-master/
5、make (你有可能会看到如下错误信息)
[root@localhost nmon-master]# make cc -o nmon_power_rhel3 nmon.c -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncurs es -g -D POWER nmon.c:34:21: error: ncurses.h: No such file or directory nmon.c:1860: error: expected ‘)’ before ‘*’ token nmon.c:1971: error: expected ‘)’ before ‘*’ token nmon.c:1998: error: expected ‘)’ before ‘*’ token nmon.c: In function ‘init_pairs’: nmon.c:2078: warning: implicit declaration of function ‘init_pair’ nmon.c: In function ‘interrupt’: nmon.c:2129: warning: implicit declaration of function ‘endwin’ nmon.c:2131: warning: implicit declaration of function ‘initscr’ nmon.c:2133: warning: implicit declaration of function ‘cbreak’ nmon.c:2136: warning: implicit declaration of function ‘has_colors’ nmon.c:2138: warning: implicit declaration of function ‘start_color’ nmon.c:2142: warning: implicit declaration of function ‘clear’ nmon.c: In function ‘checkinput’: nmon.c:2743: warning: implicit declaration of function ‘nocbreak’ nmon.c: In function ‘main’: nmon.c:3436: error: ‘WINDOW’ undeclared (first use in this function) nmon.c:3436: error: (Each undeclared identifier is reported only once nmon.c:3436: error: for each function it appears in.) nmon.c:3436: error: ‘padmem’ undeclared (first use in this function) nmon.c:3437: error: ‘padlarge’ undeclared (first use in this function) nmon.c:3438: error: ‘padpage’ undeclared (first use in this function) nmon.c:3439: error: ‘padker’ undeclared (first use in this function) nmon.c:3440: error: ‘padres’ undeclared (first use in this function) nmon.c:3441: error: ‘padnet’ undeclared (first use in this function) nmon.c:3442: error: ‘padneterr’ undeclared (first use in this function) nmon.c:3443: error: ‘padnfs’ undeclared (first use in this function) nmon.c:3444: error: ‘padcpu’ undeclared (first use in this function) nmon.c:3445: error: ‘padsmp’ undeclared (first use in this function) nmon.c:3446: error: ‘padlong’ undeclared (first use in this function) nmon.c:3447: error: ‘paddisk’ undeclared (first use in this function) nmon.c:3448: error: ‘paddg’ undeclared (first use in this function) nmon.c:3449: error: ‘padmap’ undeclared (first use in this function) nmon.c:3450: error: ‘padtop’ undeclared (first use in this function) nmon.c:3451: error: ‘padjfs’ undeclared (first use in this function) nmon.c:3452: error: ‘padlpar’ undeclared (first use in this function) nmon.c:3453: error: ‘padverb’ undeclared (first use in this function) nmon.c:3454: error: ‘padhelp’ undeclared (first use in this function) nmon.c:3785: warning: implicit declaration of function ‘move’ nmon.c:3786: warning: implicit declaration of function ‘refresh’ nmon.c:3794: warning: implicit declaration of function ‘newpad’ nmon.c:4110: warning: implicit declaration of function ‘box’ nmon.c:4110: error: ‘stdscr’ undeclared (first use in this function) nmon.c:4111: warning: implicit declaration of function ‘mvprintw’ nmon.c:4119: warning: implicit declaration of function ‘wnoutrefresh’ nmon.c:4125: warning: implicit declaration of function ‘attrset’ nmon.c:4125: warning: implicit declaration of function ‘COLOR_PAIR’ nmon.c:4170: warning: implicit declaration of function ‘mvwhline’ nmon.c:4170: error: ‘ACS_HLINE’ undeclared (first use in this function) nmon.c:4170: error: ‘COLS’ undeclared (first use in this function) nmon.c:4170: warning: implicit declaration of function ‘wmove’ nmon.c:4170: warning: implicit declaration of function ‘wattron’ nmon.c:4170: error: ‘A_STANDOUT’ undeclared (first use in this function) nmon.c:4170: warning: implicit declaration of function ‘wprintw’ nmon.c:4170: warning: implicit declaration of function ‘wattroff’ nmon.c:4171: warning: implicit declaration of function ‘mvwprintw’ nmon.c:4213: error: ‘LINES’ undeclared (first use in this function) nmon.c:4213: warning: implicit declaration of function ‘pnoutrefresh’ nmon.c:4278: warning: implicit declaration of function ‘plot_snap’ nmon.c:4319: warning: implicit declaration of function ‘wattrset’ nmon.c:4377: warning: implicit declaration of function ‘plot_smp’ nmon.c:4386: warning: implicit declaration of function ‘save_smp’ nmon.c:6213: warning: implicit declaration of function ‘wrefresh’ nmon.c:6214: warning: implicit declaration of function ‘doupdate’ make: *** [nmon_power_rhel3] Error 1
6、yum install ncurses-devel 之后再 make 一次
7、多出了一个文件
8、./nmon_power_rhel3 执行这个文件显示如下
9、查看详细信息 按c键 m键 d键 ....等
标签:nmon
原文地址:http://blog.csdn.net/starparker/article/details/26249719