agent 591 daemons/controld/controld_execd_state.c const char *agent, char **output, enum lrmd_call_options options) agent 617 daemons/controld/controld_execd_state.c class, provider, agent, output, options, params); agent 696 daemons/controld/controld_execd_state.c const char *provider, const char *agent, enum lrmd_call_options options) agent 704 daemons/controld/controld_execd_state.c if (is_remote_lrmd_ra(agent, provider, NULL)) { agent 712 daemons/controld/controld_execd_state.c agent, options); agent 149 daemons/controld/controld_lrm.h const char *agent, char **output, enum lrmd_call_options options); agent 162 daemons/controld/controld_lrm.h const char *provider, const char *agent, enum lrmd_call_options options); agent 168 daemons/controld/controld_lrm.h gboolean is_remote_lrmd_ra(const char *agent, const char *provider, const char *id); agent 899 daemons/controld/controld_remote_ra.c is_remote_lrmd_ra(const char *agent, const char *provider, const char *id) agent 901 daemons/controld/controld_remote_ra.c if (agent && provider && !strcmp(agent, REMOTE_LRMD_RA) && !strcmp(provider, "pacemaker")) { agent 72 daemons/fenced/fenced_commands.c static int get_agent_metadata(const char *agent, xmlNode **metadata); agent 328 daemons/fenced/fenced_commands.c switch (get_agent_metadata(device->agent, &device->agent_metadata)) { agent 400 daemons/fenced/fenced_commands.c if(pcmk__str_eq(device->agent, STONITH_WATCHDOG_AGENT, pcmk__str_casei)) { agent 437 daemons/fenced/fenced_commands.c crm_warn("Agent '%s' does not advertise support for 'reboot', performing 'off' action instead", device->agent); agent 448 daemons/fenced/fenced_commands.c action = stonith_action_create(device->agent, agent 605 daemons/fenced/fenced_commands.c free(device->agent); agent 711 daemons/fenced/fenced_commands.c get_agent_metadata(const char *agent, xmlNode ** metadata) agent 719 daemons/fenced/fenced_commands.c if (pcmk__str_eq(agent, STONITH_WATCHDOG_AGENT, pcmk__str_none)) { agent 723 daemons/fenced/fenced_commands.c buffer = g_hash_table_lookup(metadata_cache, agent); agent 733 daemons/fenced/fenced_commands.c rc = st->cmds->metadata(st, st_opt_sync_call, agent, agent 737 daemons/fenced/fenced_commands.c crm_err("Could not retrieve metadata for fencing agent %s", agent); agent 740 daemons/fenced/fenced_commands.c g_hash_table_replace(metadata_cache, strdup(agent), buffer); agent 948 daemons/fenced/fenced_commands.c char *agent = crm_element_value_copy(dev, "agent"); agent 950 daemons/fenced/fenced_commands.c CRM_CHECK(agent != NULL, return device); agent 954 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, {free(agent); return device;}); agent 957 daemons/fenced/fenced_commands.c device->agent = agent; agent 975 daemons/fenced/fenced_commands.c switch (get_agent_metadata(device->agent, &device->agent_metadata)) { agent 1197 daemons/fenced/fenced_commands.c } else if (!pcmk__str_eq(dup->agent, device->agent, pcmk__str_casei)) { agent 1198 daemons/fenced/fenced_commands.c crm_trace("Different agent: %s != %s", dup->agent, device->agent); agent 2008 daemons/fenced/fenced_commands.c crm_xml_add(dev, "agent", device->agent); agent 716 daemons/fenced/pacemaker-fenced.c const char *agent = crm_element_value(rsc->xml, XML_EXPR_ATTR_TYPE); agent 735 daemons/fenced/pacemaker-fenced.c agent, params, rsc_provides); agent 25 daemons/fenced/pacemaker-fenced.h char *agent; agent 52 include/crm/fencing/internal.h stonith_action_t *stonith_action_create(const char *agent, agent 80 include/crm/fencing/internal.h const char *agent, agent 172 include/crm/fencing/internal.h int stonith__lha_metadata(const char *agent, int timeout, char **output); agent 173 include/crm/fencing/internal.h bool stonith__agent_is_lha(const char *agent); agent 175 include/crm/fencing/internal.h const char *agent, GHashTable *params, agent 181 include/crm/fencing/internal.h int stonith__rhcs_metadata(const char *agent, int timeout, char **output); agent 182 include/crm/fencing/internal.h bool stonith__agent_is_rhcs(const char *agent); agent 184 include/crm/fencing/internal.h const char *agent, GHashTable *params, const char *host_arg, agent 337 include/crm/lrmd.h const char *provider, const char *agent, enum lrmd_call_options options); agent 435 include/crm/lrmd.h const char *agent, char **output, enum lrmd_call_options options); agent 459 include/crm/lrmd.h int (*list_ocf_providers) (lrmd_t * lrmd, const char *agent, lrmd_list_t ** providers); agent 504 include/crm/lrmd.h const char *provider, const char *agent, agent 176 include/crm/pengine/common.h const char *agent; agent 127 include/crm/services.h char *agent; agent 216 include/crm/services.h gboolean resources_agent_exists(const char *standard, const char *provider, const char *agent); agent 240 include/crm/services.h const char *provider, const char *agent, agent 251 include/crm/services.h const char *resources_find_service_class(const char *agent); agent 36 include/crm/services_internal.h const char *provider, const char *agent, agent 95 include/crm/stonith-ng.h enum stonith_namespace stonith_get_namespace(const char *agent, agent 188 include/crm/stonith-ng.h const char *provider, const char *agent, stonith_key_value_t *params); agent 397 include/crm/stonith-ng.h const char *namespace_s, const char *agent, agent 558 include/crm/stonith-ng.h bool stonith_agent_exists(const char *agent, int timeout); agent 574 include/crm/stonith-ng.h const char *get_stonith_provider(const char *agent, const char *provider); agent 186 include/pacemaker.h int pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, char *agent, agent 255 include/pacemaker.h int pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent, agent 135 include/pcmki/pcmki_fence.h int pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent, agent 218 include/pcmki/pcmki_fence.h int pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent, agent 39 lib/fencing/st_client.c char *agent; agent 178 lib/fencing/st_client.c stonith_get_namespace(const char *agent, const char *namespace_s) agent 184 lib/fencing/st_client.c if (stonith__agent_is_rhcs(agent)) { agent 189 lib/fencing/st_client.c if (stonith__agent_is_lha(agent)) { agent 194 lib/fencing/st_client.c crm_err("Unknown fence agent: %s", agent); agent 203 lib/fencing/st_client.c char *prefix = crm_strdup_printf("%s[%d] stdout:", action->agent, pid); agent 211 lib/fencing/st_client.c char *prefix = crm_strdup_printf("%s[%d] stderr:", action->agent, pid); agent 276 lib/fencing/st_client.c const char *agent, stonith_key_value_t *params, agent 284 lib/fencing/st_client.c namespace = stonith_get_namespace(agent, NULL); agent 287 lib/fencing/st_client.c hash2field((gpointer) "plugin", (gpointer) agent, args); agent 288 lib/fencing/st_client.c agent = "fence_legacy"; agent 294 lib/fencing/st_client.c crm_xml_add(data, "agent", agent); agent 311 lib/fencing/st_client.c const char *id, const char *namespace, const char *agent, agent 318 lib/fencing/st_client.c agent, params, NULL); agent 481 lib/fencing/st_client.c make_args(const char *agent, const char *action, const char *victim, agent 530 lib/fencing/st_client.c if (!pcmk__str_eq(agent, "fence_legacy", pcmk__str_none) agent 578 lib/fencing/st_client.c free(action->agent); agent 635 lib/fencing/st_client.c stonith_action_create(const char *agent, agent 645 lib/fencing/st_client.c action->args = make_args(agent, _action, victim, victim_nodeid, agent 648 lib/fencing/st_client.c _action, (victim? victim : "no target"), agent); agent 649 lib/fencing/st_client.c action->agent = strdup(agent); agent 679 lib/fencing/st_client.c action->agent, action->action, action->max_retries); agent 784 lib/fencing/st_client.c action->tries, action->agent, action->action, action->remaining_timeout); agent 788 lib/fencing/st_client.c if (action->args == NULL || action->agent == NULL) agent 792 lib/fencing/st_client.c basename(action->agent)); agent 797 lib/fencing/st_client.c svc_action->id = crm_strdup_printf("%s_%s_%d", basename(action->agent), agent 799 lib/fencing/st_client.c svc_action->agent = strdup(action->agent); agent 932 lib/fencing/st_client.c stonith_api_device_metadata(stonith_t * stonith, int call_options, const char *agent, agent 939 lib/fencing/st_client.c enum stonith_namespace ns = stonith_get_namespace(agent, namespace); agent 942 lib/fencing/st_client.c stonith_namespace2text(ns), agent); agent 946 lib/fencing/st_client.c return stonith__rhcs_metadata(agent, timeout, output); agent 950 lib/fencing/st_client.c return stonith__lha_metadata(agent, timeout, output); agent 955 lib/fencing/st_client.c agent); agent 2021 lib/fencing/st_client.c const char *namespace_s, const char *agent, agent 2057 lib/fencing/st_client.c agent, pcmk_rc_str(rc)); agent 2069 lib/fencing/st_client.c switch (stonith_get_namespace(agent, namespace_s)) { agent 2071 lib/fencing/st_client.c rc = stonith__rhcs_validate(st, call_options, target, agent, agent 2078 lib/fencing/st_client.c rc = stonith__lha_validate(st, call_options, target, agent, agent 2089 lib/fencing/st_client.c agent); agent 2350 lib/fencing/st_client.c stonith_agent_exists(const char *agent, int timeout) agent 2357 lib/fencing/st_client.c if (agent == NULL) { agent 2369 lib/fencing/st_client.c if (pcmk__str_eq(dIter->value, agent, pcmk__str_none)) { agent 2700 lib/fencing/st_client.c const char *get_stonith_provider(const char *agent, const char *provider); agent 2703 lib/fencing/st_client.c get_stonith_provider(const char *agent, const char *provider) agent 2705 lib/fencing/st_client.c return stonith_namespace2text(stonith_get_namespace(agent, provider)); agent 81 lib/fencing/st_lha.c stonith__agent_is_lha(const char *agent) agent 98 lib/fencing/st_lha.c stonith_obj = (*st_new_fn) (agent); agent 177 lib/fencing/st_lha.c stonith__lha_metadata(const char *agent, int timeout, char **output) agent 211 lib/fencing/st_lha.c stonith_obj = (*st_new_fn) (agent); agent 216 lib/fencing/st_lha.c crm_warn("no long description in %s's metadata.", agent); agent 222 lib/fencing/st_lha.c crm_warn("no short description in %s's metadata.", agent); agent 228 lib/fencing/st_lha.c crm_warn("no list of parameters in %s's metadata.", agent); agent 234 lib/fencing/st_lha.c crm_perror(LOG_ERR, "Agent %s not found", agent); agent 243 lib/fencing/st_lha.c buffer = crm_strdup_printf(META_TEMPLATE, agent, xml_meta_longdesc, agent 277 lib/fencing/st_lha.c const char *agent, GHashTable *params, int timeout, agent 377 lib/fencing/st_output.c const char *agent = va_arg(args, const char *); agent 384 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s on %s %s", agent, device, agent 389 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s %s", agent, agent 402 lib/fencing/st_output.c const char *agent = va_arg(args, const char *); agent 409 lib/fencing/st_output.c pcmk__indented_printf(out, "Validation of %s on %s %s\n", agent, device, agent 412 lib/fencing/st_output.c pcmk__indented_printf(out, "Validation of %s %s\n", agent, agent 423 lib/fencing/st_output.c const char *agent = va_arg(args, const char *); agent 430 lib/fencing/st_output.c "agent", agent, agent 122 lib/fencing/st_rhcs.c stonith__rhcs_get_metadata(const char *agent, int timeout, xmlNode **metadata) agent 128 lib/fencing/st_rhcs.c stonith_action_t *action = stonith_action_create(agent, "metadata", NULL, 0, agent 134 lib/fencing/st_rhcs.c CRM_XS " rc=%d", agent, pcmk_strerror(rc), rc); agent 143 lib/fencing/st_rhcs.c agent, pcmk_strerror(rc), rc); agent 149 lib/fencing/st_rhcs.c crm_warn("Metadata action for %s returned no data", agent); agent 157 lib/fencing/st_rhcs.c crm_warn("Metadata for %s is invalid", agent); agent 207 lib/fencing/st_rhcs.c stonith__rhcs_metadata(const char *agent, int timeout, char **output) agent 212 lib/fencing/st_rhcs.c int rc = stonith__rhcs_get_metadata(agent, timeout, &xml); agent 233 lib/fencing/st_rhcs.c stonith__agent_is_rhcs(const char *agent) agent 236 lib/fencing/st_rhcs.c char *buffer = crm_strdup_printf(PCMK__FENCE_BINDIR "/%s", agent); agent 245 lib/fencing/st_rhcs.c const char *agent, GHashTable *params, agent 257 lib/fencing/st_rhcs.c rc = stonith__rhcs_get_metadata(agent, remaining_timeout, &metadata); agent 262 lib/fencing/st_rhcs.c stonith__device_parameter_flags(&device_flags, agent, metadata); agent 284 lib/fencing/st_rhcs.c action = stonith_action_create(agent, "validate-all", agent 2131 lib/lrmd/lrmd_client.c does_provider_have_agent(const char *agent, const char *provider, const char *class) agent 2139 lib/lrmd/lrmd_client.c if (pcmk__str_eq(agent, gIter2->data, pcmk__str_casei)) { agent 2148 lib/lrmd/lrmd_client.c lrmd_api_list_ocf_providers(lrmd_t * lrmd, const char *agent, lrmd_list_t ** providers) agent 2159 lib/lrmd/lrmd_client.c if (!agent || does_provider_have_agent(agent, provider, agent 380 lib/pacemaker/pcmk_fence.c pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent, agent 383 lib/pacemaker/pcmk_fence.c int rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, agent 397 lib/pacemaker/pcmk_fence.c pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, char *agent, agent 409 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_metadata(out, st, agent, timeout); agent 488 lib/pacemaker/pcmk_fence.c pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent, agent 495 lib/pacemaker/pcmk_fence.c rc = st->cmds->validate(st, st_opt_sync_call, id, NULL, agent, params, agent 497 lib/pacemaker/pcmk_fence.c out->message(out, "validate", agent, id, output, error_output, rc); agent 503 lib/pacemaker/pcmk_fence.c pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent, agent 516 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_validate(out, st, agent, id, params, timeout); agent 146 lib/pengine/complex.c .agent = crm_element_value(rsc->xml, XML_EXPR_ATTR_TYPE) agent 482 lib/pengine/pe_digest.c unfencing_digest_matches(const char *rsc_id, const char *agent, agent 487 lib/pengine/pe_digest.c if (rsc_id && agent && digest_calc && node_summary) { agent 488 lib/pengine/pe_digest.c char *search_secure = create_unfencing_summary(rsc_id, agent, agent 520 lib/pengine/pe_digest.c pe__compare_fencing_digest(pe_resource_t *rsc, const char *agent, agent 537 lib/pengine/pe_digest.c if (unfencing_digest_matches(rsc->id, agent, data->digest_all_calc, agent 545 lib/pengine/pe_digest.c if (unfencing_digest_matches(rsc->id, agent, data->digest_secure_calc, agent 562 lib/pengine/pe_digest.c char *digest = create_unfencing_summary(rsc->id, agent, agent 570 lib/pengine/pe_digest.c char *digest = create_unfencing_summary(rsc->id, agent, agent 60 lib/pengine/pe_status_private.h const char *agent, agent 1329 lib/pengine/rules.c !pcmk__str_eq(type, rule_data->rsc_data->agent, pcmk__str_none)) { agent 1330 lib/pengine/rules.c crm_trace("Agent doesn't match: %s != %s", type, rule_data->rsc_data->agent); agent 967 lib/pengine/utils.c .agent = crm_element_value(action->rsc->xml, XML_EXPR_ATTR_TYPE) agent 2081 lib/pengine/utils.c const char *agent = g_hash_table_lookup(match->meta, agent 2085 lib/pengine/utils.c data = pe__compare_fencing_digest(match, agent, node, data_set); agent 2098 lib/pengine/utils.c "%s:%s:%s,", match->id, agent, data->digest_all_calc); agent 2102 lib/pengine/utils.c "%s:%s:%s,", match->id, agent, data->digest_secure_calc); agent 71 lib/services/services.c resources_find_service_class(const char *agent) agent 73 lib/services/services.c if (services__lsb_agent_exists(agent)) { agent 78 lib/services/services.c if (systemd_unit_exists(agent)) { agent 84 lib/services/services.c if (upstart_job_exists(agent)) { agent 128 lib/services/services.c expand_resource_class(const char *rsc, const char *standard, const char *agent) agent 133 lib/services/services.c const char *found_class = resources_find_service_class(agent); agent 136 lib/services/services.c crm_debug("Found %s agent %s for %s", found_class, agent, rsc); agent 140 lib/services/services.c agent, rsc); agent 169 lib/services/services.c const char *provider, const char *agent, agent 198 lib/services/services.c if (pcmk__str_empty(agent)) { agent 217 lib/services/services.c op->standard = expand_resource_class(name, standard, agent); agent 218 lib/services/services.c op->agent = strdup(agent); agent 253 lib/services/services.c buf = crm_strdup_printf("%s/%s/%s", dir, provider, agent); agent 274 lib/services/services.c op->opaque->exec = services__lsb_agent_path(op->agent); agent 288 lib/services/services.c op->opaque->exec = dup_file_path(op->agent, NAGIOS_PLUGIN_DIR); agent 336 lib/services/services.c const char *provider, const char *agent, agent 341 lib/services/services.c provider, agent, action, interval_ms, timeout, agent 550 lib/services/services.c free(op->agent); agent 883 lib/services/services.c if (op->agent == NULL) { agent 890 lib/services/services.c op->agent); agent 895 lib/services/services.c class = resources_find_service_class(op->agent); agent 900 lib/services/services.c op->agent); agent 905 lib/services/services.c return (services__get_lsb_metadata(op->agent, &op->stdout_data) >= 0); agent 910 lib/services/services.c return services__get_nagios_metadata(op->agent, &op->stdout_data) >= 0; agent 1073 lib/services/services.c resources_agent_exists(const char *standard, const char *provider, const char *agent) agent 1113 lib/services/services.c if (services__lsb_agent_exists(agent)) { agent 1116 lib/services/services.c } else if (systemd_unit_exists(agent)) { agent 1121 lib/services/services.c } else if (upstart_job_exists(agent)) { agent 1129 lib/services/services.c rc = services__ocf_agent_exists(provider, agent); agent 1132 lib/services/services.c rc = services__lsb_agent_exists(agent); agent 1136 lib/services/services.c rc = systemd_unit_exists(agent); agent 1141 lib/services/services.c rc = upstart_job_exists(agent); agent 1146 lib/services/services.c rc = services__nagios_agent_exists(agent); agent 408 lib/services/services_linux.c if (op->agent == NULL) { agent 432 lib/services/services_linux.c if (op->agent != NULL) { agent 433 lib/services/services_linux.c set_ocf_env("OCF_RESOURCE_TYPE", op->agent, NULL); agent 1220 lib/services/services_linux.c services__ocf_agent_exists(const char *provider, const char *agent) agent 1228 lib/services/services_linux.c if (provider == NULL || agent == NULL || pcmk__str_empty(dirs)) { agent 1234 lib/services/services_linux.c buf = crm_strdup_printf("%s/%s/%s", dir, provider, agent); agent 251 lib/services/services_lsb.c services__lsb_agent_path(const char *agent) agent 253 lib/services/services_lsb.c return (*agent == '/')? strdup(agent) agent 254 lib/services/services_lsb.c : crm_strdup_printf("%s/%s", LSB_ROOT_DIR, agent); agent 258 lib/services/services_lsb.c services__lsb_agent_exists(const char *agent) agent 262 lib/services/services_lsb.c char *path = services__lsb_agent_path(agent); agent 15 lib/services/services_lsb.h G_GNUC_INTERNAL char *services__lsb_agent_path(const char *agent); agent 16 lib/services/services_lsb.h G_GNUC_INTERNAL bool services__lsb_agent_exists(const char *agent); agent 17 lib/services/services_nagios.h gboolean services__nagios_agent_exists(const char *agent); agent 59 lib/services/services_private.h gboolean services__ocf_agent_exists(const char *provider, const char *agent); agent 264 lib/services/systemd.c op->agent, op->id, error.message); agent 271 lib/services/systemd.c "systemd reply has unexpected type", op->agent, op->id); agent 629 lib/services/systemd.c create_override_dir(const char *agent) agent 632 lib/services/systemd.c "/%s.service.d", agent); agent 643 lib/services/systemd.c get_override_filename(const char *agent) agent 646 lib/services/systemd.c "/%s.service.d/50-pacemaker.conf", agent); agent 650 lib/services/systemd.c systemd_create_override(const char *agent, int timeout) agent 653 lib/services/systemd.c char *override_file = get_override_filename(agent); agent 655 lib/services/systemd.c create_override_dir(agent); agent 665 lib/services/systemd.c char *override = crm_strdup_printf(SYSTEMD_OVERRIDE_TEMPLATE, agent); agent 683 lib/services/systemd.c systemd_remove_override(const char *agent, int timeout) agent 685 lib/services/systemd.c char *override_file = get_override_filename(agent); agent 757 lib/services/systemd.c systemd_create_override(op->agent, op->timeout); agent 761 lib/services/systemd.c systemd_remove_override(op->agent, op->timeout); agent 779 lib/services/systemd.c char *name = systemd_service_name(op->agent); agent 825 lib/services/systemd.c crm_warn("%s operation on systemd unit %s named '%s' timed out", op->action, op->agent, op->rsc); agent 842 lib/services/systemd.c op->synchronous ? "" : "a", op->action, op->agent, op->rsc); agent 846 lib/services/systemd.c op->stdout_data = systemd_unit_metadata(op->agent, op->timeout); agent 855 lib/services/systemd.c unit = systemd_unit_by_name(op->agent, op); agent 434 lib/services/upstart.c op->stdout_data = upstart_job_metadata(op->agent); agent 439 lib/services/upstart.c if(!upstart_job_by_name(op->agent, &job, op->timeout)) { agent 440 lib/services/upstart.c crm_debug("Could not obtain job named '%s' to %s", op->agent, action); agent 58 tools/stonith_admin.c char *agent; agent 173 tools/stonith_admin.c { "agent", 'a', 0, G_OPTION_ARG_STRING, &options.agent, agent 483 tools/stonith_admin.c if (required_agent && options.agent == NULL) { agent 541 tools/stonith_admin.c rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent, agent 560 tools/stonith_admin.c rc = pcmk__fence_metadata(out, st, options.agent, options.timeout*1000); agent 598 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params,