Monitoring Linksys WRT54G with DD-WRT

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Author
Message
Teakus
Posts: 1
Joined: Wed Jan 17, 2007 10:20 am

Monitoring Linksys WRT54G with DD-WRT

#1 Post by Teakus » Wed Jan 17, 2007 10:39 am

Hello!

First, i am new in CACTI and RRDTOOL. CACTI 0.8.6i is installed on a x86 Machine running with Windows 2000 and XAMPP. Installation and configuration of RRDTOOL and CACTI including polling mechanism is complete and working fine so far as i can see.

I want to monitor a group of Linksys WRT54G running with DD-WRT v2.3 SP2, especially network traffic over its WLAN interface (eth1) and its wireless signal level (RSSI and Noise).

Network traffic monitoring works fine for each WRT54G but i cant configure a data query for the wireless signal level. I have tried the Karlnet data query but it does not load any data from DD-WRT.

Hope anyone can help me with this issue. Thanks!

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#2 Post by gandalf » Sat Jan 27, 2007 4:08 pm

YOu may search this forum for templates.
Or create one on your own. Find walkthroughs on how to do so at the first link of my signature

User avatar
hbokh
Posts: 40
Joined: Thu Feb 24, 2005 4:29 pm
Location: Groningen, NL

#3 Post by hbokh » Sun Jan 28, 2007 5:26 am

Although it's written for the Tomato firmware, maybe you'll find some hints (config, OIDs) in reading this HOWTO I've posted on the Linksysinfo-forums:

http://www.linksysinfo.org/forums/showt ... hp?t=51064

I got Cacti monitoring the LAN, WAN and WL-interfaces using Cacti's "Interface - Traffic" graph template (I'm using a Linksys WRT54GL v1.1).
This is my sick nature...

dtdobbie
Posts: 4
Joined: Tue Jul 19, 2005 9:59 pm

Linksys Running DD-WRT

#4 Post by dtdobbie » Sat Mar 31, 2007 9:16 am

-- :D
I am running DD-WRT on a linksys router and I was able to use the generic SNMP - Interface Statistics data querry. When I go to do the graphs, for the WLAN, I look at the IP address I have assigned the router's WLAN AP. In my case I use 192.168.1.1. That tells me all the traffic that goes over that NIC. the raw name for that interface shows up as br0. I used the generic UNIX Load for the overal load. I modified the Cisco CPU usage putting the OID I found on the web for DD-WRT and I get the overall CPU Utilization. The results I get match one-for-one what I get when I telnet into the router and do a top. Attached are the CPU, and Memory templates.

:P
good luck.
Attachments
cacti_graph_template_ddwrt_cpu_usage.xml
DD-WRT CPU Template
(10.48 KiB) Downloaded 4086 times
cacti_graph_template_ddwrt_memory_usage.xml
DD-WRT Memory Template
(20.25 KiB) Downloaded 4984 times

blablabla
Posts: 9
Joined: Fri Apr 13, 2007 8:30 am

Importing these templates

#5 Post by blablabla » Tue Jul 17, 2007 4:56 pm

When I tried to import these templates, I get the following errors:


Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\php2A3.tmp in C:\cacti\templates_import.php on line 59

Warning: fread() [function.fread]: Length parameter must be greater than 0 in C:\cacti\templates_import.php on line 59

Warning: Cannot modify header information - headers already sent by (output started at C:\cacti\templates_import.php:59) in C:\cacti\templates_import.php on line 71

I'm running 0.8.6j

blablabla
Posts: 9
Joined: Fri Apr 13, 2007 8:30 am

Answer to my question

#6 Post by blablabla » Mon Jul 30, 2007 9:00 am

Found this on another cacti forum:

http://forums.cacti.net/about5603.html

That worked for me and I was able to upload the template.

galagann
Posts: 1
Joined: Sun Aug 05, 2007 10:41 am

#7 Post by galagann » Sun Aug 05, 2007 11:37 am

DD-WRT - Memory Usage does not work with a DD-WRT SP2

Smitty
Posts: 6
Joined: Mon Aug 13, 2007 8:05 pm

#8 Post by Smitty » Fri Aug 31, 2007 11:34 pm

Does anyone have updated graphs for CPU and Memory for this? How about any looking at wireless signal?

lonecrow
Posts: 44
Joined: Tue Dec 11, 2007 9:49 am

#9 Post by lonecrow » Tue Apr 29, 2008 3:32 pm

I'd like to know how to do this too. Especially the wireless clients and their signals.

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#10 Post by gandalf » Tue Apr 29, 2008 3:35 pm

Well, that's the 42nd request for such a stuff for wireless devices. Again, the same answer holds. Find out which OIDs report the values you're interested in and create the Scripts/SNMP Templates as given at the 1st link of my sig.
The Cacti part is a quick issue, takes 30 mins max (including a cup of hot coffee). Searching for the OID is the task ...
Reinhard

paulbeard206
Cacti User
Posts: 149
Joined: Sat Jul 30, 2005 2:15 pm

#11 Post by paulbeard206 » Sat May 24, 2008 10:13 pm

gandalf wrote:Well, that's the 42nd request for such a stuff for wireless devices. Again, the same answer holds. Find out which OIDs report the values you're interested in and create the Scripts/SNMP Templates as given at the 1st link of my sig.
The Cacti part is a quick issue, takes 30 mins max (including a cup of hot coffee). Searching for the OID is the task ...
Reinhard
I think the reason why no one has provided those templates is that those values are not provided by DD-WRT's snmp implementation. I just ran snmpwalk against mine and I don't see anything related to signal strength or clients (it looks like DHCP addresses are noted but nothing else about them).

Maybe what's really needed is to provide that in DD-WRT.

It takes less time to run snmpwalk against the client you want info about than to post a request to ready-made templates, as brother Gandalf suggests.

Chaosratt
Posts: 34
Joined: Sun Oct 28, 2007 3:31 am
Location: St. Pete, FL
Contact:

#12 Post by Chaosratt » Mon May 26, 2008 11:42 am

Google searching of "ddwrt oid" proved to be immensely effective. I got these two right off the first page:

All DDWRT OIDS, in order:
http://www.dd-wrt.com/wiki/index.php/Si ... t_Protocol

/\ Note what website that is from /\

http://www.linksysinfo.org/forums/showt ... hp?t=36522
Instructions are for MRTG, but follow them so far as to get the OIDs generated.

The question you are asking has little to do with cacti, and more to do with DDWRT/WRT54G. The two websites listed above (dd-wrt.com & linksysinfo.com) are there for that purpose.

blu3fish
Posts: 6
Joined: Mon Sep 15, 2008 12:33 pm
Location: San Francisco, CA
Contact:

#13 Post by blu3fish » Fri Apr 17, 2009 9:42 pm

:o

techjunkyjosh
Posts: 1
Joined: Wed Nov 03, 2010 1:12 pm

Re: Monitoring Linksys WRT54G with DD-WRT

#14 Post by techjunkyjosh » Wed Nov 03, 2010 1:32 pm

:D

Chrysalis
Cacti User
Posts: 69
Joined: Fri Sep 19, 2008 10:14 am
Location: UK

Re: Monitoring Linksys WRT54G with DD-WRT

#15 Post by Chrysalis » Sat Dec 18, 2010 3:32 pm

wow considering how popular this firmware is I am gobsmacked noone has exported working templates.

I found some of the dd-wrt forum but they also update existing non related graphs so wont be putting on my cacti production box.

Post Reply