4989 Commits

Author SHA1 Message Date
Alexander A. Klimov
0a1a286913 Don't send reminder notifications before suppressed ones
refs #8201
2020-09-30 10:30:21 +02:00
Alexander A. Klimov
6430eef72b IDO MySQL: actually COMMIT after 25000 async queries 2020-09-29 16:34:26 +02:00
Alexander A. Klimov
b24f438daa Add timeout for boost::asio::ssl::stream#async_shutdown()
refs #7203
2020-09-28 15:39:33 +02:00
Alexander A. Klimov
186a9e95f7 Generalize I/O timeout emulation 2020-09-28 15:39:29 +02:00
Henrik Triem
d9e453fe8a IDO: Implement more accurate logging for query stats 2020-09-22 14:36:00 +02:00
Henrik Triem
3468191450 WorkQueue: Allow choosing stats log level 2020-09-22 14:35:51 +02:00
Noah Hilverling
b1e52be8f0
Merge pull request #8241 from Icinga/bugfix/duplicate-entry
IDO: customvariables: fix duplicate entry error
2020-09-21 13:57:39 +02:00
Alexander A. Klimov
bd2b565a1c IDO: customvariables: fix duplicate entry error 2020-09-17 10:35:44 +02:00
Noah Hilverling
198090d072
Merge pull request #8230 from Icinga/bugfix/open-connections-2116
Fix open connections when agent waits for CA approval
2020-09-14 09:32:31 +02:00
Alexander A. Klimov
a3626d8980 Buildfix 2020-09-11 17:07:40 +02:00
Alexander Aleksandrovič Klimov
b5123e3c25
Merge pull request #8226 from Icinga/bugfix/downtime-checkable-getname
Check !!downtime->GetCheckable() before downtime->GetCheckable()->GetName()
2020-09-11 16:44:02 +02:00
Alexander A. Klimov
89c188996b RequestCertificateHandler(): don't disconnect nodes already integrated into the cluster
... not to cause a reconnect loop.
2020-09-11 16:19:43 +02:00
Michael Insel
0ed108bfa2 Fix open connections when agent waits for CA approval
This closes the agent connection when the certificate sign requests
waits for CA approval.

