summaryrefslogtreecommitdiffstats
path: root/health/health_json.c
diff options
context:
space:
mode:
authorEmmanuel Vasilakis <mrzammler@mm.st>2022-01-17 12:32:44 +0200
committerGitHub <noreply@github.com>2022-01-17 12:32:44 +0200
commit3296f78436ce1f474cd38de7e842df6cf2f1f112 (patch)
tree935e5d9a8d1a9c3f5e96442a952f9af1698df96a /health/health_json.c
parent8c201ccadf298ccea5cc85a3aede72f8e3843fed (diff)
Add localhost hostname to the edit_command (#11793)
* include localhost hostname in edit_command * since the edit_command now contains the localhost name, dont pass it again to the script
Diffstat (limited to 'health/health_json.c')
-rw-r--r--health/health_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/health/health_json.c b/health/health_json.c
index a21d5a4fd6..be95100bc2 100644
--- a/health/health_json.c
+++ b/health/health_json.c
@@ -14,7 +14,7 @@ void health_string2json(BUFFER *wb, const char *prefix, const char *label, const
}
void health_alarm_entry2json_nolock(BUFFER *wb, ALARM_ENTRY *ae, RRDHOST *host) {
- char *edit_command = ae->source ? health_edit_command_from_source(ae->source) : strdupz("UNKNOWN=0");
+ char *edit_command = ae->source ? health_edit_command_from_source(ae->source) : strdupz("UNKNOWN=0=UNKNOWN");
char config_hash_id[GUID_LEN + 1];
uuid_unparse_lower(ae->config_hash_id, config_hash_id);