mirror of https://github.com/Icinga/icinga2.git
parent
cb21086d6c
commit
3d841d5f64
|
@ -36,13 +36,15 @@ void JsonRpcConnection::HandleAndWriteHeartbeats(boost::asio::yield_context yc)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
SendMessageInternal(new Dictionary({
|
if (m_Endpoint) {
|
||||||
{ "jsonrpc", "2.0" },
|
SendMessageInternal(new Dictionary({
|
||||||
{ "method", "event::Heartbeat" },
|
{ "jsonrpc", "2.0" },
|
||||||
{ "params", new Dictionary({
|
{ "method", "event::Heartbeat" },
|
||||||
{ "timeout", 120 }
|
{ "params", new Dictionary({
|
||||||
}) }
|
{ "timeout", 120 }
|
||||||
}));
|
}) }
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue