|
This page is currently under construction. You can edit the article to help completing it. |
The mini_snmpd configuration is located in /etc/config/mini_snmpd.
This configuration is responsible for defining basic snmp attributes, such as location, contact, community and snmp tables for disks and interfaces.
This daemon reports only 32bit counters (Counter32).
Configuration consists of single section called mini_snmpd.
The default configuration defines following settings:
config mini_snmpd
option enabled '0'
option ipv6 '0'
option community 'public'
option location ' '
option contact ' '
option disks '/tmp,/jffs'
option interfaces 'lo,br-lan,br-wan' # Max 4
enabled defines if daemon should be started on by rc scriptipv6 enables daemon's support of ipv6 sockets - it will listen on :::161 instead of 0.0.0.0:161community sets SNMP community stringlocation and contact set those base SNMP attributesdisks and interfaces specifies which filesystems and interfaces should be referenced by corresponding management tables.| Name | Type | Required | Default | Description |
|---|---|---|---|---|
enabled |
boolean | yes | 0 |
Switches daemon on or off in rc (init.d) script |
ipv6 |
boolean | no | 0 |
Enables daemon's support of ipv6 sockets |
community |
string | yes | public |
Sets SNMP Community string to contact this agent |
location |
string | no | (none) | If defined, sets location OID which mini_snmpd reports |
contact |
string | no | (none) | If defined, sets contact OID wchi mini_snmpd reports |
disks |
coma separated list of filesystems' mountpoints | no | (none) | If defined, mini_snmpd includes this filesystem in output table |
interfaces |
coma separated list of network interfaces | no | (none) | If defined, mini_snmpd includes this interfaces in output table |
Simple example: enable daemon, including ipv6 support, defining other parameters.
config mini_snmpd
option enabled 1
option ipv6 1
option community secretring
option location 'kitchen'
option contact 'me@my.tld'
option disks '/tmp,/jffs'
option interfaces 'br-lan,br-wan,wlan0'
Example of the snmpwalk:
iso.3.6.1.2.1.1.1.0 = ""
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1
iso.3.6.1.2.1.1.3.0 = Timeticks: (4288469671) 496 days, 8:24:56.71
iso.3.6.1.2.1.1.4.0 = STRING: "me@my.tld"
iso.3.6.1.2.1.1.5.0 = STRING: "gw.my.tld"
iso.3.6.1.2.1.1.6.0 = STRING: "kitchen"
iso.3.6.1.2.1.2.1.0 = INTEGER: 3
iso.3.6.1.2.1.2.2.1.1.1 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.1.2 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.1.3 = INTEGER: 3
iso.3.6.1.2.1.2.2.1.2.1 = STRING: "br-lan"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "br-wan"
iso.3.6.1.2.1.2.2.1.2.3 = STRING: "wlan0"
iso.3.6.1.2.1.2.2.1.8.1 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.8.2 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.8.3 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.10.1 = Counter32: 72802252
iso.3.6.1.2.1.2.2.1.10.2 = Counter32: 421289922
iso.3.6.1.2.1.2.2.1.10.3 = Counter32: 157778493
iso.3.6.1.2.1.2.2.1.11.1 = Counter32: 480403
iso.3.6.1.2.1.2.2.1.11.2 = Counter32: 1200709
iso.3.6.1.2.1.2.2.1.11.3 = Counter32: 188534
iso.3.6.1.2.1.2.2.1.13.1 = Counter32: 0
iso.3.6.1.2.1.2.2.1.13.2 = Counter32: 0
iso.3.6.1.2.1.2.2.1.13.3 = Counter32: 0
iso.3.6.1.2.1.2.2.1.14.1 = Counter32: 0
iso.3.6.1.2.1.2.2.1.14.2 = Counter32: 0
iso.3.6.1.2.1.2.2.1.14.3 = Counter32: 0
iso.3.6.1.2.1.2.2.1.16.1 = Counter32: 418541942
iso.3.6.1.2.1.2.2.1.16.2 = Counter32: 78533608
iso.3.6.1.2.1.2.2.1.16.3 = Counter32: 23900061
iso.3.6.1.2.1.2.2.1.17.1 = Counter32: 546538
iso.3.6.1.2.1.2.2.1.17.2 = Counter32: 423408
iso.3.6.1.2.1.2.2.1.17.3 = Counter32: 187154
iso.3.6.1.2.1.2.2.1.19.1 = Counter32: 0
iso.3.6.1.2.1.2.2.1.19.2 = Counter32: 0
iso.3.6.1.2.1.2.2.1.19.3 = Counter32: 0
iso.3.6.1.2.1.2.2.1.20.1 = Counter32: 0
iso.3.6.1.2.1.2.2.1.20.2 = Counter32: 0
iso.3.6.1.2.1.2.2.1.20.3 = Counter32: 0
iso.3.6.1.2.1.25.1.1.0 = Timeticks: (4288472447) 496 days, 8:25:24.47
As you see walk doesn't catch on disks for some reason.
|
This page is currently under construction. You can edit the article to help completing it. |
doc/uci/mini_snmpd.txt · Last modified: 2012/09/27 13:41 by jow