4964 Commits

Author SHA1 Message Date
Julian Brost
c4ec37ba46 Log objects for which API actions don't return 200 2021-03-31 16:56:30 +02:00
Julian Brost
668ac6641e Log affected objects for API actions 2021-03-31 16:01:30 +02:00
Noah Hilverling
c3d4f8cc53 IDO-MySQL: Make sure InternalNewTransaction() and FinishAsyncQueries() get executed during high load 2021-03-31 15:03:09 +02:00
Noah Hilverling
282f2b85bd IDO: Use own transaction for programstatus 2021-03-31 15:03:02 +02:00
Alexander A. Klimov
9e7ed44a2f Include HTTP status codes in log
refs #7053
2021-03-31 15:02:15 +02:00
Alexander A. Klimov
8fff42c73d Buildfix 2020-10-13 16:36:10 +02:00
Alexander Aleksandrovič Klimov
5ee7eb8f29
Merge pull request #8316 from Icinga/bugfix/ido-hash-groups
*DbObject#CalculateConfigHash(): sort groups to be hashed
2020-10-13 14:54:05 +02:00
Julian Brost
c5ce54918e Catch exceptions in the thread running HandleConfigUpdate
With dc3062a9b06fed69cdbb1508ace6eb2f77f87553, exceptions in this code
path were no longer caught properly. This commit restores exception
handling for this function.
2020-10-13 14:27:47 +02:00
Alexander Aleksandrovič Klimov
dd8b786b3b
Merge pull request #8292 from Icinga/bugfix/icinga2-doesn-t-close-connections-7203-211
Add timeout for boost::asio::ssl::stream#async_shutdown()
2020-10-13 13:58:39 +02:00
Alexander Aleksandrovič Klimov
3b398fd7bb
Merge pull request #8300 from Icinga/bugfix/reminder-notifications-before-suppressed-8201
Don't send reminder notifications before suppressed ones
2020-10-13 13:57:26 +02:00
Alexander Aleksandrovič Klimov
727a9a61f0
Merge pull request #8298 from Icinga/bugfix/ido-commit-25000
IDO MySQL: actually COMMIT after 25000 async queries
2020-10-13 13:55:13 +02:00
Alexander Aleksandrovič Klimov
9e40e39b56
Merge pull request #8305 from Icinga/bugfix/do-not-update-customvar-status-on-heavy-config-update
Do not upsert customvar status on heavy config update
2020-10-13 13:53:41 +02:00
Alexander Aleksandrovič Klimov
a237dedaea
Merge pull request #8325 from Icinga/feature/improve-ido-logging
Improve new IDO logging
2020-10-13 13:52:11 +02:00
Alexander A. Klimov
cb00a7fd6a *DbObject#CalculateConfigHash(): sort groups to be hashed
... to ensure consistent hashes across config reloads.

This will likely cause a heavy update once for all objects in >1 group,
but it will ensure that this happens the last time.
2020-10-13 13:47:49 +02:00
Julian Brost
21b30322c9
Merge pull request #8308 from Icinga/bugfix/configsyncstagelock-unlock-owner
Make ApiListener::m_ConfigSyncStageLock a SpinLock
2020-10-13 13:37:08 +02:00
Alexander Aleksandrovič Klimov
e62c6c7f05
Merge pull request #8303 from Icinga/bugfix/revert-fix-duplicate-entry-error
Revert: Fix duplicate entry error
2020-10-13 12:27:53 +02:00
Noah Hilverling
22c14fd964 IDO: Always insert customvar status on heavy config update 2020-10-13 08:54:58 +02:00
Noah Hilverling
f935fc9b40 IDO-Logging: Increase logging threshold for nearly empty queue 2020-10-13 08:21:03 +02:00
Noah Hilverling
bd8339ed46 IDO-Logging: Don't log when not connected 2020-10-13 08:21:03 +02:00
Noah Hilverling
070c42acab IDO-Logging: Remove useless ETA 2020-10-13 08:21:03 +02:00
Noah Hilverling
74aa99f575 IDO-Logging: Add log timeout to log every 5 minutes 2020-10-13 08:20:58 +02:00
Noah Hilverling
51c343630f IDO: Make sure to insert program status during reconnect() 2020-10-09 12:52:27 +02:00
Alexander A. Klimov
b6b3ac0ab8 Make ApiListener::m_ConfigSyncStageLock a SpinLock 2020-10-02 17:54:36 +02:00
Alexander A. Klimov
0abcf7ea6f Introduce SpinLock 2020-10-02 17:54:36 +02:00
Noah Hilverling
06d2117945 Revert "IDO: customvariables: fix duplicate entry error"
This reverts commit bd2b565a1c6a76cc5fdc479ce8e816a7386ed193.
2020-10-01 10:28:37 +02:00
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