Description of problem:
Attribute "connections" in cn=snmp,cn=monitor should keep "Number of currently connected clients", as described in ldap/servers/slapd/slap.h
Because of error in program logic, it is incremented twice - in functions disconnect_server_nomutex() and connection_reset(). The value is never decremented.
Version-Release number of selected component (if applicable):
ldapsearch -b 'cn=monitor' connections connectionseq currentconnections
# counters, monitor
# snmp, monitor
Note that 2 * 58031 - 116016 = 46
Problem is in function:
void disconnect_server_nomutex( Connection *conn, PRUint64 opconnid, int opid, PRErrorCode reason, PRInt32 error )
where is called:
Attribute "currentconnections" doesn't suffer this problem because it's value is taken directly from connection table.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.