mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-26 02:58:43 +02:00
Cluster: Add timestamp to "ExecuteCommand" and "CheckResult"
This commit is contained in:
parent
a30077cdd1
commit
925cfb6c64
@ -538,6 +538,9 @@ void Checkable::ExecuteCheck()
|
|||||||
message->Set("jsonrpc", "2.0");
|
message->Set("jsonrpc", "2.0");
|
||||||
message->Set("method", "event::ExecuteCommand");
|
message->Set("method", "event::ExecuteCommand");
|
||||||
|
|
||||||
|
double ts = Utility::GetTime();
|
||||||
|
message->Set("ts", ts);
|
||||||
|
|
||||||
Host::Ptr host;
|
Host::Ptr host;
|
||||||
Service::Ptr service;
|
Service::Ptr service;
|
||||||
tie(host, service) = GetHostService(this);
|
tie(host, service) = GetHostService(this);
|
||||||
|
@ -57,6 +57,9 @@ Dictionary::Ptr ClusterEvents::MakeCheckResultMessage(const Checkable::Ptr& chec
|
|||||||
message->Set("jsonrpc", "2.0");
|
message->Set("jsonrpc", "2.0");
|
||||||
message->Set("method", "event::CheckResult");
|
message->Set("method", "event::CheckResult");
|
||||||
|
|
||||||
|
double ts = Utility::GetTime();
|
||||||
|
message->Set("ts", ts);
|
||||||
|
|
||||||
Host::Ptr host;
|
Host::Ptr host;
|
||||||
Service::Ptr service;
|
Service::Ptr service;
|
||||||
tie(host, service) = GetHostService(checkable);
|
tie(host, service) = GetHostService(checkable);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user