#include "lutil.h"
#include "back-monitor.h"
+#ifndef LDAP_DEVEL
+#define MONITOR_LEGACY_CONN
+#endif
+
int
monitor_subsys_conn_init(
BackendDB *be,
"objectClass: %s\n"
"structuralObjectClass: %s\n"
"cn: Connection %ld\n"
-
+
+#ifdef MONITOR_LEGACY_CONN
/* NOTE: this will disappear, as the exploded data
* has been moved to dedicated attributes */
"%s: "
": %s "
": %s "
": %s\n"
+#endif /* MONITOR_LEGACY_CONN */
"%s: %lu\n"
"%s: %ld\n"
mi->mi_oc_monitorConnection->soc_cname.bv_val,
c->c_connid,
+#ifdef MONITOR_LEGACY_CONN
mi->mi_ad_monitoredInfo->ad_cname.bv_val,
c->c_connid,
(long) c->c_protocol,
buf2,
buf3,
+#endif /* MONITOR_LEGACY_CONN */
mi->mi_ad_monitorConnectionNumber->ad_cname.bv_val,
c->c_connid,
offsetof(monitor_info_t, mi_ad_monitorConnectionOpsCompleted) },
{ "monitorConnectionGet", "( 1.3.6.1.4.1.4203.666.1.44 "
"NAME 'monitorConnectionGet' "
- "DESC 'monitor FIXME???' "
+ "DESC 'number of times connection_get() was called so far' "
"SUP monitorCounter "
"NO-USER-MODIFICATION "
"USAGE directoryOperation )", SLAP_AT_FINAL|SLAP_AT_HIDE,
offsetof(monitor_info_t, mi_ad_monitorConnectionGet) },
{ "monitorConnectionRead", "( 1.3.6.1.4.1.4203.666.1.45 "
"NAME 'monitorConnectionRead' "
- "DESC 'monitor FIXME???' "
+ "DESC 'number of times connection_read() was called so far' "
"SUP monitorCounter "
"NO-USER-MODIFICATION "
"USAGE directoryOperation )", SLAP_AT_FINAL|SLAP_AT_HIDE,
offsetof(monitor_info_t, mi_ad_monitorConnectionRead) },
{ "monitorConnectionWrite", "( 1.3.6.1.4.1.4203.666.1.46 "
"NAME 'monitorConnectionWrite' "
- "DESC 'monitor FIXME???' "
+ "DESC 'number of times connection_write() was called so far' "
"SUP monitorCounter "
"NO-USER-MODIFICATION "
"USAGE directoryOperation )", SLAP_AT_FINAL|SLAP_AT_HIDE,