You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_integrations/asuswrt.markdown
+12-29Lines changed: 12 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,16 @@ require_ip:
67
67
required: false
68
68
type: boolean
69
69
default: true
70
+
interface:
71
+
description: "The interface of the router that you want statistics from (e.g. eth0,eth1 etc)"
72
+
required: false
73
+
type: string
74
+
default: eth0
75
+
dnsmasq:
76
+
description: "The location of the dnsmasq.leases files"
77
+
required: false
78
+
type: string
79
+
default: /var/lib/misc
70
80
sensors:
71
81
description: List of enabled sensors
72
82
required: false
@@ -115,32 +125,5 @@ The example above, creates the following sensors:
115
125
116
126
## Padavan custom firmware (The rt-n56u project)
117
127
118
-
The [rt-n56u project](https://bitbucket.org/padavan/rt-n56u) does not store `dnsmasq.leases` which is used to track devices at `/var/lib/misc/` as `asuswrt` do. However this integration can still be used for the rt-n56u project by linking `dnsmasq.leases` during the boot process of the router.
119
-
120
-
Follow these steps to setup the link.
121
-
122
-
1. SSH or Telnet into the router. (default ssh admin@my.router)
123
-
2. Run the following command to find the file:
124
-
125
-
```bash
126
-
$ find / -name "dnsmasq.leases"
127
-
```
128
-
3. Copy or remember the full path of, example: `/tmp/dnsmasq.leases`
129
-
4. Create the folder if it does not exist:
130
-
131
-
```bash
132
-
$ mkdir -p /var/lib/misc
133
-
```
134
-
5. Add the linking process to the routers started script (one line):
The started script is also accessible and editable in the Router's web interface. `Advanced Settings -> Customization -> Scripts -> Custom User Script -> Run After Router Started`
128
+
The [rt-n56u project](https://bitbucket.org/padavan/rt-n56u) does not store `dnsmasq.leases` which is used to track devices at `/var/lib/misc/` as `asuswrt` do. However this integration can still be used for the rt-n56u project by changing the dnsmasq location using the `dnsmasq` variable to `dnsmasq: '/tmp'`
129
+
Also, to get the statistics for the `WAN` port, specify `interface: 'eth3'` as this is the interface used in the rt-n56u project
0 commit comments