diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2022-05-27 13:54:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 13:54:54 +0300 |
commit | 899a78b162a45fcdc7da08912c94ee9d2a027ae2 (patch) | |
tree | b38a3f32bc6c1cd5b7ea27234eb69a3cc19c4c5d /health/health.c | |
parent | 5c5cf7ea4a621657cfc4bcbd302c9fda7098249d (diff) |
Pass the child machine's guid to the goto_url link (#12609)
* pass child machine guid
* pass parameter
Diffstat (limited to 'health/health.c')
-rw-r--r-- | health/health.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/health/health.c b/health/health.c index bb185c85cc..3c1e5693e0 100644 --- a/health/health.c +++ b/health/health.c @@ -354,7 +354,7 @@ static inline void health_alarm_execute(RRDHOST *host, ALARM_ENTRY *ae) { char *edit_command = ae->source ? health_edit_command_from_source(ae->source) : strdupz("UNKNOWN=0=UNKNOWN"); - snprintfz(command_to_run, ALARM_EXEC_COMMAND_LENGTH, "exec %s '%s' '%s' '%u' '%u' '%u' '%lu' '%s' '%s' '%s' '%s' '%s' '" CALCULATED_NUMBER_FORMAT_ZERO "' '" CALCULATED_NUMBER_FORMAT_ZERO "' '%s' '%u' '%u' '%s' '%s' '%s' '%s' '%s' '%s' '%d' '%d' '%s' '%s' '%s' '%s'", + snprintfz(command_to_run, ALARM_EXEC_COMMAND_LENGTH, "exec %s '%s' '%s' '%u' '%u' '%u' '%lu' '%s' '%s' '%s' '%s' '%s' '" CALCULATED_NUMBER_FORMAT_ZERO "' '" CALCULATED_NUMBER_FORMAT_ZERO "' '%s' '%u' '%u' '%s' '%s' '%s' '%s' '%s' '%s' '%d' '%d' '%s' '%s' '%s' '%s' '%s'", exec, recipient, host->registry_hostname, @@ -383,7 +383,8 @@ static inline void health_alarm_execute(RRDHOST *host, ALARM_ENTRY *ae) { buffer_tostring(warn_alarms), buffer_tostring(crit_alarms), ae->classification?ae->classification:"Unknown", - edit_command + edit_command, + host != localhost ? host->machine_guid:"" ); ae->flags |= HEALTH_ENTRY_FLAG_EXEC_RUN; |