refs #7680
2020-09-11 16:17:37 +02:00
Noah Hilverling
124d52f0b7
Merge pull request #8227 from Icinga/bugfix/logrotate-crash-8050
Ensure the daemon doesn't get killed by logrotate
2020-09-11 15:29:26 +02:00
Alexander A. Klimov
8b0ba2275a Check !!downtime->GetCheckable() before downtime->GetCheckable()->GetName()
... not to crash while removing a downtime from a disappeared checkable.
2020-09-11 14:47:46 +02:00
Noah Hilverling
6701db4dba
Merge pull request #8225 from Icinga/bugfix/last-zone-sync-stage-validation-failed-7642-2116
Clear ApiListener#last_failed_zones_stage_validation on config::Update if config not changed
2020-09-11 14:24:50 +02:00
Alexander A. Klimov
9632d3f634 Clear ApiListener#last_failed_zones_stage_validation on config::Update if config not changed
refs #7642
2020-09-11 13:50:32 +02:00
Alexander A. Klimov
dcc3c32dcd Close connections w/o sucessful TLS handshakes during 10s
refs #7805
2020-09-11 11:07:50 +02:00
Alexander A. Klimov
ffdaf134c9 Ensure the daemon doesn't get killed by logrotate
refs #8050
2020-08-11 16:13:03 +02:00
Noah Hilverling
a5370f7d15
Merge pull request #8097 from Icinga/bugfix/don-not-close-connection-on-missing-heartbeat-8095
Don't close connection on missing heartbeat
2020-07-29 14:12:07 +02:00
Yonas Habteab
a0a5348895 Remove all codes related to the heartbeat timeout
until now, if the timeout is exceeded, the connection is immediately terminated.
But since we do not want to disconnect even if the timeout is exceeded, it is
better to send the messages without timeout and have deleted everything that
related to the heartbeat timeout. We also have another mechanism in
JRPC::CheckLiveness that does the disconnect.
2020-07-29 14:10:42 +02:00
Noah Hilverling
a5d4b5797a
Merge pull request #8121 from Icinga/bugfix/include
Fix missing include
2020-07-21 09:10:24 +02:00
Noah Hilverling
5911879ffa
Merge pull request #8120 from Icinga/feature/shared-t
Introduce Shared<T>
2020-07-21 09:10:13 +02:00
Alexander A. Klimov
21895c92fa Fix missing include 2020-07-17 16:58:49 +02:00
Alexander A. Klimov
2138480704 Introduce Shared<T> 2020-07-17 16:50:18 +02:00
Noah Hilverling
3c28c55421
Merge pull request #8103 from Icinga/bugfix/send-heartbeat-less-often-8098
Send heartbeat every 20s and not 10s
2020-07-16 09:53:08 +02:00
Yonas Habteab
cf5ec5e341 Send heartbeat every 20s and not 10s 2020-07-09 13:22:08 +02:00
Noah Hilverling
d6a007cd27
Merge pull request #8094 from Icinga/bugfix/jsonrpcconnection-m_seen
Consider a JsonRpcConnection being seen on a single byte of TLS payload, not only a whole message
2020-07-08 09:59:22 +02:00
Alexander A. Klimov
67b04fae69 ApiListener::HandleConfigUpdate(): make the whole process mutually exclusive
refs #7742
2020-07-07 16:11:21 +02:00
Alexander A. Klimov
4d80903c47 ApiListener::ConfigUpdateHandler(): block as less as possible
refs #7742
2020-07-07 16:11:21 +02:00
Noah Hilverling
e59c2e896f
Merge pull request #8054 from Icinga/bugfix/segfault-map-reduce-filter-null-8047
Ensure the custom function is not null in Array#{sort,map,reduce,filter,any,all}()
2020-06-15 16:16:30 +02:00
Noah Hilverling
949da2bc6b
Merge pull request #8043 from Icinga/bugfix/unify-application-start-times-v2114
Fix timing point for Application::GetStartTime() (related to command endpoint grace period)
2020-06-09 14:04:07 +02:00
Noah Hilverling
3628d7ffa8
Merge pull request #8044 from Icinga/bugfix/catch-exception-in-node-setup-v2114
Catch exception when trusted cert is not readable during node setup on agent/satellite
2020-06-09 14:02:32 +02:00
Alexander A. Klimov
9c85401914 Ensure the custom function is not null in Array#{sort,map,reduce,filter,any,all}()
refs #8047
2020-06-09 12:35:04 +02:00
Michael Insel
3b1f9a938a Fix Build
I have no idea how this got lost.
2020-06-03 16:37:40 +02:00
Michael Insel
18cf314480 CLI: Catch exception when trusted cert is not readable
This catches an exception when the trusted cert is not readable during
node setup.
2020-06-03 16:37:39 +02:00
Michael Friedrich
18fdc1457a Unify Application::GetStartTime() and drop GetMainTime()
This essentially moves the start time into the scope when main
starts to "do something", after the reload and configuration handling
is done.
2020-06-03 16:25:53 +02:00
Michael Friedrich
4878daff44 Introduce Application::GetUptime() 2020-06-03 16:21:01 +02:00
Alexander Aleksandrovič Klimov
13df2fc067
Merge pull request #7997 from Icinga/bugfix/jsonrpcconnection-handleandwriteheartbeats-m_endpoint-getname
JsonRpcConnection#HandleAndWriteHeartbeats(): check !!#m_Endpoint
2020-05-11 11:39:19 +02:00
Alexander A. Klimov
5e7a675009 JsonRpcConnection#HandleAndWriteHeartbeats(): check !!#m_Endpoint 2020-03-18 11:58:27 +01:00
Noah Hilverling
2a130df80f
Merge pull request #7848 from Icinga/bugfix/coroutine-exception-211x
IoEngine#SpawnCoroutine(): always terminate coroutines cleanly
2020-03-02 11:25:22 +01:00
Noah Hilverling
c02eb62ac5
Merge pull request #7846 from Icinga/bugfix/revert-notification-result-211x
Revert NotificationResult
2020-03-02 10:46:05 +01:00
Noah Hilverling
984c0ef645
Merge pull request #7849 from Icinga/bugfix/jsonrpcconnection-sendmessage-keepalive
JsonRpcConnection#Send*Message(): keep this alive
2020-03-02 10:45:46 +01:00
Alexander A. Klimov
0f84ce0470 Consider a JsonRpcConnection being seen on a single byte of TLS payload, not only a whole message 2020-02-19 11:11:53 +01:00
Alexander A. Klimov
18c1f1c4e5 Revert "Add NotificationResult class"
This reverts commit 9621fd2e4bc337befb46a4c885d80ccfce95f5ab.
2020-02-19 11:00:56 +01:00
Alexander A. Klimov
1183010b45 Revert "Add OnNewNotificationResult signal and ProcessNotificationResult handler"
This reverts commit ac483f2a8a07e4962068408d18b10a17204b6454.
2020-02-19 11:00:47 +01:00
Alexander A. Klimov
685ac2f6d7 Revert "Implement last_notification_result handling for Notification objects"
This reverts commit 1706b297a50aceafdbbfe8ed8d46c8d01c114464.
2020-02-19 10:59:07 +01:00
Alexander A. Klimov
e79e350740 Revert "Make NotificationResult available for events: Cluster and Features"
This reverts commit 566e59bbfa385ec1a023c32a1feb895791950032.
2020-02-19 10:59:00 +01:00
Alexander A. Klimov
f2474e2dc6 Revert "Fix license headers"
This reverts commit 48b3d25ce2ea9c6b48115f4bed2f9ac90a748c70.
2020-02-19 10:58:42 +01:00
Alexander A. Klimov
fbce756007 JsonRpcConnection#Send*Message(): keep this alive 2020-02-17 16:12:07 +01:00