Lines Matching refs:temp_service

1135 	xodtemplate_service *temp_service = NULL;  in xodtemplate_add_object_property()  local
2732 temp_service = (xodtemplate_service *)xodtemplate_current_object; in xodtemplate_add_object_property()
2735 if((temp_service->template = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2740 if((temp_service->name = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2745 result = skiplist_insert(xobject_template_skiplists[X_SERVICE_SKIPLIST], (void *)temp_service); in xodtemplate_add_object_property()
2748 …ing on line %d)\n", value, xodtemplate_config_file_name(temp_service->_config_file), temp_service-… in xodtemplate_add_object_property()
2762 if((temp_service->host_name = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2765 temp_service->have_host_name = TRUE; in xodtemplate_add_object_property()
2768 …if(result == OK && force_skiplists == TRUE && temp_service->host_name != NULL && temp_service->se… in xodtemplate_add_object_property()
2770 result = skiplist_insert(xobject_skiplists[X_SERVICE_SKIPLIST], (void *)temp_service); in xodtemplate_add_object_property()
2773 …ing on line %d)\n", value, xodtemplate_config_file_name(temp_service->_config_file), temp_service-… in xodtemplate_add_object_property()
2787 if((temp_service->service_description = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2790 temp_service->have_service_description = TRUE; in xodtemplate_add_object_property()
2793 …if(result == OK && force_skiplists == TRUE && temp_service->host_name != NULL && temp_service->se… in xodtemplate_add_object_property()
2795 result = skiplist_insert(xobject_skiplists[X_SERVICE_SKIPLIST], (void *)temp_service); in xodtemplate_add_object_property()
2798 …ing on line %d)\n", value, xodtemplate_config_file_name(temp_service->_config_file), temp_service-… in xodtemplate_add_object_property()
2812 if((temp_service->display_name = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2815 temp_service->have_display_name = TRUE; in xodtemplate_add_object_property()
2819 if((temp_service->hostgroup_name = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2822 temp_service->have_hostgroup_name = TRUE; in xodtemplate_add_object_property()
2826 if((temp_service->service_groups = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2829 temp_service->have_service_groups = TRUE; in xodtemplate_add_object_property()
2834 temp_service->have_important_check_command = TRUE; in xodtemplate_add_object_property()
2839 if((temp_service->check_command = (char *)strdup(temp_ptr)) == NULL) in xodtemplate_add_object_property()
2842 temp_service->have_check_command = TRUE; in xodtemplate_add_object_property()
2846 if((temp_service->check_period = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2849 temp_service->have_check_period = TRUE; in xodtemplate_add_object_property()
2853 if((temp_service->event_handler = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2856 temp_service->have_event_handler = TRUE; in xodtemplate_add_object_property()
2860 if((temp_service->notification_period = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2863 temp_service->have_notification_period = TRUE; in xodtemplate_add_object_property()
2867 if((temp_service->contact_groups = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2870 temp_service->have_contact_groups = TRUE; in xodtemplate_add_object_property()
2874 if((temp_service->contacts = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2877 temp_service->have_contacts = TRUE; in xodtemplate_add_object_property()
2881 if((temp_service->failure_prediction_options = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2884 temp_service->have_failure_prediction_options = TRUE; in xodtemplate_add_object_property()
2888 if((temp_service->notes = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2891 temp_service->have_notes = TRUE; in xodtemplate_add_object_property()
2895 if((temp_service->notes_url = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2898 temp_service->have_notes_url = TRUE; in xodtemplate_add_object_property()
2902 if((temp_service->action_url = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2905 temp_service->have_action_url = TRUE; in xodtemplate_add_object_property()
2909 if((temp_service->icon_image = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2912 temp_service->have_icon_image = TRUE; in xodtemplate_add_object_property()
2916 if((temp_service->icon_image_alt = (char *)strdup(value)) == NULL) in xodtemplate_add_object_property()
2919 temp_service->have_icon_image_alt = TRUE; in xodtemplate_add_object_property()
2923 temp_service->initial_state = STATE_OK; in xodtemplate_add_object_property()
2925 temp_service->initial_state = STATE_WARNING; in xodtemplate_add_object_property()
2927 temp_service->initial_state = STATE_UNKNOWN; in xodtemplate_add_object_property()
2929 temp_service->initial_state = STATE_CRITICAL; in xodtemplate_add_object_property()
2934 temp_service->have_initial_state = TRUE; in xodtemplate_add_object_property()
2937 temp_service->max_check_attempts = atoi(value); in xodtemplate_add_object_property()
2938 temp_service->have_max_check_attempts = TRUE; in xodtemplate_add_object_property()
2941 temp_service->check_interval = strtod(value, NULL); in xodtemplate_add_object_property()
2942 temp_service->have_check_interval = TRUE; in xodtemplate_add_object_property()
2945 temp_service->retry_interval = strtod(value, NULL); in xodtemplate_add_object_property()
2946 temp_service->have_retry_interval = TRUE; in xodtemplate_add_object_property()
2949 temp_service->active_checks_enabled = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
2950 temp_service->have_active_checks_enabled = TRUE; in xodtemplate_add_object_property()
2953 temp_service->passive_checks_enabled = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
2954 temp_service->have_passive_checks_enabled = TRUE; in xodtemplate_add_object_property()
2957 temp_service->parallelize_check = atoi(value); in xodtemplate_add_object_property()
2958 temp_service->have_parallelize_check = TRUE; in xodtemplate_add_object_property()
2961 temp_service->is_volatile = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
2962 temp_service->have_is_volatile = TRUE; in xodtemplate_add_object_property()
2965 temp_service->obsess_over_service = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
2966 temp_service->have_obsess_over_service = TRUE; in xodtemplate_add_object_property()
2969 temp_service->event_handler_enabled = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
2970 temp_service->have_event_handler_enabled = TRUE; in xodtemplate_add_object_property()
2973 temp_service->check_freshness = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
2974 temp_service->have_check_freshness = TRUE; in xodtemplate_add_object_property()
2977 temp_service->freshness_threshold = atoi(value); in xodtemplate_add_object_property()
2978 temp_service->have_freshness_threshold = TRUE; in xodtemplate_add_object_property()
2981 temp_service->low_flap_threshold = strtod(value, NULL); in xodtemplate_add_object_property()
2982 temp_service->have_low_flap_threshold = TRUE; in xodtemplate_add_object_property()
2985 temp_service->high_flap_threshold = strtod(value, NULL); in xodtemplate_add_object_property()
2986 temp_service->have_high_flap_threshold = TRUE; in xodtemplate_add_object_property()
2989 temp_service->flap_detection_enabled = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
2990 temp_service->have_flap_detection_enabled = TRUE; in xodtemplate_add_object_property()
2995 temp_service->flap_detection_on_ok = FALSE; in xodtemplate_add_object_property()
2996 temp_service->flap_detection_on_warning = FALSE; in xodtemplate_add_object_property()
2997 temp_service->flap_detection_on_unknown = FALSE; in xodtemplate_add_object_property()
2998 temp_service->flap_detection_on_critical = FALSE; in xodtemplate_add_object_property()
3002 temp_service->flap_detection_on_ok = TRUE; in xodtemplate_add_object_property()
3004 temp_service->flap_detection_on_warning = TRUE; in xodtemplate_add_object_property()
3006 temp_service->flap_detection_on_unknown = TRUE; in xodtemplate_add_object_property()
3008 temp_service->flap_detection_on_critical = TRUE; in xodtemplate_add_object_property()
3010 temp_service->flap_detection_on_ok = FALSE; in xodtemplate_add_object_property()
3011 temp_service->flap_detection_on_warning = FALSE; in xodtemplate_add_object_property()
3012 temp_service->flap_detection_on_unknown = FALSE; in xodtemplate_add_object_property()
3013 temp_service->flap_detection_on_critical = FALSE; in xodtemplate_add_object_property()
3016 temp_service->flap_detection_on_ok = TRUE; in xodtemplate_add_object_property()
3017 temp_service->flap_detection_on_warning = TRUE; in xodtemplate_add_object_property()
3018 temp_service->flap_detection_on_unknown = TRUE; in xodtemplate_add_object_property()
3019 temp_service->flap_detection_on_critical = TRUE; in xodtemplate_add_object_property()
3026 temp_service->have_flap_detection_options = TRUE; in xodtemplate_add_object_property()
3031 temp_service->notify_on_unknown = TRUE; in xodtemplate_add_object_property()
3033 temp_service->notify_on_warning = TRUE; in xodtemplate_add_object_property()
3035 temp_service->notify_on_critical = TRUE; in xodtemplate_add_object_property()
3037 temp_service->notify_on_recovery = TRUE; in xodtemplate_add_object_property()
3039 temp_service->notify_on_flapping = TRUE; in xodtemplate_add_object_property()
3041 temp_service->notify_on_downtime = TRUE; in xodtemplate_add_object_property()
3043 temp_service->notify_on_unknown = FALSE; in xodtemplate_add_object_property()
3044 temp_service->notify_on_warning = FALSE; in xodtemplate_add_object_property()
3045 temp_service->notify_on_critical = FALSE; in xodtemplate_add_object_property()
3046 temp_service->notify_on_recovery = FALSE; in xodtemplate_add_object_property()
3047 temp_service->notify_on_flapping = FALSE; in xodtemplate_add_object_property()
3048 temp_service->notify_on_downtime = FALSE; in xodtemplate_add_object_property()
3051 temp_service->notify_on_unknown = TRUE; in xodtemplate_add_object_property()
3052 temp_service->notify_on_warning = TRUE; in xodtemplate_add_object_property()
3053 temp_service->notify_on_critical = TRUE; in xodtemplate_add_object_property()
3054 temp_service->notify_on_recovery = TRUE; in xodtemplate_add_object_property()
3055 temp_service->notify_on_flapping = TRUE; in xodtemplate_add_object_property()
3056 temp_service->notify_on_downtime = TRUE; in xodtemplate_add_object_property()
3063 temp_service->have_notification_options = TRUE; in xodtemplate_add_object_property()
3066 temp_service->notifications_enabled = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
3067 temp_service->have_notifications_enabled = TRUE; in xodtemplate_add_object_property()
3070 temp_service->notification_interval = strtod(value, NULL); in xodtemplate_add_object_property()
3071 temp_service->have_notification_interval = TRUE; in xodtemplate_add_object_property()
3074 temp_service->first_notification_delay = strtod(value, NULL); in xodtemplate_add_object_property()
3075 temp_service->have_first_notification_delay = TRUE; in xodtemplate_add_object_property()
3080 temp_service->stalk_on_ok = TRUE; in xodtemplate_add_object_property()
3082 temp_service->stalk_on_warning = TRUE; in xodtemplate_add_object_property()
3084 temp_service->stalk_on_unknown = TRUE; in xodtemplate_add_object_property()
3086 temp_service->stalk_on_critical = TRUE; in xodtemplate_add_object_property()
3088 temp_service->stalk_on_ok = FALSE; in xodtemplate_add_object_property()
3089 temp_service->stalk_on_warning = FALSE; in xodtemplate_add_object_property()
3090 temp_service->stalk_on_unknown = FALSE; in xodtemplate_add_object_property()
3091 temp_service->stalk_on_critical = FALSE; in xodtemplate_add_object_property()
3094 temp_service->stalk_on_ok = TRUE; in xodtemplate_add_object_property()
3095 temp_service->stalk_on_warning = TRUE; in xodtemplate_add_object_property()
3096 temp_service->stalk_on_unknown = TRUE; in xodtemplate_add_object_property()
3097 temp_service->stalk_on_critical = TRUE; in xodtemplate_add_object_property()
3104 temp_service->have_stalking_options = TRUE; in xodtemplate_add_object_property()
3107 temp_service->process_perf_data = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
3108 temp_service->have_process_perf_data = TRUE; in xodtemplate_add_object_property()
3111 temp_service->failure_prediction_enabled = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
3112 temp_service->have_failure_prediction_enabled = TRUE; in xodtemplate_add_object_property()
3115 temp_service->retain_status_information = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
3116 temp_service->have_retain_status_information = TRUE; in xodtemplate_add_object_property()
3119 temp_service->retain_nonstatus_information = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
3120 temp_service->have_retain_nonstatus_information = TRUE; in xodtemplate_add_object_property()
3123 temp_service->register_object = (atoi(value) > 0) ? TRUE : FALSE; in xodtemplate_add_object_property()
3143 …if(xodtemplate_add_custom_variable_to_service(temp_service, customvarname, customvarvalue) == NULL… in xodtemplate_add_object_property()
4111 xodtemplate_service *temp_service = NULL; in xodtemplate_duplicate_services() local
4120 …for(temp_service = xodtemplate_service_list; temp_service != NULL; temp_service = temp_service->ne… in xodtemplate_duplicate_services()
4123 if(temp_service->hostgroup_name == NULL && temp_service->host_name == NULL) in xodtemplate_duplicate_services()
4128 if(temp_service->hostgroup_name != NULL) { in xodtemplate_duplicate_services()
4129 …oups(&temp_memberlist, &temp_rejectlist, temp_service->hostgroup_name, temp_service->_config_file,… in xodtemplate_duplicate_services()
4147 if(temp_service->register_object == FALSE) in xodtemplate_duplicate_services()
4151 …_expand_hostgroups_and_hosts(temp_service->hostgroup_name, temp_service->host_name, temp_service->… in xodtemplate_duplicate_services()
4153 …, starting on line %d)\n", xodtemplate_config_file_name(temp_service->_config_file), temp_service-… in xodtemplate_duplicate_services()
4164 my_free(temp_service->host_name); in xodtemplate_duplicate_services()
4165 temp_service->host_name = (char *)strdup(this_memberlist->name1); in xodtemplate_duplicate_services()
4166 if(temp_service->host_name == NULL) { in xodtemplate_duplicate_services()
4176 result = xodtemplate_duplicate_service(temp_service, this_memberlist->name1); in xodtemplate_duplicate_services()
4195 …for(temp_service = xodtemplate_service_list; temp_service != NULL; temp_service = temp_service->ne… in xodtemplate_duplicate_services()
4198 if(temp_service->register_object == FALSE) in xodtemplate_duplicate_services()
4202 if(temp_service->host_name == NULL || temp_service->service_description == NULL) in xodtemplate_duplicate_services()
4205 if(xodtemplate_is_service_is_from_hostgroup(temp_service)) { in xodtemplate_duplicate_services()
4210 result = skiplist_insert(xobject_skiplists[X_SERVICE_SKIPLIST], (void *)temp_service); in xodtemplate_duplicate_services()
4213 …ne %d)\n", temp_service->service_description, temp_service->host_name, xodtemplate_config_file_nam… in xodtemplate_duplicate_services()
4228 …for(temp_service = xodtemplate_service_list; temp_service != NULL; temp_service = temp_service->ne… in xodtemplate_duplicate_services()
4231 if(temp_service->register_object == FALSE) in xodtemplate_duplicate_services()
4235 if(temp_service->host_name == NULL || temp_service->service_description == NULL) in xodtemplate_duplicate_services()
4238 if(!xodtemplate_is_service_is_from_hostgroup(temp_service)) { in xodtemplate_duplicate_services()
4242 xodtemplate_unset_service_is_from_hostgroup(temp_service); in xodtemplate_duplicate_services()
4244 result = skiplist_insert(xobject_skiplists[X_SERVICE_SKIPLIST], (void *)temp_service); in xodtemplate_duplicate_services()
4247 …ne %d)\n", temp_service->service_description, temp_service->host_name, xodtemplate_config_file_nam… in xodtemplate_duplicate_services()
5097 int xodtemplate_duplicate_service(xodtemplate_service *temp_service, char *host_name) { in xodtemplate_duplicate_service() argument
5108 new_service->has_been_resolved = temp_service->has_been_resolved; in xodtemplate_duplicate_service()
5109 new_service->register_object = temp_service->register_object; in xodtemplate_duplicate_service()
5110 new_service->_config_file = temp_service->_config_file; in xodtemplate_duplicate_service()
5111 new_service->_start_line = temp_service->_start_line; in xodtemplate_duplicate_service()
5116 new_service->have_hostgroup_name = temp_service->have_hostgroup_name; in xodtemplate_duplicate_service()
5117 new_service->have_host_name = temp_service->have_host_name; in xodtemplate_duplicate_service()
5118 new_service->have_service_description = temp_service->have_service_description; in xodtemplate_duplicate_service()
5119 new_service->have_display_name = temp_service->have_display_name; in xodtemplate_duplicate_service()
5120 new_service->have_service_groups = temp_service->have_service_groups; in xodtemplate_duplicate_service()
5121 new_service->have_check_command = temp_service->have_check_command; in xodtemplate_duplicate_service()
5122 new_service->have_check_period = temp_service->have_check_period; in xodtemplate_duplicate_service()
5123 new_service->have_event_handler = temp_service->have_event_handler; in xodtemplate_duplicate_service()
5124 new_service->have_notification_period = temp_service->have_notification_period; in xodtemplate_duplicate_service()
5125 new_service->have_contact_groups = temp_service->have_contact_groups; in xodtemplate_duplicate_service()
5126 new_service->have_contacts = temp_service->have_contacts; in xodtemplate_duplicate_service()
5127 new_service->have_failure_prediction_options = temp_service->have_failure_prediction_options; in xodtemplate_duplicate_service()
5128 new_service->have_notes = temp_service->have_notes; in xodtemplate_duplicate_service()
5129 new_service->have_notes_url = temp_service->have_notes_url; in xodtemplate_duplicate_service()
5130 new_service->have_action_url = temp_service->have_action_url; in xodtemplate_duplicate_service()
5131 new_service->have_icon_image = temp_service->have_icon_image; in xodtemplate_duplicate_service()
5132 new_service->have_icon_image_alt = temp_service->have_icon_image_alt; in xodtemplate_duplicate_service()
5135 if(temp_service->host_name != NULL && (new_service->host_name = (char *)strdup(host_name)) == NULL) in xodtemplate_duplicate_service()
5137 …if(temp_service->template != NULL && (new_service->template = (char *)strdup(temp_service->templat… in xodtemplate_duplicate_service()
5139 if(temp_service->name != NULL && (new_service->name = (char *)strdup(temp_service->name)) == NULL) in xodtemplate_duplicate_service()
5141 …if(temp_service->service_description != NULL && (new_service->service_description = (char *)strdup… in xodtemplate_duplicate_service()
5143 …if(temp_service->display_name != NULL && (new_service->display_name = (char *)strdup(temp_service-… in xodtemplate_duplicate_service()
5145 …if(temp_service->service_groups != NULL && (new_service->service_groups = (char *)strdup(temp_serv… in xodtemplate_duplicate_service()
5147 …if(temp_service->check_command != NULL && (new_service->check_command = (char *)strdup(temp_servic… in xodtemplate_duplicate_service()
5149 …if(temp_service->check_period != NULL && (new_service->check_period = (char *)strdup(temp_service-… in xodtemplate_duplicate_service()
5151 …if(temp_service->event_handler != NULL && (new_service->event_handler = (char *)strdup(temp_servic… in xodtemplate_duplicate_service()
5153 …if(temp_service->notification_period != NULL && (new_service->notification_period = (char *)strdup… in xodtemplate_duplicate_service()
5155 …if(temp_service->contact_groups != NULL && (new_service->contact_groups = (char *)strdup(temp_serv… in xodtemplate_duplicate_service()
5157 …if(temp_service->contacts != NULL && (new_service->contacts = (char *)strdup(temp_service->contact… in xodtemplate_duplicate_service()
5159 …if(temp_service->failure_prediction_options != NULL && (new_service->failure_prediction_options = … in xodtemplate_duplicate_service()
5161 …if(temp_service->notes != NULL && (new_service->notes = (char *)strdup(temp_service->notes)) == NU… in xodtemplate_duplicate_service()
5163 …if(temp_service->notes_url != NULL && (new_service->notes_url = (char *)strdup(temp_service->notes… in xodtemplate_duplicate_service()
5165 …if(temp_service->action_url != NULL && (new_service->action_url = (char *)strdup(temp_service->act… in xodtemplate_duplicate_service()
5167 …if(temp_service->icon_image != NULL && (new_service->icon_image = (char *)strdup(temp_service->ico… in xodtemplate_duplicate_service()
5169 …if(temp_service->icon_image_alt != NULL && (new_service->icon_image_alt = (char *)strdup(temp_serv… in xodtemplate_duplicate_service()
5196 …for(temp_customvariablesmember = temp_service->custom_variables; temp_customvariablesmember != NUL… in xodtemplate_duplicate_service()
5200 new_service->initial_state = temp_service->initial_state; in xodtemplate_duplicate_service()
5201 new_service->max_check_attempts = temp_service->max_check_attempts; in xodtemplate_duplicate_service()
5202 new_service->have_max_check_attempts = temp_service->have_max_check_attempts; in xodtemplate_duplicate_service()
5203 new_service->check_interval = temp_service->check_interval; in xodtemplate_duplicate_service()
5204 new_service->have_check_interval = temp_service->have_check_interval; in xodtemplate_duplicate_service()
5205 new_service->retry_interval = temp_service->retry_interval; in xodtemplate_duplicate_service()
5206 new_service->have_retry_interval = temp_service->have_retry_interval; in xodtemplate_duplicate_service()
5207 new_service->active_checks_enabled = temp_service->active_checks_enabled; in xodtemplate_duplicate_service()
5208 new_service->have_active_checks_enabled = temp_service->have_active_checks_enabled; in xodtemplate_duplicate_service()
5209 new_service->passive_checks_enabled = temp_service->passive_checks_enabled; in xodtemplate_duplicate_service()
5210 new_service->have_passive_checks_enabled = temp_service->have_passive_checks_enabled; in xodtemplate_duplicate_service()
5211 new_service->parallelize_check = temp_service->parallelize_check; in xodtemplate_duplicate_service()
5212 new_service->have_parallelize_check = temp_service->have_parallelize_check; in xodtemplate_duplicate_service()
5213 new_service->is_volatile = temp_service->is_volatile; in xodtemplate_duplicate_service()
5214 new_service->have_is_volatile = temp_service->have_is_volatile; in xodtemplate_duplicate_service()
5215 new_service->obsess_over_service = temp_service->obsess_over_service; in xodtemplate_duplicate_service()
5216 new_service->have_obsess_over_service = temp_service->have_obsess_over_service; in xodtemplate_duplicate_service()
5217 new_service->event_handler_enabled = temp_service->event_handler_enabled; in xodtemplate_duplicate_service()
5218 new_service->have_event_handler_enabled = temp_service->have_event_handler_enabled; in xodtemplate_duplicate_service()
5219 new_service->check_freshness = temp_service->check_freshness; in xodtemplate_duplicate_service()
5220 new_service->have_check_freshness = temp_service->have_check_freshness; in xodtemplate_duplicate_service()
5221 new_service->freshness_threshold = temp_service->freshness_threshold; in xodtemplate_duplicate_service()
5222 new_service->have_freshness_threshold = temp_service->have_freshness_threshold; in xodtemplate_duplicate_service()
5223 new_service->flap_detection_enabled = temp_service->flap_detection_enabled; in xodtemplate_duplicate_service()
5224 new_service->have_flap_detection_enabled = temp_service->have_flap_detection_enabled; in xodtemplate_duplicate_service()
5225 new_service->low_flap_threshold = temp_service->low_flap_threshold; in xodtemplate_duplicate_service()
5226 new_service->have_low_flap_threshold = temp_service->have_low_flap_threshold; in xodtemplate_duplicate_service()
5227 new_service->high_flap_threshold = temp_service->high_flap_threshold; in xodtemplate_duplicate_service()
5228 new_service->have_high_flap_threshold = temp_service->have_high_flap_threshold; in xodtemplate_duplicate_service()
5229 new_service->flap_detection_on_ok = temp_service->flap_detection_on_ok; in xodtemplate_duplicate_service()
5230 new_service->flap_detection_on_warning = temp_service->flap_detection_on_warning; in xodtemplate_duplicate_service()
5231 new_service->flap_detection_on_unknown = temp_service->flap_detection_on_unknown; in xodtemplate_duplicate_service()
5232 new_service->flap_detection_on_critical = temp_service->flap_detection_on_critical; in xodtemplate_duplicate_service()
5233 new_service->have_flap_detection_options = temp_service->have_flap_detection_options; in xodtemplate_duplicate_service()
5234 new_service->notify_on_unknown = temp_service->notify_on_unknown; in xodtemplate_duplicate_service()
5235 new_service->notify_on_warning = temp_service->notify_on_warning; in xodtemplate_duplicate_service()
5236 new_service->notify_on_critical = temp_service->notify_on_critical; in xodtemplate_duplicate_service()
5237 new_service->notify_on_recovery = temp_service->notify_on_recovery; in xodtemplate_duplicate_service()
5238 new_service->notify_on_flapping = temp_service->notify_on_flapping; in xodtemplate_duplicate_service()
5239 new_service->notify_on_downtime = temp_service->notify_on_downtime; in xodtemplate_duplicate_service()
5240 new_service->have_notification_options = temp_service->have_notification_options; in xodtemplate_duplicate_service()
5241 new_service->notifications_enabled = temp_service->notifications_enabled; in xodtemplate_duplicate_service()
5242 new_service->have_notifications_enabled = temp_service->have_notifications_enabled; in xodtemplate_duplicate_service()
5243 new_service->notification_interval = temp_service->notification_interval; in xodtemplate_duplicate_service()
5244 new_service->have_notification_interval = temp_service->have_notification_interval; in xodtemplate_duplicate_service()
5245 new_service->first_notification_delay = temp_service->first_notification_delay; in xodtemplate_duplicate_service()
5246 new_service->have_first_notification_delay = temp_service->have_first_notification_delay; in xodtemplate_duplicate_service()
5247 new_service->stalk_on_ok = temp_service->stalk_on_ok; in xodtemplate_duplicate_service()
5248 new_service->stalk_on_unknown = temp_service->stalk_on_unknown; in xodtemplate_duplicate_service()
5249 new_service->stalk_on_warning = temp_service->stalk_on_warning; in xodtemplate_duplicate_service()
5250 new_service->stalk_on_critical = temp_service->stalk_on_critical; in xodtemplate_duplicate_service()
5251 new_service->have_stalking_options = temp_service->have_stalking_options; in xodtemplate_duplicate_service()
5252 new_service->process_perf_data = temp_service->process_perf_data; in xodtemplate_duplicate_service()
5253 new_service->have_process_perf_data = temp_service->have_process_perf_data; in xodtemplate_duplicate_service()
5254 new_service->failure_prediction_enabled = temp_service->failure_prediction_enabled; in xodtemplate_duplicate_service()
5255 new_service->have_failure_prediction_enabled = temp_service->have_failure_prediction_enabled; in xodtemplate_duplicate_service()
5256 new_service->retain_status_information = temp_service->retain_status_information; in xodtemplate_duplicate_service()
5257 new_service->have_retain_status_information = temp_service->have_retain_status_information; in xodtemplate_duplicate_service()
5258 new_service->retain_nonstatus_information = temp_service->retain_nonstatus_information; in xodtemplate_duplicate_service()
5259 new_service->have_retain_nonstatus_information = temp_service->have_retain_nonstatus_information; in xodtemplate_duplicate_service()
5743 xodtemplate_service *temp_service = NULL; in xodtemplate_inherit_object_properties() local
5763 …for(temp_service = xodtemplate_service_list; temp_service != NULL; temp_service = temp_service->ne… in xodtemplate_inherit_object_properties()
5766 if((temp_host = xodtemplate_find_real_host(temp_service->host_name)) == NULL) in xodtemplate_inherit_object_properties()
5770 …if(temp_service->have_contact_groups == FALSE && temp_host->have_contact_groups == TRUE && temp_ho… in xodtemplate_inherit_object_properties()
5771 temp_service->contact_groups = (char *)strdup(temp_host->contact_groups); in xodtemplate_inherit_object_properties()
5772 temp_service->have_contact_groups = TRUE; in xodtemplate_inherit_object_properties()
5776 …if(temp_service->have_contacts == FALSE && temp_host->have_contacts == TRUE && temp_host->contacts… in xodtemplate_inherit_object_properties()
5777 temp_service->contacts = (char *)strdup(temp_host->contacts); in xodtemplate_inherit_object_properties()
5778 temp_service->have_contacts = TRUE; in xodtemplate_inherit_object_properties()
5782 …if(temp_service->have_notification_interval == FALSE && temp_host->have_notification_interval == T… in xodtemplate_inherit_object_properties()
5783 temp_service->notification_interval = temp_host->notification_interval; in xodtemplate_inherit_object_properties()
5784 temp_service->have_notification_interval = TRUE; in xodtemplate_inherit_object_properties()
5788 …if(temp_service->have_notification_period == FALSE && temp_host->have_notification_period == TRUE … in xodtemplate_inherit_object_properties()
5789 temp_service->notification_period = (char *)strdup(temp_host->notification_period); in xodtemplate_inherit_object_properties()
5790 temp_service->have_notification_period = TRUE; in xodtemplate_inherit_object_properties()
5794 if(temp_service->have_notification_options == FALSE) { in xodtemplate_inherit_object_properties()
5795 temp_service->notify_on_unknown = TRUE; in xodtemplate_inherit_object_properties()
5796 temp_service->notify_on_warning = TRUE; in xodtemplate_inherit_object_properties()
5797 temp_service->notify_on_critical = TRUE; in xodtemplate_inherit_object_properties()
5798 temp_service->notify_on_recovery = TRUE; in xodtemplate_inherit_object_properties()
5799 temp_service->notify_on_flapping = TRUE; in xodtemplate_inherit_object_properties()
5800 temp_service->notify_on_downtime = TRUE; in xodtemplate_inherit_object_properties()
5801 temp_service->have_notification_options = TRUE; in xodtemplate_inherit_object_properties()
5809 …if((temp_service = xodtemplate_find_real_service(temp_serviceescalation->host_name, temp_servicees… in xodtemplate_inherit_object_properties()
5813 …viceescalation->have_contact_groups == FALSE && temp_service->have_contact_groups == TRUE && temp_… in xodtemplate_inherit_object_properties()
5814 temp_serviceescalation->contact_groups = (char *)strdup(temp_service->contact_groups); in xodtemplate_inherit_object_properties()
5820 …xodtemplate_get_inherited_string(&temp_service->have_contact_groups, &temp_service->contact_groups… in xodtemplate_inherit_object_properties()
5823 …(temp_serviceescalation->have_contacts == FALSE && temp_service->have_contacts == TRUE && temp_ser… in xodtemplate_inherit_object_properties()
5824 temp_serviceescalation->contacts = (char *)strdup(temp_service->contacts); in xodtemplate_inherit_object_properties()
5830 …xodtemplate_get_inherited_string(&temp_service->have_contacts, &temp_service->contacts, &temp_serv… in xodtemplate_inherit_object_properties()
5833 …if(temp_serviceescalation->have_notification_interval == FALSE && temp_service->have_notification_… in xodtemplate_inherit_object_properties()
5834 temp_serviceescalation->notification_interval = temp_service->notification_interval; in xodtemplate_inherit_object_properties()
5839 …calation->have_escalation_period == FALSE && temp_service->have_notification_period == TRUE && tem… in xodtemplate_inherit_object_properties()
5840 temp_serviceescalation->escalation_period = (char *)strdup(temp_service->notification_period); in xodtemplate_inherit_object_properties()
5933 xodtemplate_service *temp_service = NULL; in xodtemplate_resolve_objects() local
5994 …for(temp_service = xodtemplate_service_list; temp_service != NULL; temp_service = temp_service->ne… in xodtemplate_resolve_objects()
5995 if(xodtemplate_resolve_service(temp_service) == ERROR) in xodtemplate_resolve_objects()
7868 xodtemplate_service *temp_service = NULL; in xodtemplate_recombobulate_servicegroups() local
7882 …for(temp_service = xodtemplate_service_list; temp_service != NULL; temp_service = temp_service->ne… in xodtemplate_recombobulate_servicegroups()
7885 …if(temp_service->service_groups == NULL || temp_service->host_name == NULL || temp_service->servic… in xodtemplate_recombobulate_servicegroups()
7889 if(temp_service->register_object == FALSE) in xodtemplate_recombobulate_servicegroups()
7894 …= xodtemplate_process_servicegroup_names(temp_service->service_groups, temp_service->_config_file,… in xodtemplate_recombobulate_servicegroups()
7906 … temp_ptr, temp_service->service_description, temp_service->host_name, xodtemplate_config_file_nam… in xodtemplate_recombobulate_servicegroups()
7913 …temp_servicegroup->members = (char *)malloc(strlen(temp_service->host_name) + strlen(temp_service-… in xodtemplate_recombobulate_servicegroups()
7915 strcpy(temp_servicegroup->members, temp_service->host_name); in xodtemplate_recombobulate_servicegroups()
7917 strcat(temp_servicegroup->members, temp_service->service_description); in xodtemplate_recombobulate_servicegroups()
7921 …members, strlen(temp_servicegroup->members) + strlen(temp_service->host_name) + strlen(temp_servic… in xodtemplate_recombobulate_servicegroups()
7925 strcat(temp_servicegroup->members, temp_service->host_name); in xodtemplate_recombobulate_servicegroups()
7927 strcat(temp_servicegroup->members, temp_service->service_description); in xodtemplate_recombobulate_servicegroups()
8344 xodtemplate_service temp_service; in xodtemplate_find_service() local
8349 temp_service.name = name; in xodtemplate_find_service()
8351 return skiplist_find_first(xobject_template_skiplists[X_SERVICE_SKIPLIST], &temp_service, NULL); in xodtemplate_find_service()
8357 xodtemplate_service temp_service; in xodtemplate_find_real_service() local
8362 temp_service.host_name = host_name; in xodtemplate_find_real_service()
8363 temp_service.service_description = service_description; in xodtemplate_find_real_service()
8365 return skiplist_find_first(xobject_skiplists[X_SERVICE_SKIPLIST], &temp_service, NULL); in xodtemplate_find_real_service()
8386 xodtemplate_service *temp_service = NULL; in xodtemplate_register_objects() local
8452 …for(temp_service = (xodtemplate_service *)skiplist_get_first(xobject_skiplists[X_SERVICE_SKIPLIST]… in xodtemplate_register_objects()
8454 if((result = xodtemplate_register_service(temp_service)) == ERROR) in xodtemplate_register_objects()
9711 xodtemplate_service *temp_service = NULL; in xodtemplate_sort_services() local
9718 …for(temp_service = xodtemplate_service_list; temp_service != NULL; temp_service = temp_service->ne… in xodtemplate_sort_services()
9719 skiplist_insert(xodtemplate_service_skiplist, temp_service); in xodtemplate_sort_services()
9727 xodtemplate_service *temp_service = NULL; in xodtemplate_sort_services() local
9739 for(temp_service = new_service_list; temp_service != NULL; temp_service = temp_service->next) { in xodtemplate_sort_services()
9741 …_orig->host_name, temp_service_orig->service_description, temp_service->host_name, temp_service->s… in xodtemplate_sort_services()
9744 last_service = temp_service; in xodtemplate_sort_services()
9754 else if(temp_service == new_service_list) { in xodtemplate_sort_services()
9761 temp_service_orig->next = temp_service; in xodtemplate_sort_services()
9984 xodtemplate_service *temp_service = NULL; in xodtemplate_merge_extinfo_ojects() local
9994 …if((temp_service = xodtemplate_find_real_service(temp_serviceextinfo->host_name, temp_serviceextin… in xodtemplate_merge_extinfo_ojects()
9998 xodtemplate_merge_service_extinfo_object(temp_service, temp_serviceextinfo); in xodtemplate_merge_extinfo_ojects()
10101 xodtemplate_service *temp_service = NULL; in xodtemplate_cache_objects() local
10484 …for(temp_service = (xodtemplate_service *)skiplist_get_first(xobject_skiplists[X_SERVICE_SKIPLIST]… in xodtemplate_cache_objects()
10485 if(temp_service->register_object == FALSE) in xodtemplate_cache_objects()
10488 if(temp_service->host_name) in xodtemplate_cache_objects()
10489 fprintf(fp, "\thost_name\t%s\n", temp_service->host_name); in xodtemplate_cache_objects()
10490 if(temp_service->service_description) in xodtemplate_cache_objects()
10491 fprintf(fp, "\tservice_description\t%s\n", temp_service->service_description); in xodtemplate_cache_objects()
10492 if(temp_service->display_name) in xodtemplate_cache_objects()
10493 fprintf(fp, "\tdisplay_name\t%s\n", temp_service->display_name); in xodtemplate_cache_objects()
10494 if(temp_service->check_period) in xodtemplate_cache_objects()
10495 fprintf(fp, "\tcheck_period\t%s\n", temp_service->check_period); in xodtemplate_cache_objects()
10496 if(temp_service->check_command) in xodtemplate_cache_objects()
10497 fprintf(fp, "\tcheck_command\t%s\n", temp_service->check_command); in xodtemplate_cache_objects()
10498 if(temp_service->event_handler) in xodtemplate_cache_objects()
10499 fprintf(fp, "\tevent_handler\t%s\n", temp_service->event_handler); in xodtemplate_cache_objects()
10500 if(temp_service->contacts) in xodtemplate_cache_objects()
10501 fprintf(fp, "\tcontacts\t%s\n", temp_service->contacts); in xodtemplate_cache_objects()
10502 if(temp_service->contact_groups) in xodtemplate_cache_objects()
10503 fprintf(fp, "\tcontact_groups\t%s\n", temp_service->contact_groups); in xodtemplate_cache_objects()
10504 if(temp_service->notification_period) in xodtemplate_cache_objects()
10505 fprintf(fp, "\tnotification_period\t%s\n", temp_service->notification_period); in xodtemplate_cache_objects()
10506 if(temp_service->failure_prediction_options) in xodtemplate_cache_objects()
10507 fprintf(fp, "\tfailure_prediction_options\t%s\n", temp_service->failure_prediction_options); in xodtemplate_cache_objects()
10509 if(temp_service->initial_state == STATE_WARNING) in xodtemplate_cache_objects()
10511 else if(temp_service->initial_state == STATE_UNKNOWN) in xodtemplate_cache_objects()
10513 else if(temp_service->initial_state == STATE_CRITICAL) in xodtemplate_cache_objects()
10517 fprintf(fp, "\tcheck_interval\t%f\n", temp_service->check_interval); in xodtemplate_cache_objects()
10518 fprintf(fp, "\tretry_interval\t%f\n", temp_service->retry_interval); in xodtemplate_cache_objects()
10519 fprintf(fp, "\tmax_check_attempts\t%d\n", temp_service->max_check_attempts); in xodtemplate_cache_objects()
10520 fprintf(fp, "\tis_volatile\t%d\n", temp_service->is_volatile); in xodtemplate_cache_objects()
10521 fprintf(fp, "\tparallelize_check\t%d\n", temp_service->parallelize_check); in xodtemplate_cache_objects()
10522 fprintf(fp, "\tactive_checks_enabled\t%d\n", temp_service->active_checks_enabled); in xodtemplate_cache_objects()
10523 fprintf(fp, "\tpassive_checks_enabled\t%d\n", temp_service->passive_checks_enabled); in xodtemplate_cache_objects()
10524 fprintf(fp, "\tobsess_over_service\t%d\n", temp_service->obsess_over_service); in xodtemplate_cache_objects()
10525 fprintf(fp, "\tevent_handler_enabled\t%d\n", temp_service->event_handler_enabled); in xodtemplate_cache_objects()
10526 fprintf(fp, "\tlow_flap_threshold\t%f\n", temp_service->low_flap_threshold); in xodtemplate_cache_objects()
10527 fprintf(fp, "\thigh_flap_threshold\t%f\n", temp_service->high_flap_threshold); in xodtemplate_cache_objects()
10528 fprintf(fp, "\tflap_detection_enabled\t%d\n", temp_service->flap_detection_enabled); in xodtemplate_cache_objects()
10531 if(temp_service->flap_detection_on_ok == TRUE) in xodtemplate_cache_objects()
10533 if(temp_service->flap_detection_on_warning == TRUE) in xodtemplate_cache_objects()
10535 if(temp_service->flap_detection_on_unknown == TRUE) in xodtemplate_cache_objects()
10537 if(temp_service->flap_detection_on_critical == TRUE) in xodtemplate_cache_objects()
10542 fprintf(fp, "\tfreshness_threshold\t%d\n", temp_service->freshness_threshold); in xodtemplate_cache_objects()
10543 fprintf(fp, "\tcheck_freshness\t%d\n", temp_service->check_freshness); in xodtemplate_cache_objects()
10546 if(temp_service->notify_on_unknown == TRUE) in xodtemplate_cache_objects()
10548 if(temp_service->notify_on_warning == TRUE) in xodtemplate_cache_objects()
10550 if(temp_service->notify_on_critical == TRUE) in xodtemplate_cache_objects()
10552 if(temp_service->notify_on_recovery == TRUE) in xodtemplate_cache_objects()
10554 if(temp_service->notify_on_flapping == TRUE) in xodtemplate_cache_objects()
10556 if(temp_service->notify_on_downtime == TRUE) in xodtemplate_cache_objects()
10561 fprintf(fp, "\tnotifications_enabled\t%d\n", temp_service->notifications_enabled); in xodtemplate_cache_objects()
10562 fprintf(fp, "\tnotification_interval\t%f\n", temp_service->notification_interval); in xodtemplate_cache_objects()
10563 fprintf(fp, "\tfirst_notification_delay\t%f\n", temp_service->first_notification_delay); in xodtemplate_cache_objects()
10566 if(temp_service->stalk_on_ok == TRUE) in xodtemplate_cache_objects()
10568 if(temp_service->stalk_on_unknown == TRUE) in xodtemplate_cache_objects()
10570 if(temp_service->stalk_on_warning == TRUE) in xodtemplate_cache_objects()
10572 if(temp_service->stalk_on_critical == TRUE) in xodtemplate_cache_objects()
10577 fprintf(fp, "\tprocess_perf_data\t%d\n", temp_service->process_perf_data); in xodtemplate_cache_objects()
10578 fprintf(fp, "\tfailure_prediction_enabled\t%d\n", temp_service->failure_prediction_enabled); in xodtemplate_cache_objects()
10579 if(temp_service->icon_image) in xodtemplate_cache_objects()
10580 fprintf(fp, "\ticon_image\t%s\n", temp_service->icon_image); in xodtemplate_cache_objects()
10581 if(temp_service->icon_image_alt) in xodtemplate_cache_objects()
10582 fprintf(fp, "\ticon_image_alt\t%s\n", temp_service->icon_image_alt); in xodtemplate_cache_objects()
10583 if(temp_service->notes) in xodtemplate_cache_objects()
10584 fprintf(fp, "\tnotes\t%s\n", temp_service->notes); in xodtemplate_cache_objects()
10585 if(temp_service->notes_url) in xodtemplate_cache_objects()
10586 fprintf(fp, "\tnotes_url\t%s\n", temp_service->notes_url); in xodtemplate_cache_objects()
10587 if(temp_service->action_url) in xodtemplate_cache_objects()
10588 fprintf(fp, "\taction_url\t%s\n", temp_service->action_url); in xodtemplate_cache_objects()
10589 fprintf(fp, "\tretain_status_information\t%d\n", temp_service->retain_status_information); in xodtemplate_cache_objects()
10590 fprintf(fp, "\tretain_nonstatus_information\t%d\n", temp_service->retain_nonstatus_information); in xodtemplate_cache_objects()
10593 …for(temp_customvariablesmember = temp_service->custom_variables; temp_customvariablesmember != NUL… in xodtemplate_cache_objects()
12677 xodtemplate_service *temp_service = NULL; in xodtemplate_expand_services() local
12735 …for(temp_service = xodtemplate_service_list; temp_service != NULL; temp_service = temp_service->ne… in xodtemplate_expand_services()
12737 if(temp_service->host_name == NULL || temp_service->service_description == NULL) in xodtemplate_expand_services()
12742 if(regexec(&preg2, temp_service->host_name, 0, NULL, 0)) in xodtemplate_expand_services()
12746 if(strcmp(temp_service->host_name, host_name)) in xodtemplate_expand_services()
12752 if(regexec(&preg, temp_service->service_description, 0, NULL, 0)) in xodtemplate_expand_services()
12756 if(strcmp(temp_service->service_description, temp_ptr)) in xodtemplate_expand_services()
12763 if(temp_service->register_object == FALSE) in xodtemplate_expand_services()
12767 xodtemplate_add_member_to_memberlist(list, host_name, temp_service->service_description); in xodtemplate_expand_services()
12783 …for(temp_service = xodtemplate_service_list; temp_service != NULL; temp_service = temp_service->ne… in xodtemplate_expand_services()
12785 if(temp_service->host_name == NULL || temp_service->service_description == NULL) in xodtemplate_expand_services()
12788 if(strcmp(temp_service->host_name, host_name)) in xodtemplate_expand_services()
12792 if(temp_service->register_object == FALSE) in xodtemplate_expand_services()
12796 xodtemplate_add_member_to_memberlist(list, host_name, temp_service->service_description); in xodtemplate_expand_services()
12810 if((temp_service = xodtemplate_find_real_service(host_name, temp_ptr)) != NULL) { in xodtemplate_expand_services()
12815 …_to_memberlist((reject_item == TRUE) ? reject_list : list, host_name, temp_service->service_descri… in xodtemplate_expand_services()
13494 xodtemplate_service *temp_service = NULL; in xodtemplate_clean_additive_strings() local
13557 …for(temp_service = xodtemplate_service_list; temp_service != NULL; temp_service = temp_service->ne… in xodtemplate_clean_additive_strings()
13558 xodtemplate_clean_additive_string(&temp_service->contact_groups); in xodtemplate_clean_additive_strings()
13559 xodtemplate_clean_additive_string(&temp_service->contacts); in xodtemplate_clean_additive_strings()
13560 xodtemplate_clean_additive_string(&temp_service->host_name); in xodtemplate_clean_additive_strings()
13561 xodtemplate_clean_additive_string(&temp_service->hostgroup_name); in xodtemplate_clean_additive_strings()
13562 xodtemplate_clean_additive_string(&temp_service->service_groups); in xodtemplate_clean_additive_strings()