1 | # snmpd.conf
|
---|
2 |
|
---|
3 | # First, map the community name (COMMUNITY) into a security name
|
---|
4 | # (local and mynetwork, depending on where the request is coming
|
---|
5 | # from):
|
---|
6 |
|
---|
7 | # sec.name source community
|
---|
8 | com2sec local localhost public
|
---|
9 | com2sec mynetwork 172.16.0.0/12 public
|
---|
10 | com2sec mynetwork 10.0.0.0/8 public
|
---|
11 | com2sec mynetwork 192.168.0.0/16 public
|
---|
12 |
|
---|
13 |
|
---|
14 |
|
---|
15 | # Second, map the security names into group names:
|
---|
16 |
|
---|
17 | # sec.model sec.name
|
---|
18 | group MyRWGroup v1 local
|
---|
19 | group MyRWGroup v2c local
|
---|
20 | group MyRWGroup usm local
|
---|
21 | group MyROGroup v1 mynetwork
|
---|
22 | group MyROGroup v2c mynetwork
|
---|
23 | group MyROGroup usm mynetwork
|
---|
24 |
|
---|
25 |
|
---|
26 | # Third, create a view for us to let the groups have rights to:
|
---|
27 |
|
---|
28 | # incl/excl subtree mask
|
---|
29 | view all included .1 80
|
---|
30 |
|
---|
31 |
|
---|
32 | # Finally, grant the 2 groups access to the 1 view with different
|
---|
33 | # write permissions:
|
---|
34 |
|
---|
35 | # context sec.model sec.level match read write notif
|
---|
36 | access MyROGroup "" any noauth exact all none none
|
---|
37 | access MyRWGroup "" any noauth exact all all none
|
---|
38 |
|
---|
39 |
|
---|
40 | # System contact information
|
---|
41 |
|
---|
42 | sysLocation Somewhere in or near Leiden
|
---|
43 | sysContact Stichting Wireless Leiden <beheer@wirelessleiden.nl> / +31 71 5139817
|
---|
44 |
|
---|
45 |
|
---|
46 | # Process checks.
|
---|
47 |
|
---|
48 | # name max min
|
---|
49 | proc lvrouted.opt 1 1
|
---|
50 | proc sshd 8 1
|
---|
51 | proc syslogd 1 1
|
---|
52 | proc ntpd 1 1
|
---|
53 | proc snmpd 1 1
|
---|
54 | proc dhcpd 1 1
|
---|
55 | proc pen 1 1
|
---|
56 | proc cron 2 1
|
---|
57 | proc named 1 1
|
---|
58 |
|
---|
59 |
|
---|
60 | # disk checks
|
---|
61 |
|
---|
62 | # path min
|
---|
63 | #disk / 90%
|
---|
64 | #disk /var 80%
|
---|
65 | #disk /usr 80%
|
---|
66 | #disk /tmp 60%
|
---|
67 | includeAllDisks 85%
|
---|
68 |
|
---|
69 |
|
---|
70 | # load average checks
|
---|
71 |
|
---|
72 | # 1max 5max 15max
|
---|
73 | load 12 14 14
|
---|
74 |
|
---|
75 |
|
---|
76 | # Pass through control
|
---|
77 |
|
---|
78 | # miboid exec-command
|
---|
79 | pass .1.3.6.1.4.1.2021.50 /usr/local/nagios/bin/processor
|
---|
80 |
|
---|
81 | pass_persist .1.3.6.1.4.1.21695.1.2 /usr/local/sbin/dhcpd-snmp /usr/local/etc/dhcpd-snmp.conf
|
---|
82 |
|
---|
83 | extend .1.3.6.1.4.1.2021.61 nagios-www /usr/local/sbin/proxy-test.sh
|
---|
84 | extend .1.3.6.1.4.1.2021.62 nagios-routing /usr/local/sbin/lvrouted-test.sh
|
---|
85 |
|
---|
86 | extend .1.3.6.1.4.1.2021.70 dhcp-users /bin/sh -c "/bin/cat /var/db/dnsmasq.leases \| awk '{ print $1,$2,$3 }'"
|
---|
87 | extend .1.3.6.1.4.1.2021.71 portal-users /bin/sh -c "/bin/cat /var/db/clients \| awk '{ print $1,$2,$3 }'"
|
---|
88 | extend .1.3.6.1.4.1.2021.72 arp-users /bin/sh -c "/bin/cat /var/db/connect.gone \| awk '{ print $1,$2,$3 }'"
|
---|
89 |
|
---|
90 | extend wl-release /bin/cat /tools/wl-release.txt
|
---|
91 | extend wl-version /usr/bin/awk 'BEGIN{FS=": "}/^URL:/ {u=$2}; /^Last Changed Rev:/ {r=$2}; END{print u"@"r}' /tools/wl-release.txt
|
---|
92 |
|
---|