Linksys WRT3200ACM Monitoring | Prometheus Grafana

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
What's up guys Arvin here from Arvin Howtos channel. in this video, We are going to talk about how to monitor the Linksys wer3200acm with Prometheus and graphana. Here you can see the end result monitoring dashboard that we can see our different graphs such as router uptime system loads and most interesting the bandwidth monitor on different network interfaces like WAN and 2.4 and 5 gigahertz wireless networks So without further ado, let's jump right into it so I recently bought a Linksys wrt3200acm and use open source dd-wrt server to expand its Functionality such as ability to SSH into the router enabling SNMP and many other features If you are interested in how to install the dd-wrt in Linksys You can watch my other how-to video that I showed how I did it So in this tutorial we are going to use Prometheus monitoring system to collect the SNMP metrics and Graphana to visualize the data with graphs and dashboards Our prerequisite for this tutorial is having a system with docker and docker-compose installed To check if you have docker installed open a terminal in your Mac or Linux Or if you are using Windows go to the Start menu select run and write CMD and hit enter Once they opened write docker version and hit enter If you see a screen like mine data shows installed like a version you're good to go Otherwise, you don't have docker installed. Also, make sure that docker compose is installed by entering docker compose version If you are not familiar with docker You can watch my other video that I introduced docker and showed how to install and use docker. I Also have created two github repositories, which I use to keep my source codes and to be able to share it with you guys You can find all the codes that I'm using for this tutorial in this github repos Which I posted there links in the description below the video First thing first, we need to enable SSH and SNMP services in our eg. Wrt Rooter So let's login to the router web interface which by default is accessible on 192.168.1.1 you need to enter your Rooter IP. If is not the same as this one Under services tab we need to enable the SNMP service with default settings as Well as under secure shell service enable sshd enable password login Now it scroll down a bit We will disable the telnet service which is an alternate to SSA service to log in to Rooter but in a not secure way Next thing is to enable their NVRAM in order to have a persistent place For later that we need to download some files in our router So the files survived the Rooter reboot So let's head to administration tab Under JFS to support section make sure internal storage is enabled Also if you have not set password for your Rooter do so under the password section Once we enable the services we need to apply the settings to the router Once returned be rebooted and accessible again. We will go ahead and login to the Rooter via SSH For that open a terminal and enter following command to log into the router This is 8th route at I pee up the Rueter which in my case would be 192.168.1.1 We accept a new key exchange if asked otherwise we need to enter the root password for the Rooter Which we set under the admin tab in the GUI So now we are inside our Rooter Next thing is to download the Prometheus SNMP exporter from Prometheus repository on github So we go to github.com slash Prometheus slash SNMP underscore exporter From here we go to released app and download the SNMP exporter for our Rooter CPU architecture To find out the root our CPU architecture of your Rooter We need to run you name - M In my case is arm v7 e 1 therefore I'm going ahead and download the Linux arm v7 variant of the SNMP exporter In the time of recording this video. The latest version is 0.17, but it might be different for you We need to copy the link location by right-clicking on the desired version of the file and select copy link location then we head back to the root our session and Run this command to download the SNMP exporter into your Reuters nvm storage First let's switch to jf FS Now we're on Cal - capital o capital L And paste the copied link location of SNMP exporter like so I Have put all invention commands in the description below the video Once download finished we can confirm SNMP exporter has been downloaded by running LS dash L and Checking the date and size of the downloaded file Next is to decompress and open the archive file by this command Par space - x VZ selphie exporter, which is the name of the file that we downloaded Then we need to head back to the Rooter web interface and go to administration tab under the command sub tab and We write CD Space slash je FF s slash is going to be exported which is the name of the an archived file space ampersand ampersand space dot slash support our Space and person this command will it start the SNP exporter in our inter? Now click on the broad commands button and wait until we see the results It takes some time. It should say at the end listening on port 906 now we need to click on save sort of button to make sure the Command get executed every time the rotary boots Mississippi is for us to prepare and run Prometheus server, which is an open source monitoring system to collect various metrics from different devices for Prometheus installation I have prepared a docker compose file in my github repo which you will be able to download and install the Prometheus server So let's head to the browser and enter github.com slash Arvin EP Prometheus now click on the green button return clone or download and click on download zip From now on we need to have a system with darker and darker post install Otherwise, we cannot continue with the setup If you don't already have the darker and darker compose installed, you can watch my other how-to video Which I showed how to install and use docker After we have the current, dr. Campos installed in our machine, we can go ahead and uncompress the downloaded file Go to terminal and navigate to location where you downloaded the Prometheus archive For me is under downloads, so I CD to download directory then unzip the file Unzip prometheus - master - zip now go inside the Prometheus folder and Now we need to bring up the Prometheus server using docker compose we write a cure - campos o - - field - t He takes some time to put the Prometheus docker image or block your table After we return to the command prompt we make sure the container is up and running Dr. PS We see. Yes, it's up since on seconds ago now, let's head back to the browser and interlocal host : 19:19 to see our Prometheus web interface Yes, welcome to Prometheus Now, let's go to a status tab and choose targets Make sure both Lisa targets are up and green if your Rooter is not running on 192 168 1 1 you need to adjust the IP in the prometheus config file and when it earlier saw the container as We are going to do right now go back to the terminal and Change to config folder and open Prometheus a dll file with your text editor On line 18 also on line 25 change the IP to your Linksys router IP Save and exit the file now, let's rebuild and restore the Prometheus container You right back here - calm phone's stopped then back here - compose space off space - - filled space actually and Darker PS to check Prometheus is back up again Now let's head back to the browser to check if links is root our target is up It can take some time like 10 until 30 seconds Once we're done with setting up the Prometheus monitoring server Next step is to create graphs and dashboards to visualize our Linksys router metrics for this purpose We will use graph. Fauna graph. Anna is an open-source analytics and visualization software. I have prepared a graph on a setup in a darker compost pile and Shared it on my github graph on a repo for you to easily download and use it Go to the browser and head to github.com /or Vinnie P slash graph on ER and We do the same thing as we did for Prometheus Connect on clone or download button and choose download zip what's done was finished Let's go back to the terminal and to the location where we downloaded the graph on archive Now unzip the archive unzipped Rosanna - master bath zip Change to - master directory Now let's start on the graph on a server is like a compost now your Campos up - - build HP He takes some time to pull the graph our entire image After we returned to the command prompt we make sure the content is up and running like your peers And yes, we see. It's up since some seconds ago Let's go to the browser and interlocal host Cullen 3000 Yeah, welcome to graph Anna Now we need to authenticate with default username and password which is admin for username and admin for password Graph Anna is asking to change the default password to a new one So here is our graph Anna now we need to add a data source as an input to receive the routed matrix In our case data source would be or Prometheus server So click on add data source and select Prometheus now under HTTP section for the URL interred there Prometheus URL Which in our case would be localhost port 1990 and in access field choose browser and We can leave the rest as is and click Save and test Now Agrafena is using Prometheus as a data source to receive metrics and create graphs. I have created a dashboard of graph space on dd-wrt SNMP dashboard created by p franz Which I found in the graph on Comm dashboards, and I adapted it for links is 3200 ACM Now be Hoover offered the class button on the left side bar and choose import Then click on the upload JSON file and choose the Linksys wrt54g Graph on downloaded archive under the dashboard shoulder then click import So now we can finally see our beautiful dashboard with multiple graphs monitoring our Linksys router Graphs are monitoring different stats like uptime of the Rueter CPI memory usage as well as the pan beef monitoring of our main connection also wireless networks on 2.4 and 5 gigahertz So on the top right side of the dashboard you can use time picker to choose the time ranges of the data being visualized For example, you can choose the last 30 minutes for last 5 minutes Also, we can choose the Refresh board frequency time right now. It's been set Every 5 seconds to get a new data from Prometheus and refresh the board. I Guess that's it guys. I hope it helps and you enjoyed this video and found it informative If you did, please don't forget to like this video and subscribe for more videos just like this Stay healthy and I see you guys in the next video
Info
Channel: Arvin Tutorials
Views: 3,296
Rating: 4.8620691 out of 5
Keywords: Linksys WRT3200ACM Router, Monitoring with Prometheus and Grafana, Linksys WRT3200ACM dd-wrt, Linksys WRT3200ACM setup, linksys wrt3200acm monitoring, dd wrt monitor traffic, wrt3200acm, router, linksys wrt3200acm review, linksys wrt3200acm setup, linksys router, linksys monitoring, router monitoring, router monitoring software, router monitoring software free, dd wrt, dd wrt setup, dd-wrt, dd wrt router, router configuration step by step, router configuration, ArvinTutorials
Id: sYh85-vHE-8
Channel Id: undefined
Length: 15min 29sec (929 seconds)
Published: Thu Apr 09 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.