HI, I am running mrtg on my locate eth card. The script that I got from here http://www.geek.net.au/mrtg.html collects the data in 2 ways
perl -e '@a=split(/[:\s]+/,qx(grep eth0 /proc/net/dev));$f="%.0f";$fmt="$f\n$f\n1\neth0 traffic\n";$s=sprintf $fmt,$a[2],$a[10];print $s; print STDERR $s;'`; and perl -e '$s1=1;$s2=$s1;$f="%.0f";$fmt="$f\n$f\n1\neth0sar traffic\n";$o=sprintf $fmt,(qx(/usr/bin/sar -n DEV | grep eth0 | tail -2)=~/eth0\s+[^\s]+\s+[^\s]+\s+([^\s]+)\s+([^\s]+)/); print $o; print STDERR $o;'`; The reports are generating just fine but the output of the 2 reports are different. The Average Out are almost exactly the same but the Average In is drastically different. What is the difference between: /usr/bin/sar -n DEV and grep eth0 /proc/net/dev Is there 1 that is more accurate? Thanks Steve _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list