New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rhds81 rfe - snmp counters index strings for multiple network interfaces with ip addr and tcp port pairs #205
Comments
Comment from rmeggins (@richm) at 2012-01-10 06:17:01 batch move to milestone 1.3 |
Comment from rmeggins (@richm) at 2012-08-14 19:57:05 set default ticket origin to Community |
Comment from nkinder (@nkinder) at 2012-08-28 04:14:35 Added initial screened field value. |
Comment from nkinder (@nkinder) at 2013-04-05 04:03:48 The easy way to fix this is to add a new configuration setting to "cn=config". This setting would allow you to define the SNMP "index" to use for that particular DS instance. For example, if I have 2 DS instances on the same host who both use port 389 on different network interfaces, I would be able to arbitrarily assign index number "50" to the first instance, and index number "51" to the second instance. In the config for the first instance, it would look something like this: nsslapd-snmp-index: 50 The nice thing with this approach is that it requires no changes to the MIB or how our current SNMP results are interpreted. If the new config setting is not specified, the port number should be used as the index as we do currently. |
Comment from tbordaz (@tbordaz) at 2013-04-16 19:08:11 '''Here is the current status'''
|
Comment from tbordaz (@tbordaz) at 2013-04-16 19:19:30 attachment |
Comment from nkinder (@nkinder) at 2013-04-16 21:33:56 The code for the SNMP subagent looks fine, but you will have a problem if you try to add the nsslapd-snmp-index attribute to "cn=config". If you attempt to add this new attribute using ldapmodify, the server will reject it with err=53. You can manually edit dse.ldif when ns-slapd is stopped, but you will get an error about the config attribute being unknown when you start ns-slapd. Even though ns-slapd doesn't need to do anything with the new nsslapd-snmp-index attribute, we will still need to make some code changes to prevent these errors. |
Comment from tbordaz (@tbordaz) at 2013-04-17 20:22:24 Here is the current status
Here are the next steps
|
Comment from tbordaz (@tbordaz) at 2013-04-17 20:23:04 attachment |
Comment from nkinder (@nkinder) at 2013-04-17 21:54:22 I don't think you should remove this block of code, as it is there to prevent us from processing through every line of dse.ldif after we have found everything that we were looking for in the file:
Now that one may optionally specify the nsslapd-snmp-index attribute, we will have to process through the entire LDIF if the optional attribute is not set, but we can at least stop processing the dse.ldif if we have already found the optional attribute. I think you can leave this block in and change the condition as a small optimization:
Aside from that, the patch looks good to me. |
Comment from tbordaz (@tbordaz) at 2013-04-17 22:01:29 Thanks for you review Nathan. My understanding is that this accelerator test is only when parsing the entry 'dn: cn=config'. If parsing this entry and found port+rundir, it was fine to stop parsing this entry. I will double check that. |
Comment from nkinder (@nkinder) at 2013-04-17 22:14:08 Replying to [comment:14 tbordaz]:
You are correct. It is only processing cn=config, not the entire dse.ldif. We can stop parsing the entry if we find port+rundir+snmp-index. |
Comment from tbordaz (@tbordaz) at 2013-04-18 13:42:21 Hi Nathan, thanks for the review. thierry |
Comment from tbordaz (@tbordaz) at 2013-04-18 13:42:40 attachment |
Comment from tbordaz (@tbordaz) at 2013-04-18 14:07:33 git merge ticket205_review commit 2f02b0d git push origin master |
Comment from mreynolds (@mreynolds389) at 2013-04-25 00:23:58 Fix compiler warning |
Comment from mreynolds (@mreynolds389) at 2013-04-25 00:24:44 Fixed compiler warning: git merge ticket205 git push origin master commit 1838c0b |
Comment from tbordaz (@tbordaz) at 2017-02-11 23:04:48 Metadata Update from @tbordaz:
|
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/205
https://bugzilla.redhat.com/show_bug.cgi?id=582443
The text was updated successfully, but these errors were encountered: