This post is going to guide you through setting up SNMP monitoring for your Draytek Vigor using an existing Cacti setup. In this example we will be monitoring ADSL/VDSL Sync rate which is a very common need with the variety of line faults we suffer on copper in Australia and the fact that not everyone has the privilege of getting FTTN or paying big bux for a fibre connection install, especially if the SMB is not located within a CBD area.
The first step we are going to take is enabling SNMP monitoring. We are using a DrayTek Vigor130 here.
- Login via your Draytek admin page
- Head to System Maintenance -> Management then check “Enable SNMP Agent”
- Click “OK” down the bottom of the page and accept to reboot with the current settings
- Your Vigor130 will reboot and then bring back up the customer connection.
- Lets test that we are getting SNMP information by using SNMP walk on the command line
- Downstram sync
- Downstream attainable rate (useful for VDSL as the RSP will usually limit the sync to the package you are on i.e. 25/5 is usually 28/6.40)
- Upstream sync
- Upstream attainable rate (useful for VDSL as the RSP will usually limit the sync to the package you are on i.e. 25/5 is usually 28/6.40)
- The next thing we are going to do it setup a new device in Cacti. So head to your Cacti console page.
- Choose Devices -> Add then fill in the details. Items to concentrate on:
- Hostname (IP or hostname to your Vigor that is routable by your Cacti instance)
- SNMP v2 (or v1)
- SNMP Community (should be public by default)
- If this is the very first Vigor you’re setting up sync monitoring for, lets go and setup a graph template. I used the “Interface – traffic (bits/sec)” graph to duplicate because it had everything I wanted to begin with and required little modification. You can set one up from scratch or use this if you like.
- Head to Graph Templates and find “Interface – traffic (bits/sec)” and check it. Choose the action duplicate and click Go.
- Go into the template duplicate you’ve created and give it a name and a title. Next we will want to edit every item on the graph to change the math function and also the names. Change Inbound to Downstream and Outbound to Upstream.
- Click on each item in the list Item #1 through Item #12 and within each change the CDEF function to “None”
- Go to Data Templates and we are going to add two new Data Templates for Draytek. Click Add. I’ve highlighted below the values you will need to fill out that are non-default values. The Data Input Method should be “Get SNMP Data”. After saving it for the first time, the additional fields will populate.
- Repeat the last step for all data types that you wish to graph using the following OID’s
- Downstream Sync – iso.220.127.116.11.18.104.22.168.22.214.171.124
- Upstream Sync – iso.126.96.36.199.188.8.131.52.184.108.40.206
- Head to Data Sources and click Add. Choose the host you created earlier
- Fill in the “SNMP IP Address” of the device and hit Save.
- Now we’re onto almost the last step of the process where we can create the graph now that we are collecting the data. Under Graph Management click Add. Choose the graph template we created earlier and also the host we are monitoring.
- You’re done!
Next steps from here are that you can add the graph to your Graph Trees and add users that can view the graph you have just created.