mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-25 18:48:50 +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("method", "event::ExecuteCommand");
|
||||
|
||||
double ts = Utility::GetTime();
|
||||
message->Set("ts", ts);
|
||||
|
||||
Host::Ptr host;
|
||||
Service::Ptr service;
|
||||
tie(host, service) = GetHostService(this);
|
||||
|
@ -57,6 +57,9 @@ Dictionary::Ptr ClusterEvents::MakeCheckResultMessage(const Checkable::Ptr& chec
|
||||
message->Set("jsonrpc", "2.0");
|
||||
message->Set("method", "event::CheckResult");
|
||||
|
||||
double ts = Utility::GetTime();
|
||||
message->Set("ts", ts);
|
||||
|
||||
Host::Ptr host;
|
||||
Service::Ptr service;
|
||||
tie(host, service) = GetHostService(checkable);
|
||||
|
Loading…
x
Reference in New Issue
Block a user