Re: Problems with Monitor on Solaris 9
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 02/10/06, James Mckenzie <[email protected]> wrote: > Note: If I do not provide a valid user name with the noauth parameter, the monitor line > fails requesting that I provide a user name with the agentSecName parameter, and I > have definitely added one. As you may have noticed on the lists, I've managed to track down this problem and provide a simple fix. I'll attach it here as well, for convenience. Dave ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
iquery.diff
(application/octet-stream, 1.3 KB)
Index: iquery.c
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/agent/mibgroup/utilities/iquery.c,v
retrieving revision 1.13
diff -u -r1.13 iquery.c
--- iquery.c 15 Sep 2006 00:48:42 -0000 1.13
+++ iquery.c 12 Oct 2006 22:16:54 -0000
@@ -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);
}