On 29/01/07, Rasanth A.K. <[EMAIL PROTECTED]> wrote:
I compiled net-snmp-5.3.1 by enabling disman/event-mib support.

when i run snmpd ( snmpd -f -Le -d -Ddisman ), i am always getting the
following error.
/usr/local/share/snmp/snmpd.conf: line 57: Error:
   You must specify a default user name using the agentSecName token

This is a known problem, that has been fixed in the latest release (5.4),
and the 5.3.x development code.

Please try the attached patch.

Dave
--- ../net-snmp-5.3.1/agent/mibgroup/utilities/iquery.c	2006-04-11 12:10:16.000000000 +0100
+++ agent/mibgroup/utilities/iquery.c	2006-10-12 23:21:28.000000000 +0100
@@ -62,10 +62,10 @@
 void init_iquery(void){
     char *type = netsnmp_ds_get_string(NETSNMP_DS_LIBRARY_ID, 
                                        NETSNMP_DS_LIB_APPTYPE);
-    netsnmp_ds_register_config(ASN_OCTET_STR, type, "agentSecName",
+    netsnmp_ds_register_premib(ASN_OCTET_STR, type, "agentSecName",
                                NETSNMP_DS_APPLICATION_ID,
                                NETSNMP_DS_AGENT_INTERNAL_SECNAME);
-    netsnmp_ds_register_config(ASN_OCTET_STR, type, "iquerySecName",
+    netsnmp_ds_register_premib(ASN_OCTET_STR, type, "iquerySecName",
                                NETSNMP_DS_APPLICATION_ID,
                                NETSNMP_DS_AGENT_INTERNAL_SECNAME);
 
@@ -85,7 +85,7 @@
                        NETSNMP_DS_AGENT_INTERNAL_SECLEVEL, SNMP_SEC_LEVEL_AUTHNOPRIV);
 
     snmp_register_callback(SNMP_CALLBACK_LIBRARY, 
-                           SNMP_CALLBACK_POST_READ_CONFIG,
+                           SNMP_CALLBACK_POST_PREMIB_READ_CONFIG,
                            _init_default_iquery_session, NULL);
 }
 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to