diff --git a/client/controller.go b/client/controller.go index 8d2abb2..d91af8a 100644 --- a/client/controller.go +++ b/client/controller.go @@ -106,6 +106,7 @@ func (hosts *HostsController) sendMetric(host config.Host, client *Client) { Message: ErrorMessage{ Error: errorContent, Host: host.Address, + Name: metric, }, Error: true, } diff --git a/client/messages.go b/client/messages.go index 7d13657..b761096 100644 --- a/client/messages.go +++ b/client/messages.go @@ -8,6 +8,7 @@ type SendMessage struct { type ErrorMessage struct { Host string Error string + Name string } type Message struct {