#NEWLINE# def _add_item( self , healthcheck_name , url , expected_string = None ) : #NEWLINE# #INDENT# hc = self . storage . find_healthcheck_by_name ( healthcheck_name ) #NEWLINE# item_name = self . _create_item_name ( url ) #NEWLINE# step = { #NEWLINE# #INDENT# 'name' : item_name , #NEWLINE# 'url' : url , #NEWLINE# 'status_codes' : 200 , #NEWLINE# 'no' : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# if expected_string : #NEWLINE# #INDENT# step [ 'required' ] = expected_string #NEWLINE# #UNINDENT# item_result = self . zapi . httptest . create ( name = item_name , steps = [ step ] , hostid = hc . host_id , retries = int ( os . environ . get ( 'ZABBIX_RETRIES' , 3 ) ) ) #NEWLINE# return self [ 'httptestids' ] [ 0 ]