Monitor

Usage example

# Monitor and MonitorLDBM are the simple DSLdapObject things.
# You can use all methods from chapter above to get current server performance detail
version = standalone.monitor.get_attr_val('version')
dbcachehit = standalone.monitorldbm.get_attr_val('dbcachehit')

Module documentation

class lib389.monitor.Monitor(instance, dn=None)[source]

An object that helps reading of cn=monitor for server statistics. :param instance: An instance :type instance: lib389.DirSrv :param dn: not used

get_backends()[source]

Get backends related attributes value for cn=monitor

Returns:Values of nbackends and backendmonitordn attributes of cn=monitor
get_connections()[source]

Get connection related attribute values for cn=monitor

Returns:Values of connection, currentconnections, totalconnections attributes of cn=monitor
get_operations()[source]

Get operations related attributes value for cn=monitor

Returns:Values of opsinitiated and opscompleted attributes of cn=monitor
get_statistics()[source]

Get statistics attributes value for cn=monitor

Returns:Values of dtablesize, readwaiters, entriessent, bytessent, currenttime, starttime attributes of cn=monitor
get_threads()[source]

Get thread related attributes value for cn=monitor

Returns:Values of threads, currentconnectionsatmaxthreads, and maxthreadsperconnhits attributes of cn=monitor
get_version()[source]

Get version attribute value for cn=monitor

Returns:Value of version attribute of cn=monitor