[mrtg] Need help graphing Linksys WET54G

Josh hawk82 at gmail.com
Tue Dec 11 16:38:36 CET 2007


On Dec 9, 2007 12:16 AM, Brian A. Seklecki
<lavalamp at spiritual-machines.org> wrote:
> On Sat, 2007-12-08 at 23:48 -0500, Josh wrote:
> > I've got a few Linksys WET54G wireless ethernet bridges running at a
> > customer's office and home.  I'd like to be able to graph the wireless
> > interface, particularly the SNR, signal, noise, etc.  I've enabled
>
>
> If you can find a MIB, you can find names and OIDs.  The SNR will be a
> guage type.  The wifi interface will be a counter.  Other error counters
> will be counter32.
>
> God speed.
>
> ~BAS
>
>

The only MIBs I found was in the GPL code for the Linksys WET54G
equipment (v2 firmware which I guess v3 hardware uses).  However, I
could not make heads or tails of it.  Not really commented well.
I did however check out the status page code that the internal web
server of the WET54G displays and found the relevant info in
javascript.
[code]
	if(wMode != 1){ // other than Infrastructure
		putInfo(1,'','Link Quality&nbsp;','N/A',1,25);
	}
	else{ // Infrastructure mode
		if(!APfound	){
			putInfo(1,'','Link Quality&nbsp;','N/A',1,25);
		}
		else{
			q = AP[3];
			q -= 256;
			q = Math.round((q+120)*100/(-45-(-90)));
			if(q > 100) q=100;
			if(q < 0) q=0;
			var quality = q + "%";
			putInfo(1,'','Link Quality&nbsp;',quality,1,25);
		}
	}
[/code]
Problem is that I cannot determine where it is pulling the original
number.  The previous code only seems to deal with IP address, subnet
mask, BSSID, etc (stuff I don't need).

This is more of a project then a necessary job.  I just thought it
would be helpful (and kinda cool) to graph the wireless interfaces and
see how the signal drops during the year (leaf out) and then returns
during the winter (which it is right now).

I haven't tried e-mailing Linksys support to see if they could supply
me with the info.  Not sure if they could help me or not as these
features don't seem to be supported.

Josh



More information about the mrtg mailing list