Ok, so this may have been done before, but for the life of me I could not find it documented. I have in the past been able to get CPU graphed via SNMP, but sometimes I want to see it right now.
Although the application is quite useful, I have found that the documentation is somewhat limited for the actual usage of the lrpStat application, specifically the C program that is distributed with the .tgz file. Tonight, I was able to get it working and wanted to share. -- First download the lrpstat file from the following website http://lrp.hejl.de/index.html Next, you'll need to extract it to a location that you can access the files from your LEAF box, I just dumped it to my Sourceforge account. Place the lrpStat binary from the ~/lrpStat0.13/bin/glibc20 directory in the /usr/sbin directory on the LEAF box. Modify the /usr/sbin/stat.sh in the following way: original: #!/bin/sh -e trap "exit 1" 1 trap "exit 1" 2 sleepTime=1; if [ -n "$1" ] ; then sleepTime=$1 fi while [ 1 ] do cat /proc/net/dev echo "#" sleep $sleepTime done modified: # cat stat.sh #!/bin/sh -e trap "exit 1" 1 trap "exit 1" 2 WAIT=${1:-5} while [ 1 ] do /usr/sbin/lrpStat sleep $WAIT done You'll need to restart the inetd service (svi inetd restart) and now to make the changes to the netmon.html file. Add the following to the netmon.html: <PARAM NAME=DEV2_NAME VALUE="cpu0"> <PARAM NAME=DEV2_LABEL VALUE="CPU"> <PARAM NAME=DEV2_MODE VALUE="histogram"> <PARAM NAME=DEV2_IN_CAPTION VALUE="Used"> <PARAM NAME=DEV2_OUT_CAPTION VALUE="N/A"> <PARAM NAME=DEV2_DRAW_LEGEND VALUE="0"> <PARAM NAME=DEV2_DRAW_STATUS VALUE="1"> <PARAM NAME=DEV2_DRAW_GRID VALUE="1"> <PARAM NAME=DEV2_DRAW_TITLE VALUE="1"> <PARAM NAME=DEV2_PERCENT VALUE="1"> <PARAM NAME=DEV2_GRID_INTERVAL VALUE="10"> The DEV2 portion may be different in your environment, please adjust to the next available number in sequence. Now just reload the webpage, and you should see 'live' cpu stats. I hope this helps someone, if you gues have any questions, please let me know. Joey Officer ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
