RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 829271 - net-snmp produces error if the Executables/scripts entries in snmpd.conf is over 50.
Summary: net-snmp produces error if the Executables/scripts entries in snmpd.conf is o...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: net-snmp
Version: 6.2
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Jan Safranek
QA Contact: Dalibor Pospíšil
URL:
Whiteboard:
Depends On:
Blocks: 836252
TreeView+ depends on / blocked
 
Reported: 2012-06-06 11:05 UTC by tvizirov
Modified: 2018-11-28 20:49 UTC (History)
8 users (show)

Fixed In Version: net-snmp-5.5-44.el6
Doc Type: Bug Fix
Doc Text:
Prior to this update, there was a limit of 50 'exec' entries in /etc/snmp/snmpd.conf. With more than 50 such entries in the configuration file, snmpd reported "Error: No further UCD-compatible entries" in the system log. In this update this fixed limit is removed and there can be any number of 'exec' entries in the snmpd configuration file.
Clone Of:
Environment:
Last Closed: 2013-02-21 10:27:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed patch (412 bytes, patch)
2012-06-06 11:28 UTC, mahaveer darade
no flags Details | Diff
new patch, with dynamic reallocation when needed (1.70 KB, patch)
2012-06-27 13:58 UTC, Jan Safranek
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0421 0 normal SHIPPED_LIVE net-snmp bug fix and enhancement update 2013-02-20 20:49:35 UTC

Description tvizirov 2012-06-06 11:05:28 UTC
Description of problem:

  If there are more than 50 Executables/scripts entries in snmpd.conf, net-snmp-5.5-37.el6_2.1.x86_64 produces the following error in /var/log/messages and ignores the entries above 50:

"/etc/snmp/snmpd.conf: line XX: Error: No further UCD-compatible entries"



Version-Release number of selected component (if applicable):

  net-snmp-5.5-37.el6_2.1.x86_64

How reproducible:

  Every time. 

Steps to Reproduce:

  1. enter more than 50 "exec" entries in the snmpd.conf file
  2. restart snmp


Actual results:

  Error message is logged in /var/log/messages

"/etc/snmp/snmpd.conf: line XX: Error: No further UCD-compatible entries"


Expected results:

  No errors. 


Additional info:

The error is produced because there is a limit in snmpd ( in extend.c ) of max 50 exec entries. 
We have built a test package which fixes the issue. We increased the value of:

  Max_compatability_entries int = 50;

Is it possible to increase the number in the next release?

Comment 2 mahaveer darade 2012-06-06 11:28:03 UTC
Created attachment 589840 [details]
proposed patch

Comment 10 Jan Safranek 2012-06-27 13:58:27 UTC
Created attachment 594782 [details]
new patch, with dynamic reallocation when needed

Comment 12 Jan Safranek 2012-06-29 13:33:11 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Prior to this update, there was a limit of 50 'exec' entries in /etc/snmp/snmpd.conf. With more than 50 such entries in the configuration file, snmpd reported "Error: No further UCD-compatible entries" in the system log. In this update this fixed limit is removed and there can be any number of 'exec' entries in the snmpd configuration file.

Comment 18 errata-xmlrpc 2013-02-21 10:27:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0421.html


Note You need to log in before you can comment on or make changes to this bug.