Julian Brost
|
ae743817da
|
Add comment explaining the purpose of ha.Close()
|
2021-05-07 14:51:58 +02:00 |
|
Julian Brost
|
e0d66fe0ee
|
Exit with an error code if not exiting due to a signal
Icinga DB should not exit with code 0 if it does so due to an error.
|
2021-05-07 14:51:58 +02:00 |
|
Eric Lippmann
|
a1ceeeb9eb
|
Merge pull request #36 from lippserd/feature/runtime-updates
Implement runtime updates
|
2021-05-07 14:37:56 +02:00 |
|
Eric Lippmann
|
345bcb952f
|
Runtime updates must wait for config sync to complete
|
2021-05-07 12:04:41 +02:00 |
|
Noah Hilverling
|
91a8228e2d
|
Implement runtime updates
|
2021-05-07 12:04:41 +02:00 |
|
Julian Brost
|
3649b367e1
|
Handle HA errors
|
2021-05-07 11:46:45 +02:00 |
|
Alexander A. Klimov
|
ff6ae994d2
|
Remove always-false if
|
2021-05-07 11:06:54 +02:00 |
|
Julian Brost
|
a7e5395f66
|
Read icinga:dump stream and respect dump signals
|
2021-05-03 11:19:26 +02:00 |
|
Julian Brost
|
ab24bdd1f7
|
Main loop: return if ctx has an error
If ctx.Done(), there's no point in looping again.
|
2021-04-28 16:05:56 +02:00 |
|
Julian Brost
|
d138b8e0ac
|
Handle SIGINT/SIGTERM/SIGHUP
On any of these signals, HA removes the row of the local instance from
icingadb_instance. This allows another instance to take over immediately.
|
2021-04-28 12:01:02 +02:00 |
|
Eric Lippmann
|
4fbcd4c90f
|
Move factories away from main and use v1.Factories
|
2021-04-27 23:36:43 +02:00 |
|
Alexander A. Klimov
|
5e473e8b37
|
main(): don't panic on (intentional) context cancel
|
2021-04-26 14:15:10 +02:00 |
|
Eric Lippmann
|
a9c6cdabc9
|
Remove comment
|
2021-04-23 11:50:27 +02:00 |
|
Eric Lippmann
|
dfb7ea5dc9
|
Remove customvar_flat sync draft
|
2021-04-23 11:34:07 +02:00 |
|
Eric Lippmann
|
0c8a9139b5
|
Merge pull request #28 from lippserd/bugfix/delta-race
Delta#start(): avoid a race across maps by using a mutex
|
2021-04-19 16:20:42 +02:00 |
|
Alexander A. Klimov
|
fac47fb330
|
Delta: don't over-lock
|
2021-04-12 17:41:18 +02:00 |
|
Alexander A. Klimov
|
7ccf627df6
|
Sync history
|
2021-04-12 13:28:03 +02:00 |
|
Eric Lippmann
|
63d8bf8e24
|
Merge pull request #15 from lippserd/feature/timeperiod
Sync timeperiods as well
|
2021-03-30 10:12:33 +02:00 |
|
Eric Lippmann
|
9525ef476e
|
Merge pull request #13 from lippserd/feature/notification
Sync notifications as well
|
2021-03-23 10:09:06 +01:00 |
|
Eric Lippmann
|
b9673e1a94
|
Merge pull request #11 from lippserd/feature/comment
Sync comments as well
|
2021-03-23 10:08:01 +01:00 |
|
Alexander A. Klimov
|
fd2e068de6
|
Sync timeperiods as well
|
2021-03-22 14:07:52 +01:00 |
|
Alexander A. Klimov
|
7ab45082ad
|
Sync notifications as well
|
2021-03-22 14:06:51 +01:00 |
|
Alexander A. Klimov
|
3ec88ac53d
|
Sync comments as well
|
2021-03-22 14:04:58 +01:00 |
|
Alexander A. Klimov
|
b90bc86bb4
|
Sync zones as well
|
2021-03-22 14:03:46 +01:00 |
|
Eric Lippmann
|
49d50a779e
|
Merge pull request #12 from lippserd/feature/downtime
Sync downtimes as well
|
2021-03-22 13:37:35 +01:00 |
|
Eric Lippmann
|
dd1fad4b13
|
Merge pull request #10 from lippserd/feature/command
Sync commands as well
|
2021-03-22 13:36:46 +01:00 |
|
Eric Lippmann
|
9f936eba95
|
Merge pull request #7 from lippserd/feature/groups
Sync groups as well
|
2021-03-22 13:36:12 +01:00 |
|
Alexander A. Klimov
|
13c672ce6e
|
Sync downtimes as well
|
2021-03-18 13:56:07 +01:00 |
|
Alexander A. Klimov
|
a56d312c81
|
Sync commands as well
|
2021-03-18 13:51:33 +01:00 |
|
Eric Lippmann
|
e4539d90fc
|
Merge pull request #8 from lippserd/feature/endpoint
Sync endpoints as well
|
2021-03-18 13:42:20 +01:00 |
|
Alexander A. Klimov
|
71d1b4a9f4
|
Sync endpoints as well
|
2021-03-18 12:32:09 +01:00 |
|
Alexander A. Klimov
|
055e63e272
|
Sync groups as well
|
2021-03-18 12:31:11 +01:00 |
|
Alexander A. Klimov
|
0dd5e54b14
|
Sync users as well
|
2021-03-18 12:19:23 +01:00 |
|
Alexander A. Klimov
|
3a66f0372c
|
Introduce CustomvarMeta
|
2021-03-18 12:19:20 +01:00 |
|
Eric Lippmann
|
c2fe0dfe7c
|
Merge pull request #16 from lippserd/feature/channels
Make channels more specific
|
2021-03-17 10:03:24 +01:00 |
|
Eric Lippmann
|
f9648b00c5
|
Merge pull request #14 from lippserd/feature/url
Sync URLs as well
|
2021-03-17 10:02:20 +01:00 |
|
Eric Lippmann
|
c5f1b88c0c
|
Merge pull request #4 from lippserd/feature/initer
Make NameCiMeta an Initer
|
2021-03-17 09:56:10 +01:00 |
|
Alexander A. Klimov
|
4dffbad76e
|
Make channels more specific
|
2021-03-15 16:34:58 +01:00 |
|
Alexander A. Klimov
|
aa3dfc2afc
|
Sync URLs as well
|
2021-03-12 16:44:19 +01:00 |
|
Alexander A. Klimov
|
8cd62118b2
|
Auto-init Initers
|
2021-03-12 10:55:12 +01:00 |
|
Julian Brost
|
a474c83651
|
Replace persisted instance ID with a random one and remove old rows from icingadb_instance
|
2021-03-08 13:01:52 +01:00 |
|
Eric Lippmann
|
6ca9d36c8b
|
Add cmd
|
2021-03-04 00:50:24 +01:00 |
|