| Blogs | Classifieds | Downloads | FlashChat | Gallery | Googlemap | Invite Friends | Links | Projects | Reviews | Wiki |
| |||||||||
|
#1
| ||||
| ||||
trying to produce graphs using nmom. read the nmon manual and don't see an exact way to do it. I am using nmon to gather info locally on the server but when I bring it over to my PC, no graphs just a bunch of info. any help would be appreciated. Thanks in advance. |
|
#2
| ||||
| ||||
__________________ Ross Mather, IBM AIX IT Specialist. That said anything I say here is my own opinion and not anything that you can ever hold against IBM. Ohhh and don't forget that I make mistakes too.... |
|
#3
| ||||
| ||||
Hello Tyraven, You can start nmon with the following parameters: nmon -F /<filename.csv> -c <number of refreshes> -s <seconds between refreshing> -V -P -Y -V = Include Disk volume group section -P = Include paging -Y = Include Command summary The resulting file can be converted from .csv to a nice Excel-sheet with graphs. See: at ibm.com see developerworks/aix/library/au-nmon_analyser My nmon script: ================================================== ========== #!/bin/ksh # This script will start nmon in a controlled fashion.# # Variables DATE=`date +"%Y-%m-%d"` HOST=`hostname` FILE=nmon_${HOST}_$DATE.csv NMONBIN=/usr/local/etc NMONLOG=/var/log/nmon SCRIPTNAME=`basename $0` LOGFILE=/tmp/nmon_system_log.sh.$$ EMAIL="<your e-mail>" DOMAIL="NO" if [[ $1 = "" || $2 = "" ]]; then echo echo "Usage: $SCRIPTNAME <number of refreshers> <seconds delay>" echo echo "$SCRIPTNAME 180 60 #Will run nmon for 180 refreshes of 60 seconds." echo exit fi RUN_CMD() { ERROR="NO" if ! $* >> $LOGFILE 2>&1 then ERROR="YES" fi } # Check if there is a nmon -F process running if [ ! "$(ps -ef |grep "nmon" |grep -v "grep" |grep "\-F" )" = "" ] then echo "ERROR: An other nmon proces with option -F has been detected!" >> $LOGFILE DOMAIL="YES" else # install new nmon version when we detect a nmon.new file. if [ -e $NMONBIN/nmon.new ] then mv $NMONBIN/nmon.new $NMONBIN/nmon fi PARM="" if [ "$(uname -s)" = "AIX" ] then PARM="-V -P -Y" fi RUN_CMD $NMONBIN/nmon -F $NMONLOG/$FILE -c$1 -s$2 $PARM DOMAIL=$ERROR fi if [ "$DOMAIL" = "YES" ] then mail -s "ERROR: $SCRIPTNAME on $HOST - $(date "+%A %d %B %Y")" $EMAIL < $LOGFILE sleep 10 rm -f $LOGFILE 2> /dev/null fi ================================================== ========== Quote:
|
|
#4
| ||||
| ||||
__________________ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Glad to help |
|
#5
| ||||
| ||||
instead of using excel to import the nmon files: /developerworks/forums/thread.jspa?threadID=266032&tstart=0 (i can't post links yet so after w w w . ibm . com paste the above) regards Randy |
![]() |
| Bookmarks |
| Tags |
| graphs, nmon |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |