Alan,

Add the following line:

Options[10.10.2.1_4]: Gauge

This will prevent MRTG to calculate the rate. By default MRTG calculates
the rate by subtracting the previous result from the last result and
divide it by the elapsed time in seconds. 

Hth,

Jan.

-----Original Message-----
From: Dawson, Alan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 09, 2004 11:29 AM
To: [EMAIL PROTECTED]
Subject: [mrtg] Using MIB's in MRTG


Hi All

I'm trying to get MRTG to measure signal strength and packet speed on a
802.11b wifi network.

I've got a MIB for HostAP access points from here
http://www.avantcom.com/snmpAVC80211.asp

which seems to be working as I can get results like for signal rx
strength

boneidol:~ # snmpget 10.10.2.1 public
.1.3.6.1.3.14614.2.1.1.1.19.2.0.9.91.66.15.141
14614.2.1.1.1.19.2.0.9.91.66.15.141 = 41

and for packet last rx rate

boneidol:~ # snmpget 10.10.2.1 public
.1.3.6.1.3.14614.2.1.1.1.20.2.0.9.91.66.15.141
14614.2.1.1.1.20.2.0.9.91.66.15.141 = 10



So I put them in an mrtg stanza like 

### Interface 4 >> Descr: 'wlan0wds0' | Name: '' | Ip: '' | Eth: '' ###

Target[10.10.2.1_4]:.1.3.6.1.3.14614.2.1.1.1.19.2.0.9.91.66.15.141&.1.3.
6.1.
3.14614.2.1.1.1.20.2.0.9.91.66.15.141:[EMAIL PROTECTED]:
SetEnv[10.10.2.1_4]: MRTG_INT_IP="" MRTG_INT_DESCR="wlan0wds0"
MaxBytes[10.10.2.1_4]: 1250000
Title[10.10.2.1_4]: Traffic Analysis for 4 -- BoneIdol
PageTop[10.10.2.1_4]: <H1>Traffic Analysis for 4 -- BoneIdol</H1>
<TABLE>
   <TR><TD>System:</TD>     <TD>BoneIdol in Unknown</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>root@</TD></TR>
   <TR><TD>Description:</TD><TD>wlan0wds0  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>10.0 Mbits/s</TD></TR>
 </TABLE>

and put mrtg to run with cron.


Now .. Heres the problem

My files 10.10.2.1_4.log and 10.10.2.1_4.old never gets any data in it
.. though the first line looks promising  
for example

boneidol:/usr/local/httpd/htdocs/BoneIdolWifi # less 10.10.2.1_4.log
1078831204 42 110 1078831204 0 0 0 0 1078830904 0 0 0 0 1078830900 0 0 0
0

and 
boneidol:/usr/local/httpd/htdocs/BoneIdolWifi # less 10.10.2.1_4.old
1078830904 42 10 1078830904 0 0 0 0 1078830604 0 0 0 0


Help ... !  and Thanks

Alan Dawson
ICT Services
-- 
How to use E-mail effectively
http://www.greenend.org.uk/rjk/2000/06/14/quoting.html

--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke 
aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig 
overkomen van de informatie in deze e-mail. 
Aan dit bericht kunnen geen rechten worden ontleend. 

Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet 
voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de 
inhoud van het bericht te vernietigen. 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The ministry of Social Affairs and Employment is not liable for any incorrect 
or incomplete transmission of the information in this e-mail or for any delay 
in its receipt. 
This message shall not constitute any obligations.

This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and 
delete its content.

--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to