~ubuntu-branches/ubuntu/wily/net-snmp/wily-proposed

« back to all changes in this revision

Viewing changes to debian/patches/08_defaultconfig.patch

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-28 14:59:36 UTC
  • mfrom: (1.2.3 upstream) (1.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100628145936-cbiallic69pn044g
Tags: 5.4.3~dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/snmpd.postinst: source debconf before doing work, LP: #589056
  - debian/snmp.preinst, debian/snmp.prerm: kill any/all processes owned by
    snmp user before install/uninstall, LP: #573391
  - Add apport hook (LP: #533603):
  - debian/{snmp,snmpd}.apport: Added.
  - debian/control: Build-depends on dh-apport.
  - debian/rules: 
    + Add --with apport.
    + override_dh_apport to install hook on snmpd package only.
 * Dropped patches:
   - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
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,38 @@
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  .1.3.6.1.2.1.1
48
 
+#view system included  .iso.org.dod.internet.mgmt.mib-2.system
49
 
 
50
 
 ####
51
 
 # Finally, grant the 2 groups access to the 1 view with different
52
 
 # write permissions:
53
 
 
54
 
 #                context sec.model sec.level match  read   write  notif
55
 
+access MyROSystem ""     any       noauth    exact  system none   none
56
 
 access MyROGroup ""      any       noauth    exact  all    none   none
57
 
 access MyRWGroup ""      any       noauth    exact  all    all    none
58
 
 
59
 
@@ -100,8 +106,8 @@
60
 
 # value of an object whose value is given here will fail with an error
61
 
 # status of notWritable.
62
 
 
63
 
-syslocation Right here, right now.
64
 
-syscontact Me <me@somewhere.org>
65
 
+syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
66
 
+syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
67
 
 
68
 
 # Example output of snmpwalk:
69
 
 #   % snmpwalk -v 1 -c public localhost system
70
 
@@ -135,13 +141,13 @@
71
 
 #
72
 
 
73
 
 #  Make sure mountd is running
74
 
-proc mountd
75
 
+#proc mountd
76
 
 
77
 
 #  Make sure there are no more than 4 ntalkds running, but 0 is ok too.
78
 
-proc ntalkd 4
79
 
+#proc ntalkd 4
80
 
 
81
 
 #  Make sure at least one sendmail, but less than or equal to 10 are running.
82
 
-proc sendmail 10 1
83
 
+#proc sendmail 10 1
84
 
 
85
 
 #  A snmpwalk of the prTable would look something like this:
86
 
 # 
87
 
@@ -199,7 +205,7 @@
88
 
 #  ARGS:     optional arguments to be passed to the program
89
 
 
90
 
 # a simple hello world
91
 
-exec echotest /bin/echo hello world
92
 
+#exec echotest /bin/echo hello world
93
 
 
94
 
 # Run a shell script containing:
95
 
 #
96
 
@@ -250,7 +256,7 @@
97
 
 
98
 
 # Check the / partition and make sure it contains at least 10 megs.
99
 
 
100
 
-disk / 10000
101
 
+#disk / 10000
102
 
 
103
 
 # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.DISKMIBNUM
104
 
 # enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0
105
 
@@ -279,7 +285,7 @@
106
 
 # 15MAX:  Similar, but for 15 min average.
107
 
 
108
 
 # Check for loads:
109
 
-load 12 14 14
110
 
+#load 12 14 14
111
 
 
112
 
 # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.LOADAVEMIBNUM
113
 
 # enterprises.ucdavis.loadTable.laEntry.loadaveIndex.1 = 1
114
 
@@ -365,7 +371,7 @@
115
 
 #           (commented out here since it requires that you place the
116
 
 #           script in the right location. (its not installed by default))
117
 
 
118
 
-# pass .EXTENSIBLEDOTMIB.255 /bin/sh PREFIX/local/passtest
119
 
+# pass .EXTENSIBLEDOTMIB.255 /bin/sh /usr/local/passtest
120
 
 
121
 
 # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.255
122
 
 # enterprises.ucdavis.255.1 = "life the universe and everything"
123
 
--- net-snmp-5.1.2.orig/EXAMPLE-trap.conf
124
 
+++ net-snmp-5.1.2/EXAMPLE-trap.conf
 
1
Index: net-snmp-5.4.3/EXAMPLE-trap.conf
 
2
===================================================================
 
3
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
 
4
+++ net-snmp-5.4.3/EXAMPLE-trap.conf    2010-06-04 17:15:48.000000000 +0200
125
5
@@ -0,0 +1,18 @@
126
6
+###############################################################################
127
7
+#