Lines Matching defs:instance_id

27     unsigned long instance_id;
39 void set_valid_url_instance_running(unsigned long instance_id, int value);
40 void set_valid_url_index(unsigned long instance_id, int value);
51 static void get_validation_table_entry(unsigned long instance_id,
58 if (e->instance_id == instance_id && e->index == 0) {
61 if (e->instance_id == instance_id && e->index == index) {
71 static void set_validation_table_entry(unsigned long instance_id, int index, int ok, int fail) {
78 if (e->instance_id == instance_id && e->index == index) {
89 e->instance_id = instance_id;
114 set_valid_url_instance_running(w->instance_id, AM_TRUE);
116 conf = am_get_config_file(w->instance_id, w->config_path);
118 AM_LOG_WARNING(w->instance_id, "%s failed to get agent configuration (%s)",
120 set_valid_url_instance_running(w->instance_id, AM_FALSE);
137 set_valid_url_instance_running(w->instance_id, AM_FALSE);
143 AM_LOG_WARNING(w->instance_id,
145 set_valid_url_index(w->instance_id, 0);
147 set_valid_url_instance_running(w->instance_id, AM_FALSE);
163 AM_LOG_ERROR(w->instance_id, "%s memory allocation error", thisfunc);
165 set_valid_url_instance_running(w->instance_id, AM_FALSE);
172 AM_LOG_ERROR(w->instance_id, "%s memory allocation error", thisfunc);
174 set_valid_url_instance_running(w->instance_id, AM_FALSE);
189 set_valid_url_instance_running(w->instance_id, AM_FALSE);
206 get_validation_table_entry(w->instance_id, i, &ok, &fail, NULL);
208 AM_LOG_DEBUG(w->instance_id, "%s validating %s", thisfunc, url);
212 validate_status = am_url_validate(w->instance_id, url, net_options, &httpcode);
216 validate_status = am_agent_login(w->instance_id, url, conf->user, conf->pass, conf->realm,
237 set_validation_table_entry(w->instance_id, i, ok, fail);
251 get_validation_table_entry(w->instance_id, current_index, &current_ok, &current_fail, &default_ok);
257 set_valid_url_index(w->instance_id, conf->valid_default_url[0]);
258 AM_LOG_INFO(w->instance_id, "%s fail-back to %s", thisfunc, url_list[0]);
260 set_valid_url_index(w->instance_id, conf->valid_default_url[current_index]);
261 AM_LOG_INFO(w->instance_id, "%s continue with %s", thisfunc, url_list[current_index]);
268 set_valid_url_index(w->instance_id, conf->valid_default_url[current_index]);
269 AM_LOG_INFO(w->instance_id, "%s still staying with %s", thisfunc, url_list[current_index]);
278 if (e->instance_id == w->instance_id && e->index == 0) {
281 if (e->instance_id == w->instance_id && e->ok > 0) {
291 AM_LOG_WARNING(w->instance_id,
293 set_valid_url_index(w->instance_id, conf->valid_default_url[0]);
298 AM_LOG_INFO(w->instance_id, "%s fail-back to %s", thisfunc, url_list[0]);
299 set_valid_url_index(w->instance_id, conf->valid_default_url[0]);
303 AM_LOG_INFO(w->instance_id, "%s fail-over to %s", thisfunc, url_list[i]);
304 set_valid_url_index(w->instance_id, conf->valid_default_url[i]);
311 set_valid_url_instance_running(w->instance_id, AM_FALSE);
330 if (list[i].instance_id > 0 && !list[i].running) {
334 worker_data->instance_id = list[i].instance_id;
339 AM_LOG_WARNING(list[i].instance_id, "%s failed to dispatch url validator worker", thisfunc);
343 AM_LOG_ERROR(list[i].instance_id, "%s memory allocation error", thisfunc);
345 } else if (list[i].instance_id > 0 && list[i].running) {
346 AM_LOG_WARNING(list[i].instance_id, "%s url validator worker already running", thisfunc);