Feu Mourek
e1c6c9eb19
Add documentation about Icinga 2 use cases ( #9065 )
...
Added examples about different kind of use cases that will help users get a better picture of Icinga.
2021-11-15 17:51:37 +01:00
Noah Hilverling
4d3b1709fd
Merge pull request #9009 from Icinga/bugfix/icingadb-runtime-updates-delete-relationships
...
Icinga DB: Make sure object relationships are handled correctly during runtime updates
2021-11-12 17:52:59 +01:00
Noah Hilverling
e681914d83
Merge pull request #9086 from Icinga/bugfix/icingadb-log-queries-debug-level
...
Icinga DB: only log queries at debug level
2021-11-12 17:16:54 +01:00
Julian Brost
b9e6273ba0
Icinga DB: only log queries at debug level
2021-11-12 15:41:17 +01:00
Noah Hilverling
7a0796061a
IcingaDB::AddObjectDataToRuntimeUpdates(): Copy data before modifying
2021-11-12 13:34:57 +01:00
Noah Hilverling
10bde2075a
Dictionary: Make sure underlaying map is ordered
2021-11-12 13:34:57 +01:00
Noah Hilverling
73e0d6e61b
Icinga DB: Make sure object relationships are handled correctly
2021-11-12 13:34:57 +01:00
Noah Hilverling
4e79eb080c
Merge pull request #9058 from Icinga/bugfix/icingadb-prefix-command_id
...
IcingaDB: Prefix command_id with command type
2021-11-11 11:50:26 +01:00
Noah Hilverling
c1098bef35
Merge pull request #9061 from Icinga/add-downtime-duration-and-service-state-host-id-streams
...
Icinga DB: Add `downtime.duration` & `service_state.host_id` to Redis
2021-11-11 10:19:47 +01:00
Noah Hilverling
766bb2e546
Merge pull request #9018 from Icinga/feature/sync-checkables-states-first
...
Icinga DB: sync checkables along with their states first
2021-11-09 15:28:00 +01:00
Noah Hilverling
a9c2304c61
IcingaDB: Prefix command_id with command type
2021-11-09 12:26:30 +01:00
Eric Lippmann
35053ac1dd
Icinga DB: Sync groups earlier
...
Host and service groups are structural information that are used
for Web filters and should therefore be synchronized as soon as
possible.
2021-11-09 11:17:01 +01:00
Alexander A. Klimov
07c8440fd2
Icinga DB: sync checkables along with their states first
...
`WorkQueue#ParallelFor(x, false, y)` will enqueue x's items in FIFO order,
so x has to start with host and service.
2021-11-09 11:17:01 +01:00
Yonas Habteab
fe5aa1e18d
Icinga DB: Add `service_state.host_id` to Redis
2021-11-09 11:08:22 +01:00
Yonas Habteab
5dc45baebb
Icinga DB: Add `downtime.duration` & `scheduled_duration` to Redis
2021-11-09 11:08:22 +01:00
Julian Brost
848f1ae167
Merge pull request #8998 from Icinga/bugfix/icingadb-program-start-milliseconds
...
Icinga DB: set value in milliseconds for program_start in stats/heartbeat
2021-11-08 18:18:19 +01:00
Julian Brost
524fe92a1d
Merge pull request #9028 from Icinga/bugfix/icingadb-zone-parent
...
IcingaDB: actually write parent to parent_id of zones
2021-11-08 18:08:48 +01:00
Julian Brost
e46d83b6be
Icinga DB: set value in milliseconds for program_start in stats/heartbeat
2021-11-08 14:37:08 +01:00
Julian Brost
4c5f9db982
Merge pull request #9059 from Icinga/bugfix/icingadb-improve-object-identifier-function
...
IcingaDB: Remove GetObjectIdentifiersWithoutEnv()
2021-11-08 11:18:14 +01:00
Noah Hilverling
0b9317a5bf
IcingaDB: Remove GetObjectIdentifiersWithoutEnv()
...
Having the command type be a part of the command ID isn't needed anywhere. Removing this simplifies the way we generate IDs in general, because we don't need Prepend() anymore.
The command type was only needed to prevent ID collisions within the command_envvar and command_argument tables. Those tables have since been separated into {check,event,notification}command_envvar and {check,event,notification}command_argument tables.
2021-11-05 17:01:40 +01:00
Julian Brost
d892fc77f3
Merge pull request #9036 from Icinga/feature/icingadb-environment
...
Icinga DB: decouple environment from Icinga 2 Environment constant
2021-11-05 16:15:23 +01:00
Julian Brost
3c8672b4dc
Icinga DB: increase Redis schema version
...
PR #9036 introduces some incompatible changes to the Redis schema, most
importantly where Icinga DB has to read the environment from: now it has to use
a new top-level key of the icinga:stats message instead of a value in the
IcingaApplication part of that message.
2021-11-05 14:14:37 +01:00
Julian Brost
6007848146
IcingaDB: export environment_id via API
...
Primarily required for Icinga DB integration tests at the moment, but could
also be helpful in other situations.
2021-11-05 14:14:37 +01:00
Julian Brost
4ade4c757b
IcingaDB: write new environment to icinga:stats stream
2021-11-05 14:14:37 +01:00
Julian Brost
525dd50859
IcingaDB: introduce a new environment ID derived from the CA public key
...
In order to avoid changes to the environment ID, it is now no longer derived
from the Environment constant but instead from the public key of the CA
certificate. This ensures that it is different between clusters by default, so
no additional changes have to be done to allow two clusters to use Icinga DB to
write into the same database.
To prevent the ID from changing when the CA certificate is replaced, it is also
persisted into the file /var/lib/icinga2/icingadb.env, so if that file exists,
it takes precedence over the CA certificate.
2021-11-05 14:14:37 +01:00
Julian Brost
6cd3a483a0
tlsutility: move hex encoding into a separate function BinaryToHex
2021-11-05 14:14:37 +01:00
Julian Brost
f976e351f4
Merge pull request #9044 from Icinga/bugfix/idb-dump-buf-lost
...
Icinga DB init. dump: flush both buffered states and state checksums
2021-11-04 12:26:28 +01:00
Julian Brost
6b3a2ee429
Merge pull request #9029 from Icinga/feature/icingadb-history-deterministic-ids
...
Icinga DB: make icinga:history:stream:*#event_id deterministic
2021-11-03 12:31:21 +01:00
Alexander A. Klimov
0ff7d0a06e
Icinga DB: raise icinga:schema 1 -> 2
2021-11-02 15:00:55 +01:00
Alexander A. Klimov
b1714a10c2
Icinga DB: make icinga:history:stream:*#event_id deterministic
...
... i.e. UUID -> SHA1(env, eventType, x...) given that SHA1(env, x...) = type-specific ID.
Rationale: allow both masters to write the same history concurrently (while not
in split-brain), so that REPLACE INTO deduplicates the same events written twice.
* ack: SHA1(env, "ack_set"|"ack_clear", checkable.name, setTime)
* comment: SHA1(env, "comment_add"|"comment_remove", comment.name)
* downtime: SHA1(env, "downtime_start"|"downtime_end", downtime.name)
* flapping: SHA1(env, "flapping_start"|"flapping_end", checkable.name, startTime)
* notification: SHA1(env, "notification", notification.name, notificationType, sendTime)
* state: SHA1(env, "state_change", checkable.name, changeTime)
2021-11-02 15:00:03 +01:00
Alexander A. Klimov
5c44365c4e
Icinga DB: make icinga:history:stream:notification#id deterministic
...
... i.e. UUID -> SHA1(x..., send time) given that SHA1(x...) = notification id.
Rationale: allow both masters to write the same notification history concurrently (while
not in split-brain), so that REPLACE INTO deduplicates the same events written twice.
2021-11-02 15:00:03 +01:00
Alexander A. Klimov
c2422c56fe
Icinga DB: make icinga:history:stream:state#id deterministic
...
... i.e. UUID -> SHA1(x..., check time) given that SHA1(x...) = checkable id.
Rationale: allow both masters to write the same state history concurrently (while
not in split-brain), so that REPLACE INTO deduplicates the same events written twice.
2021-11-02 15:00:03 +01:00
Christian Gut
b5132a59ef
check_ssl_cert: support --ignore-tls-renegotiation ( #9042 )
...
* check_tls_cert: support --ignore-tls-renegotiation
Extend template, so we can support --ignore-tls-renegotiation
* Update docs
2021-11-02 12:05:30 +01:00
Alexander Aleksandrovič Klimov
f5f8ccb1f4
Merge pull request #9020 from Icinga/feature/icingaeb-schema-version
...
Icinga DB: publish Redis schema version via XADD icinga:schema
2021-10-25 13:21:37 +02:00
Alexander A. Klimov
d8b4768471
Icinga DB init. dump: flush both buffered states and state checksums
...
not to dump x states, but only x - (x % bulk) state checksums.
2021-10-21 13:49:24 +02:00
Noah Hilverling
a7cbf50674
Merge pull request #9030 from Icinga/Al2Klimov-patch-1
...
Icinga DB: don't include checkable types in history IDs
2021-10-19 14:52:43 +02:00
Alexander Aleksandrovič Klimov
f6b26de20d
Merge pull request #9040 from Icinga/bugfix/icinga-db-runtime-state
...
Icinga DB: stream runtime state updates only to icinga:runtime:state
2021-10-19 14:40:46 +02:00
Alexander A. Klimov
4b0688047e
Icinga DB: stream runtime state updates only to icinga:runtime:state
...
... where they belong to, not to icinga:runtime.
2021-10-18 18:11:30 +02:00
Alexander Aleksandrovič Klimov
a7a2f4bed0
Merge pull request #9032 from Napsty/nrpe-payload-size
...
Add ITL config option for different NRPE payload size/length
2021-10-12 18:11:31 +02:00
Napsty
195fae6113
Add ITL config option for different NRPE payload size/length
2021-10-12 08:29:07 +02:00
Alexander Aleksandrovič Klimov
e0339c387b
Icinga DB: don't include checkable types in history IDs
...
... as they’re unnecessary for being distinguish across types.
Services always have a ! in the name, hosts never do.
2021-10-11 16:14:30 +02:00
Alexander Aleksandrovič Klimov
30a5ba3961
Merge pull request #9002 from Icinga/feature/icingadb-remove-usernotification-stream
...
Icinga DB: remove usernotification history stream
2021-10-08 19:16:26 +02:00
Alexander Aleksandrovič Klimov
4190d58668
Merge pull request #9011 from Icinga/bugfix/icingadb-remove-zone-parent-key
...
Icinga DB: Remove unused Redis key 'icinga:zone:parent'
2021-10-08 17:19:51 +02:00
Alexander Aleksandrovič Klimov
ff60c1af37
Merge pull request #8895 from Icinga/bugfix/typo-8766
...
Fix typo
2021-10-08 17:19:20 +02:00
Noah Hilverling
750e64b974
Icinga DB: Remove unused Redis key 'icinga:zone:parent'
2021-10-08 12:06:14 +02:00
Julian Brost
df84a498f4
IcingaDB: actually write parent to parent_id of zones
...
This fixes that the code used the wrong variable. Previously, it was written to
Redis that each zone is its own parent (if it has a parent at all).
2021-10-08 11:15:54 +02:00
Alexander A. Klimov
3bf180a341
Fix typo
...
refs #8766
2021-10-08 10:27:35 +02:00
Julian Brost
544b9989f0
Merge pull request #8947 from Icinga/Al2Klimov-patch-1
...
Typo
2021-10-07 18:07:00 +02:00
Alexander Aleksandrovič Klimov
3d5034c8cc
Merge pull request #8924 from peteeckel/fix/check-postgres-itl-8922
...
[ITL] Added --datadir, --language and --perflimit for check_postgres
2021-10-04 10:50:50 +02:00
Peter Eckel
688de9dce7
[ITL] Added --datadir, --language and --perflimit for check_postgres
2021-10-01 19:53:53 +02:00