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 sshd 8 1
|
---|
50 | proc syslogd 1 1
|
---|
51 | proc ntpd 1 1
|
---|
52 | proc snmpd 1 1
|
---|
53 | proc cron 2 1
|
---|
54 |
|
---|
55 |
|
---|
56 | # disk checks
|
---|
57 |
|
---|
58 | # path min
|
---|
59 | #disk / 90%
|
---|
60 | #disk /var 80%
|
---|
61 | #disk /usr 80%
|
---|
62 | #disk /tmp 60%
|
---|
63 | includeAllDisks 85%
|
---|
64 |
|
---|
65 |
|
---|
66 | # load average checks
|
---|
67 |
|
---|
68 | # 1max 5max 15max
|
---|
69 | load 12 14 14
|
---|
70 |
|
---|
71 |
|
---|
72 | # Pass through control
|
---|
73 |
|
---|
74 | # miboid exec-command
|
---|
75 | pass .1.3.6.1.4.1.2021.50 /usr/local/nagios/bin/processor
|
---|
76 |
|
---|
77 | pass_persist .1.3.6.1.4.1.21695.1.2 /usr/local/sbin/dhcpd-snmp /usr/local/etc/dhcpd-snmp.conf
|
---|