- char *source_name = 0;
- if (framework_environment.settings.ssh_connections + framework_environment.settings.tls_connections == 1) {
- // we don't want to append the port to the source name if we only expose one port
- asprintf(&source_name, "%s", hostname_string);
- }
- else {
- asprintf(&source_name, "%s_%d", hostname_string, port);
- }
- cJSON *common_event_header = ves_create_common_event_header("fault", "O_RAN_COMPONENT_Alarms", source_name, "Low", (*seq_id)++);
- free(source_name);
-
+ cJSON *common_event_header = ves_create_common_event_header("fault", "O_RAN_COMPONENT_Alarms", hostname_string, port, "Low", (*seq_id)++);