]>
Commit | Line | Data |
---|---|---|
841f6a66 ER |
1 | --- net-snmp-5.1.2.orig/EXAMPLE.conf.def |
2 | +++ net-snmp-5.1.2/EXAMPLE.conf.def | |
3 | @@ -6,7 +6,7 @@ | |
4 | ############################################################################### | |
5 | # | |
6 | # This file is intended to only be an example. If, however, you want | |
7 | -# to use it, it should be placed in SYSCONFDIR/snmp/snmpd.conf. | |
8 | +# to use it, it should be placed in /etc/snmp/snmpd.conf. | |
9 | # When the snmpd agent starts up, this is where it will look for it. | |
10 | # | |
11 | # You might be interested in generating your own snmpd.conf file using | |
12 | @@ -58,31 +58,37 @@ | |
13 | # from): | |
14 | ||
15 | # sec.name source community | |
16 | -com2sec local localhost COMMUNITY | |
17 | -com2sec mynetwork NETWORK/24 COMMUNITY | |
18 | +com2sec paranoid default public | |
19 | +#com2sec readonly default public | |
20 | +#com2sec readwrite default private | |
21 | ||
22 | #### | |
23 | # Second, map the security names into group names: | |
24 | ||
25 | # sec.model sec.name | |
26 | -group MyRWGroup v1 local | |
27 | -group MyRWGroup v2c local | |
28 | -group MyRWGroup usm local | |
29 | -group MyROGroup v1 mynetwork | |
30 | -group MyROGroup v2c mynetwork | |
31 | -group MyROGroup usm mynetwork | |
32 | +group MyROSystem v1 paranoid | |
33 | +group MyROSystem v2c paranoid | |
34 | +group MyROSystem usm paranoid | |
35 | +group MyROGroup v1 readonly | |
36 | +group MyROGroup v2c readonly | |
37 | +group MyROGroup usm readonly | |
38 | +group MyRWGroup v1 readwrite | |
39 | +group MyRWGroup v2c readwrite | |
40 | +group MyRWGroup usm readwrite | |
41 | ||
42 | #### | |
43 | # Third, create a view for us to let the groups have rights to: | |
44 | ||
45 | # incl/excl subtree mask | |
46 | view all included .1 80 | |
47 | +view system included .iso.org.dod.internet.mgmt.mib-2.system | |
48 | ||
49 | #### | |
50 | # Finally, grant the 2 groups access to the 1 view with different | |
51 | # write permissions: | |
52 | ||
53 | # context sec.model sec.level match read write notif | |
54 | +access MyROSystem "" any noauth exact system none none | |
55 | access MyROGroup "" any noauth exact all none none | |
56 | access MyRWGroup "" any noauth exact all all none | |
57 | ||
58 | @@ -100,8 +106,8 @@ | |
59 | # value of an object whose value is given here will fail with an error | |
60 | # status of notWritable. | |
61 | ||
62 | -syslocation Right here, right now. | |
63 | -syscontact Me <me@somewhere.org> | |
64 | +syslocation Unknown (configure /etc/snmp/snmpd.local.conf) | |
65 | +syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf) | |
66 | ||
67 | # Example output of snmpwalk: | |
68 | # % snmpwalk -v 1 -c public localhost system | |
69 | @@ -135,13 +141,13 @@ | |
70 | # | |
71 | ||
72 | # Make sure mountd is running | |
73 | -proc mountd | |
74 | +#proc mountd | |
75 | ||
76 | # Make sure there are no more than 4 ntalkds running, but 0 is ok too. | |
77 | -proc ntalkd 4 | |
78 | +#proc ntalkd 4 | |
79 | ||
80 | # Make sure at least one sendmail, but less than or equal to 10 are running. | |
81 | -proc sendmail 10 1 | |
82 | +#proc sendmail 10 1 | |
83 | ||
84 | # A snmpwalk of the prTable would look something like this: | |
85 | # | |
86 | @@ -199,7 +205,7 @@ | |
87 | # ARGS: optional arguments to be passed to the program | |
88 | ||
89 | # a simple hello world | |
90 | -exec echotest /bin/echo hello world | |
91 | +#exec echotest /bin/echo hello world | |
92 | ||
93 | # Run a shell script containing: | |
94 | # | |
95 | @@ -250,7 +256,7 @@ | |
96 | ||
97 | # Check the / partition and make sure it contains at least 10 megs. | |
98 | ||
99 | -disk / 10000 | |
100 | +#disk / 10000 | |
101 | ||
102 | # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.DISKMIBNUM | |
103 | # enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0 | |
104 | @@ -279,7 +285,7 @@ | |
105 | # 15MAX: Similar, but for 15 min average. | |
106 | ||
107 | # Check for loads: | |
108 | -load 12 14 14 | |
109 | +#load 12 14 14 | |
110 | ||
111 | # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.LOADAVEMIBNUM | |
112 | # enterprises.ucdavis.loadTable.laEntry.loadaveIndex.1 = 1 | |
113 | @@ -365,7 +371,7 @@ | |
114 | # (commented out here since it requires that you place the | |
115 | # script in the right location. (its not installed by default)) | |
116 | ||
117 | -# pass .EXTENSIBLEDOTMIB.255 /bin/sh PREFIX/local/passtest | |
118 | +# pass .EXTENSIBLEDOTMIB.255 /bin/sh /usr/local/passtest | |
119 | ||
120 | # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.255 | |
121 | # enterprises.ucdavis.255.1 = "life the universe and everything" | |
122 | --- net-snmp-5.1.2.orig/EXAMPLE-trap.conf | |
123 | +++ net-snmp-5.1.2/EXAMPLE-trap.conf | |
124 | @@ -0,0 +1,18 @@ | |
125 | +############################################################################### | |
126 | +# | |
127 | +# EXAMPLE-trap.conf: | |
128 | +# An example configuration file for configuring the Net-SNMP snmptrapd agent. | |
129 | +# | |
130 | +############################################################################### | |
131 | +# | |
132 | +# This file is intended to only be an example. If, however, you want | |
133 | +# to use it, it should be placed in /etc/snmp/snmptrapd.conf. | |
134 | +# When the snmptrapd agent starts up, this is where it will look for it. | |
135 | +# | |
136 | +# All lines beginning with a '#' are comments and are intended for you | |
137 | +# to read. All other lines are configuration commands for the agent. | |
138 | + | |
139 | +# | |
140 | +# PLEASE: read the snmptrapd.conf(5) manual page as well! | |
141 | +# | |
142 | + |