Monitoring Linksys WRT54G with DD-WRT

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

Moderators: Developers, Moderators

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

Monitoring Linksys WRT54G with DD-WRT

Post by Teakus »

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: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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

Post by hbokh »

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

Post by dtdobbie »

-- :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 6229 times
cacti_graph_template_ddwrt_memory_usage.xml
DD-WRT Memory Template
(20.25 KiB) Downloaded 6883 times
blablabla
Posts: 9
Joined: Fri Apr 13, 2007 8:30 am

Importing these templates

Post by blablabla »

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

Post by blablabla »

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

Post by galagann »

DD-WRT - Memory Usage does not work with a DD-WRT SP2
Smitty
Posts: 6
Joined: Mon Aug 13, 2007 8:05 pm

Post by Smitty »

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

Post by lonecrow »

I'd like to know how to do this too. Especially the wireless clients and their signals.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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: 150
Joined: Sat Jul 30, 2005 2:15 pm

Post by paulbeard206 »

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:

Post by Chaosratt »

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:

Post by blu3fish »

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

Re: Monitoring Linksys WRT54G with DD-WRT

Post by techjunkyjosh »

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

Re: Monitoring Linksys WRT54G with DD-WRT

Post by Chrysalis »

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

Who is online

Users browsing this forum: No registered users and 2 guests