<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<tt></tt>
<br><font face="Times New Roman,Times">Hello everyone. </font><tt>
<i>I am new here, and have not yet finished going through the archive</i>
<b>so this question may have been answered before...</b></tt><tt></tt>
<p><tt><u><font color="#3333FF">Does anyone have a 'clue' on what I need
to do to get the Processor Load to graph out?</font></u></tt>
<br><tt></tt> <tt></tt>
<p><tt>I am working trying to get <font color="#009900">MRTG</font> to
give me <font color="#3366FF">CPU stats</font>...</tt><tt></tt>
<p><tt>scully</tt>
<br><tt> - SunOS 5.6</tt>
<br><tt> - mrtg 2.8.6</tt>
<br><tt> - UCD-snmp 4.0.1</tt><tt></tt>
<p><tt>iceberg</tt>
<br><tt> - Linux 2.2.5-15</tt>
<br><tt> - UCD-snmp 3.6.1</tt>
<br><tt> </tt>
<br><tt>-=-=-=-=--= iceberg<font color="#009900">.cfg</font> -=-=-=-=--=
(( this is the '''whole file''' ))</tt>
<br><tt>WorkDir: /export/home/mrtg/data</tt>
<br><tt>Target[ICEBERG.wfd.pri.bms.com]: 1.3.6.1.2.1.25.3.3.1.2.769&1.3.6.1.2.1.25.3.3.1.2.769:public@iceberg</tt>
<br><tt>MaxBytes[ICEBERG.wfd.pri.bms.com]: 1250000</tt>
<br><tt>Title[ICEBERG.wfd.pri.bms.com]: iceberg (ICEBERG.wfd.pri.bms.com):
hrProcessorLoad</tt>
<br><tt>PageTop[ICEBERG.wfd.pri.bms.com]: <H1>Traffic Analysis for hrProcessorLoad</tt>
<br><tt> </H1></tt>
<br><tt> <TABLE></tt>
<br><tt> <TR><TD>System:</TD><TD>iceberg in Look
behind you</TD></TR></tt>
<br><tt> <TR><TD>Maintainer:</TD><TD>Greg Stiegler
<stiegleg@bms.com> </TD></TR></tt>
<br><tt> <TR><TD>Interface:</TD><TD>hrProcessorLoad
(2)</TD></TR></tt>
<br><tt> <TR><TD>IP:</TD><TD>ICEBERG.wfd.pri.bms.com
(140.176.249.28)</TD></TR></tt>
<br><tt> <TR><TD>Max Speed:</TD></tt>
<br><tt> <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR></tt>
<br><tt> </TABLE></tt>
<br><tt>-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^</tt><tt></tt>
<p><tt>comment # # (( I have ran the snmpget command directly and I know
that the</tt>
<br><tt>comment # # result is returned. And I know
that it is integer ))</tt>
<br><tt>comment #</tt>
<br><tt> scully # <font color="#3366FF">snmpget -q -f iceberg public
</font>hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad.769</tt>
<br><tt> .iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad.769
<font color="#3333FF">10</font></tt>
<br><tt> 1 . 3 . 6 . 1 . 2
. 1 . 25 . 3 .
3 . 1
. 2
.769</tt>
<br><tt> 1.3.6.1.2.1.25.3.3.1.2.769</tt><tt></tt>
<p><tt>scully # LD_LIBRARY_PATH=/usr/lib:/usr/local/lib ; export LD_LIBRARY_PATH</tt>
<br><tt>scully # <font color="#3366FF">/export/home/src/mrtg/mrtg-2.8.6/run/mrtg.debug
/export/home/mrtg/configs/iceberg.cfg</font></tt>
<br><tt>.</tt>
<br><tt>. ((((( note I modified the DEBUG flag and the
lines to see that the values are being created</tt>
<br><tt>.</tt>
<br><tt> <b><font color="#000099">- inlast( 2 )</font></b></tt>
<br><tt> <font color="#000099">-<b> outlast( 2 )</b></font></tt>
<br><tt> - uptime( 4 days, 9:43:53 )</tt>
<br><tt> - name( iceberg )</tt>
<br><tt> - time( 940020397 )</tt>
<br><tt>.</tt>
<br><tt>.</tt>
<br><tt>.</tt>
<br><tt> << writegraphics - entrance >> 1</tt><tt></tt>
<p><tt> writegraphics: inlast 2 outlast 2</tt>
<br><tt> <><><><><><><><> check</tt>
<br><tt> /export/home/src/mrtg/mrtg-2.8.6/run//rateup /export/home/mrtg/data/
iceberg.wfd.pri.bms.com 940020397, ? '-z':'-Z' u 2, 2, 1250000: c#00cc00,
#0000ff #006600, #ff00ff EXEC: /export/home/src/mrtg/mrtg-2.8.6/run//rateup
/export/home/mrtg/data/ iceberg.wfd.pri.bms.com 940020397 -Z u 2 2 1250000
c #00cc00 #0000ff #006600 #ff00ff k 1000 i iceberg.wfd.pri.bms.com-day.png
-1250000 -1250000 400 100 1 1 0 300 0 4 1 i iceberg.wfd.pri.bms.com-week.png
-1250000 -1250000 400 100 1 1 0 1800 0 4 1 i iceberg.wfd.pri.bms.com-month.png
-1250000 -1250000 400 100 1 1 0 7200 0 4 1 i iceberg.wfd.pri.bms.com-year.png
-1250000 -1250000 400 100 1 1 0 86400 0 4 1</tt>
<br><tt>.</tt>
<br><tt>.</tt>
<br><tt>.</tt><tt></tt>
<p><tt>And I know 'rateup' is getting the information... ((note -
I like the coding of rateup, clean!))</tt><tt></tt>
<p><tt> # <font color="#3366FF">head /export/home/mrtg/data/iceberg.wfd.pri.bms.com.log</font></tt>
<br><tt><font color="#3366FF">940020397 2 2</font></tt>
<br><tt><font color="#FF0000">940020397 0 0 0 0</font></tt>
<br><tt><font color="#FF0000">939846271 0 0 0 0 </font><font color="#3366FF">((
incorrect... should have updated ))</font></tt>
<br><tt><font color="#FF0000">939846000 0 0 0 0</font></tt>
<br><tt><font color="#FF0000">939845700 0 0 0 0</font></tt>
<br><tt>.</tt>
<br><tt>.</tt>
<br><tt>.</tt><tt></tt>
<p><tt><font color="#CC0000">But each time I run mrtg - ONLY the first
line in the log file gets updated...</font></tt><tt></tt>
<p><tt>'rateup' should be getting the values, and the log file does get
them, but the rest of the file is zeroed out... ?</tt><tt></tt>
<p><tt>NOTE:: I use cfgmaker, mrtg, and indexmaker on cisco routers, and
''they graph out''! The log file grows, and shows the correct values
- just not for Processor Load... I know that the '.ok' file is not created
when I run mrtg for this file - and I even understand that it is because
of the 'newifDescrs' not being ?returned? because of the command that is
being sent out...</tt>
<br><tt></tt> <tt></tt>
<p><tt> 1906
($in,$out,$uptime,$name,$newifDescrs{$targ}) =</tt>
<br><tt> vs</tt>
<br><tt> 1924
($in,$out,$uptime,$name) =</tt>
<br><tt></tt> <tt></tt>
<p><tt><font color="#990000">Does anyone have a 'clue' on what I need to
do to get the Processor Load to graph out?</font></tt><tt></tt>
<p><tt>Clues - direction - and expecially '''answers''' would be greatly
appreciated...</tt><tt></tt>
<p><tt>Thank you in advance</tt><tt></tt>
<p><tt>Robin</tt><tt></tt>
<p><tt>PS - Sorry for the size of the question...</tt></html>