Cloned this one from the net-snmp defect. They can't get a fix for this into rhel4.6, but sounds like there is a workaround to fix in cluster-snmp packages. We need to fix this for cluster 4.6.
Created attachment 233971 [details] idea of the fix I am net-snmp maintainer and I found that net-snmp in RHEL4 is really old and does not support some features of newer releases. In this bug, net-snmp expects it receives INTEGER32 values as long*. New net-snmp can handle both int* and long*. I cannot fix it in 4.6 (it's too late), I'll try to fix it in RHEL 4.7, so if you want 4.6 cluster working, you must make a workaround. So, you must go through your net-snmp module and check, if you return integer values as long, not as int. Example patch is attached. You can easily check the correctness of your code by configuring net-snmp to use the module and running on x86_64 cluster: snmpwalk -v2c -c public localhost REDHAT-CLUSTER-MIB::RedHatCluster You should see all the values you support and there should be no "Error building ASN.1" in /var/log/messages. Important is x86_64 architecture here - the bug is not reproduceable on i386, where int and long have the same size. Feel free to contact me if you have any questions.
So - I have this fix in and ready to test it. I tried running your snmpwalk command, and I got a 'command not found'. Which package is it in? Here are the snmp pkgs installed on the system I am testing with: rpm -qa |grep snmp net-snmp-5.1.2-11.EL4.11 cluster-snmp-0.9.1-8 net-snmp-libs-5.1.2-11.EL4.11
snmpwalk is in net-snmp-utils package
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0982.html