Re: linkUpDownNotifications not working
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 29/09/06, Helen McManus <[email protected]> wrote: > It seems that the "monitor" directive *has* to have -u SECNAME > supplied, even though according to the docs.... you only need to use > -u if you want to use a different name than that specified by > iquerySecName. Ok - I've managed to track down and fix this problem. The iquerySecName setting wasn't being read (and acted on) early enough to be ready for the monitor directive. I'm sure this used to work, and I'm not quite sure what broke it. But the attached patch fixes this again - and has been applied to the 5.3.x and main CVS branches. It should be applied to agent/mibgroup/utilities/iquery.c 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);
}