Module Import alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ImportFrom alias alias alias FunctionDef arguments args defaults body Expr Str Return CompareIsNot NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Dict kwarg body Assert Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq SubscriptLoad NameLoad Index Num Str body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd TupleLoad Str Call NameLoad AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareGtE BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr orelse Return orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A time N/A N/A N/A MySQLdb N/A N/A N/A ImportError N/A N/A MySQLdb None nagcat log merlintest nagios available N/A N/A N/A N/A N/A Returns False if merlin support is disabled N/A N/A MySQLdb None N/A NagcatMerlin N/A N/A nagios NagcatNagios N/A N/A NagcatNagios scheduler that load balances using merlin. __init__ N/A N/A self config nagios_cfg merlin_db_info N/A N/A kwargs N/A N/A N/A available N/A N/A N/A N/A nagios NagcatNagios __init__ self config nagios_cfg kwargs N/A N/A self _test_index 0 N/A N/A self _merlin_db_info merlin_db_info N/A N/A self _peer_id None N/A N/A self _peer_id_timestamp None N/A N/A self _num_peers None N/A N/A N/A self _update_peer_id N/A new_test N/A N/A self config N/A N/A N/A new N/A N/A merlintest MerlinTest self config N/A self _test_index N/A N/A self _test_index 1 N/A N/A N/A self register new N/A N/A self trend N/A N/A N/A N/A N/A self trend setup_test_trending new config N/A new N/A _set_peer_id_and_timestamp N/A N/A self N/A N/A N/A  Gets a peer_id and sets a timestamp for when it acquired the peer_id
        The peer_id comes from merlin, and is obtained by reading a database,
        which Merlin outputs data to. N/A N/A N/A db N/A N/A MySQLdb connect user N/A N/A self _merlin_db_info N/A merlin_db_user host N/A N/A self _merlin_db_info N/A merlin_db_host passwd N/A N/A self _merlin_db_info N/A merlin_db_pass db N/A N/A self _merlin_db_info N/A merlin_db_name N/A curs N/A N/A db cursor N/A num_rows N/A N/A curs execute select * from merlin_peers where state=3; N/A N/A self _num_peers num_rows N/A N/A N/A log debug Setting self._num_peers = %s N/A self _num_peers N/A i N/A range num_rows N/A N/A row N/A N/A curs fetchone N/A N/A N/A row N/A 0 localhost N/A N/A N/A self _peer_id N/A row N/A 5 N/A N/A self _peer_id_timestamp N/A N/A time time N/A N/A N/A log debug N/A N/A Setting self._peer_id = %s N/A str N/A self _peer_id N/A and self._peer_id_timestamp = %s N/A self _peer_id_timestamp N/A N/A N/A N/A MySQLdb Error N/A e N/A N/A N/A N/A log error N/A Error reading merlin db %d: %s N/A N/A N/A e args N/A 0 N/A N/A e args N/A 1 N/A _update_peer_id N/A N/A self N/A N/A N/A N/A N/A log debug Updating peer_id with _merlin_db_info=%s N/A self _merlin_db_info N/A N/A N/A self _peer_id N/A self _peer_id_timestamp N/A N/A N/A N/A N/A N/A time time N/A self _peer_id_timestamp 60 N/A N/A N/A N/A self _set_peer_id_and_timestamp N/A N/A N/A N/A N/A self _merlin_db_info N/A N/A N/A N/A self _set_peer_id_and_timestamp N/A get_peer_id_num_peers N/A N/A self N/A N/A N/A N/A N/A self _update_peer_id N/A N/A N/A self _peer_id N/A self _num_peers N/A N/A