Gunnar Beutner
1a23ae94f9
Implement support for updating the program_end_time column
...
fixes #6923
2015-02-04 15:25:10 +01:00
Gunnar Beutner
e7938c9374
Fix crash in DbConnection::ProgramStatusHandler
...
fixes #8288
2015-01-27 09:53:07 +01:00
Michael Friedrich
78bfd0204c
Update copyright year
2015-01-22 12:00:23 +01:00
Gunnar Beutner
363f23b1d8
Rename ScriptFunction to Function
...
fixes #8258
2015-01-21 08:48:38 +01:00
Gunnar Beutner
9f18211ada
Remove obsolete code
...
refs #7709
2014-12-18 15:57:30 +01:00
Gunnar Beutner
873e294158
Refactor the WorkQueue class to make error reporting easier
...
refs #7709
2014-12-18 15:11:57 +01:00
Gunnar Beutner
1cb0231c05
Refactor how variable scopes work
...
refs #8074
2014-12-14 11:33:45 +01:00
Michael Friedrich
d11286e9a5
DB IDO: Update child object reachability if parentchanges to !{OK,UP}
...
fixes #7683
2014-12-12 16:12:05 +01:00
Michael Friedrich
868d403a8a
DB IDO: Missing last_hard_state column update in {host,service}status tables
...
fixes #8058
2014-12-12 13:25:10 +01:00
Gunnar Beutner
2d53e000c8
Refactor the config validator so that it doesn't require serialized objects
...
refs #7701
2014-11-20 13:28:21 +01:00
Gunnar Beutner
7321e45abc
Implement support for executing remote commands
...
fixes #7559
2014-11-13 14:54:55 +01:00
Gunnar Beutner
e52b2b6509
Fix incorrect IDO queries
...
fixes #7634
2014-11-11 16:36:20 +01:00
Gunnar Beutner
11710ef683
Fix static initializers
...
refs #7634
2014-11-11 13:24:44 +01:00
Jean Flach
0ba2efe97f
Fix some Ido initialization bugs
...
refs #7625
2014-11-11 10:04:37 +01:00
Gunnar Beutner
4df3fd4451
Add missing category type for some IDO queries
...
fixes #7625
2014-11-10 13:21:33 +01:00
Gunnar Beutner
478f03b49a
Replace boost::shared_ptr with boost::intrusive_ptr
...
refs #7622
2014-11-09 16:54:41 +01:00
Gunnar Beutner
684ad2641a
Fix GetInstance() methods for the DbType and config validator registry classes
2014-11-09 13:06:25 +01:00
Gunnar Beutner
9e2aa4c5ed
Fix problem with unresolved symbols
...
refs #7561
2014-11-07 18:37:28 +01:00
Michael Friedrich
58d5c42d9c
DB IDO: Dump custom attributes as json encoded arrays/dictionaries; add 'is_json' column
...
refs #7560
2014-11-04 13:47:45 +01:00
Gunnar Beutner
170c5a59e4
Implement typeof() function
2014-11-03 00:45:14 +01:00
Gunnar Beutner
4677014b6d
Implement support for arrays in custom variables
...
fixes #6544
2014-11-02 07:27:50 +01:00
Gunnar Beutner
9368ff0e03
Update some more log messages
2014-10-20 10:09:57 +02:00
Gunnar Beutner
2d5e9514a5
Refactor logging code
2014-10-19 17:52:17 +02:00
Gunnar Beutner
b18f57a745
Remove logger_fwd.hpp
2014-10-19 14:50:39 +02:00
Gunnar Beutner
92896311f3
Implement support for C/C++ comments in the TI compiler
...
fixes #5018
2014-10-17 19:44:31 +02:00
Michael Friedrich
3fd20d56aa
DB IDO: Add program_version column to programstatus table
...
Bump schema version to 1.11.8
fixes #7391
2014-10-16 12:11:10 +02:00
Gunnar Beutner
6f2ea6bc08
Fix build problems with Oracle Solaris Studio
...
refs #6896
2014-09-02 13:09:17 +02:00
Gunnar Beutner
eb091a87b0
Implement support for unity builds
...
fixes #7034
fixes #7035
2014-08-30 20:02:12 +02:00
Gunnar Beutner
65bec9e904
Clean up some parts of the code
2014-08-17 17:57:41 +02:00
Michael Friedrich
e52848b923
DB IDO: Fix failover_timeout config validator
...
refs #6827
2014-08-15 17:50:38 +02:00
Michael Friedrich
1c98a3a9f7
DB IDO: Add failover_timeout attribute
...
refs #6827
2014-08-15 17:21:12 +02:00
Michael Friedrich
f6c24f8964
DB IDO: Delay connection in HA RunOnce mode
...
refs #6827
refs #6203
2014-08-15 17:21:12 +02:00
Michael Friedrich
d326678e76
DB IDO: Add 'enable_ha' configuration flag
...
This feature is true by default. If disabled all cluster nodes in a high
availability zone will write to their own local database.
TODO: documentation, tests.
refs #6827
refs #6203
2014-08-15 17:21:12 +02:00
Gunnar Beutner
a098fe804b
Fix duplicate rows in icinga_objects
...
fixes #6414
2014-07-16 10:20:01 +02:00
Michael Friedrich
4bfa068e46
Change log message identifier for libdb_ido.
...
Refs #6346
2014-05-28 14:42:01 +02:00
Gunnar Beutner
632026cd9f
Rename C++ header files.
...
Fixes #6291
2014-05-25 16:27:14 +02:00
Gunnar Beutner
215f500b0e
Fix compiler warnings.
...
Refs #5823
2014-05-23 11:05:25 +02:00
Michael Friedrich
1df7518b35
Move more log messages to 'notice' severity.
...
Refs #6070
2014-05-22 23:47:03 +02:00
Gunnar Beutner
fceeeba05e
Fix compiler warnings.
...
Fixes #5823
2014-05-22 10:28:21 +02:00
Michael Friedrich
601e10cb46
Use CustomVarObject instead of DynamicObject for all libicinga objects.
...
Fixes #6187
2014-05-19 17:57:58 +02:00
Michael Friedrich
aa97c3c670
Add command namespace {check_,event_,notification_} to legacy interfaces.
...
Fixes #5927
2014-05-12 16:18:03 +02:00
Gunnar Beutner
9c3e399188
Remove unnecessary includes.
...
Fixes #6189
2014-05-11 18:11:32 +02:00
Michael Friedrich
f5e568d3fb
DB IDO: Add 'is_reachable' column to {host,service}status tables.
...
Refs #6094
2014-05-10 21:03:47 +02:00
Michael Friedrich
76658e7ddd
DB IDO: Add Enable* db events.
...
Refs #6151
2014-05-10 16:52:48 +02:00
Gunnar Beutner
b367187c0b
Implement HA for IDO connections.
...
Refs #6107
2014-05-09 13:02:30 +02:00
Gunnar Beutner
45270f1bb8
Refactor the agent and cluster components.
...
Refs #6107
2014-05-08 09:13:04 +02:00
Michael Friedrich
ddfccf3188
Add debug log entries for dependencies.
...
Refs #5872
2014-05-03 21:04:56 +02:00
Michael Friedrich
5aa578c4e4
Implement CompatUtility::GetCheckableCommandArgs() for DB IDO, Livestatus, StatusDataWriter.
...
Fixes #5926
2014-05-03 03:18:37 +02:00
Michael Friedrich
3d586b2b80
DB IDO: Update Host/Service state 'scheduled_downtime_depth' on DowntimeTriggered.
...
Refs #6051
2014-05-03 00:38:56 +02:00
Michael Friedrich
fc44798b8d
DB IDO: Update Host/Service state 'last_notification' on NotificationSentToAllUsers.
...
Refs #6051
2014-05-03 00:27:05 +02:00
Michael Friedrich
ba12ec2927
DB IDO: Update Host/Service state 'is_flapping' on FlappingChanged.
...
Refs #6051
2014-05-02 23:56:52 +02:00
Michael Friedrich
03e44dcdc8
DB IDO: Update Host/Service state 'next_check' on NextCheckChanged.
...
Refs #6051
2014-05-02 23:38:37 +02:00
Michael Friedrich
0c72228a0e
DB IDO: Update Host/Service status on Acknowledgement Add/Clear.
...
Refs #6051
2014-05-02 23:17:36 +02:00
Michael Friedrich
2b70b282ad
Add {Host,Service}Group attributes: notes, notes_url, action_url.
...
Fixes #6057
2014-04-24 14:48:57 +02:00
Gunnar Beutner
097e0bf4f4
Fix duplicate service contacts.
...
Fixes #6058
2014-04-23 22:41:51 +02:00
Michael Friedrich
d0af8a226b
Fix headers.
2014-04-23 15:57:58 +02:00
Michael Friedrich
c239f84fd7
Revert "Add group apply (creates object only once and sets membership)."
...
This reverts commit 559a4fef67
.
Refs #5910
2014-04-23 14:59:48 +02:00
Michael Friedrich
cdd5c0a716
DB IDO: Add missing dependency attributes.
...
Fixes #5745
2014-04-23 10:33:30 +02:00
Michael Friedrich
c8b3fde2ef
Drop unused statusmap_image & coords attributes entirely.
...
Fixes #6044
2014-04-22 13:48:06 +02:00
Michael Friedrich
fe1a83ff34
Revert "Add statusmap_image and coords host attributes."
...
This reverts commit 252980a6bd
.
Refs #6044
2014-04-22 12:09:24 +02:00
Michael Friedrich
252980a6bd
Add statusmap_image and coords host attributes.
...
They are as important as action_url, etc.
coords is made a dictionary consisting of x_2d and y_2d as keys.
Fixes #6044
2014-04-17 16:48:59 +02:00
Michael Friedrich
72f7537fa6
Add modified attributes for user and command vars.
...
Fixes #6043
2014-04-17 15:20:28 +02:00
Michael Friedrich
c7659337b7
Use legacy attribute getters in interfaces.
...
Fixes #6041
2014-04-17 13:50:26 +02:00
Michael Friedrich
0dedd7cf19
Add global Enable{Host,Service}Checks. Update interfaces and external commands.
...
Fixes #6037
Fixes #5975
2014-04-17 11:29:47 +02:00
Michael Friedrich
8cfce66604
Fix custom var override.
...
Refs #5956
Refs #5962
2014-04-16 17:52:12 +02:00
Michael Friedrich
7c0d93ea0a
Add modified attributes for vars dictionary.
...
- new external commands
- raw values for 'vars'
- OnVarsChanged() signal for db_ido customvariablestatus updates
- refactor db_ido customvariable config updates
Refs #5956
Refs #5962
2014-04-16 17:52:12 +02:00
Michael Friedrich
559a4fef67
Add group apply (creates object only once and sets membership).
...
Refs #5910
2014-04-15 14:55:29 +02:00
Gunnar Beutner
a16ef350e2
Avoid unnecessary copies for DynamicType::GetObjects.
...
Fixes #5987
2014-04-09 12:22:23 +02:00
Gunnar Beutner
606834e190
Rename the notification attributes.
...
Fixes #5906
2014-04-09 10:25:23 +02:00
Gunnar Beutner
80778bad1d
Update components to use the new address fields.
...
Refs #5856
2014-04-08 13:34:48 +02:00
Gunnar Beutner
1c115297f9
Rename the service state constants.
...
Fixes #5964
2014-04-08 09:11:54 +02:00
Gunnar Beutner
e560e1e00c
Remove the HostUnreachable state.
...
Fixes #5944
2014-04-08 08:54:49 +02:00
Michael Friedrich
6d8d25175d
DB IDO: Fix AddLogHistory() checkable object.
...
Fixes #5948
2014-04-06 18:19:31 +02:00
Gunnar Beutner
5c671eab15
Update documentation.
...
Refs #5925
2014-04-06 08:28:28 +02:00
Michael Friedrich
af621214d4
DB IDO: Dump application and command vars.
...
Refs #5855
2014-04-04 16:53:03 +02:00
Gunnar Beutner
23e9630682
Implement host checks.
...
Refs #5919
2014-04-04 15:57:54 +02:00
Michael Friedrich
5c58eb368c
Merge 'macros' and 'custom' attributes into 'vars', part 1.
...
Refs #5855
2014-04-03 11:35:25 +02:00
Gunnar Beutner
54063f0b9f
Rename __name and __type properties.
...
Refs #5870
2014-03-28 14:17:55 +01:00
Michael Friedrich
23c47dd430
Make host 'check' attribute available in legacy interfaces.
...
Fixes #5764
2014-03-21 17:57:24 +01:00
Michael Friedrich
bda7e9f362
Revert "DB IDO: Add check_source_object_id reference to endpoint objects."
...
There's not necessarily a 1:1 relation between the check source node
name and the endpoint name.
This reverts commit a26df23e3d
.
Refs #5810
Refs #5636
Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2014-03-21 10:18:03 +01:00
Michael Friedrich
a26df23e3d
DB IDO: Add check_source_object_id reference to endpoint objects.
...
Refs #5810
Refs #5636
2014-03-20 18:03:47 +01:00
Michael Friedrich
b4f0148871
DB IDO: Add status/history references from local node to endpoint object.
...
Refs #5636
2014-03-20 18:03:47 +01:00
Michael Friedrich
dfd08ec6ea
DB IDO: Use node name for local status updates.
...
Refs #5636
2014-03-20 18:03:47 +01:00
Michael Friedrich
88dafa8eef
Revert "DB IDO: Add endpoint id to history tables, part 1."
...
This reverts commit 5e2308b065427e15f96dbdcbfe65e6dfded9575e.
2014-03-20 18:03:47 +01:00
Michael Friedrich
c1ed614201
Fix Windows build.
...
Refs #5636
2014-03-20 18:03:47 +01:00
Michael Friedrich
a29b50cad4
DB IDO: Add endpoint id to history tables, part 1.
2014-03-20 18:03:47 +01:00
Michael Friedrich
dbee02a23a
DB IDO: Set is_connected=1 on identity==node.
...
Refs #5636
2014-03-20 18:03:47 +01:00
Michael Friedrich
ea973e5c82
Move cluster endpoint/jsonrpc functionality into libremote.
...
Refs #5690
Refs #5636
2014-03-20 18:03:47 +01:00
Michael Friedrich
fc7d7cc9eb
DB IDO: Send endpoint authority for status updates.
...
Refs #5636
2014-03-20 18:03:47 +01:00
Michael Friedrich
097bb5ac97
DB IDO: Add endpoints/endpointstatus tables.
...
Refs #5636
2014-03-20 18:03:47 +01:00
Michael Friedrich
bf9c89f625
DB IDO/Livestatus: Fix global enabled status values.
...
Fixes #5808
2014-03-20 11:33:59 +01:00
Michael Friedrich
ce737ff2f3
Change copyright header (again).
...
Fixes #5424
2014-03-19 11:42:47 +01:00
Michael Friedrich
1279d27720
Fix enable_perfdata attribute in compat features.
...
Fixes #5693
2014-03-12 15:21:56 +01:00
Michael Friedrich
2f8b49f4ef
Add comment on clearing tables on reconnect.
...
Refs #5565
2014-03-09 18:20:45 +01:00
Michael Friedrich
4a077c9ceb
Update next check before processing any result triggering status updates.
...
Fixes #5733
2014-03-09 18:06:24 +01:00
Michael Friedrich
3885885aac
DB IDO: Drop obsolete icinga_node column.
...
Fixes #5730
2014-03-08 14:44:58 +01:00
Gunnar Beutner
ac3cbfe801
Clear servicedependencies table after reconnect.
...
Fixes #5714
2014-03-06 09:37:58 +01:00
Michael Friedrich
5f26bb9147
Add check source to external commands / check result reader.
...
Fixes #5615
2014-02-07 09:48:15 +01:00
Michael Friedrich
4aeaf9a947
DB IDO: Add icinga_node to *history tables.
...
Refs #5470
2014-02-06 16:44:46 +01:00
Michael Friedrich
07615f14e8
DB IDO: Add check_source to statehistory table.
...
Refs #5470
2014-02-06 16:01:03 +01:00
Gunnar Beutner
ed2d4e627c
Fix builds on Debian wheezy.
...
Fixes #5596
2014-02-04 12:59:22 +01:00
Gunnar Beutner
856f01198d
Re-use IDs where possible.
...
Refs #5565
2014-02-04 09:37:56 +01:00
Gunnar Beutner
3a23f0110b
Move the ClearConfigTables function into the DbConnection class.
...
Refs #5565
2014-02-04 09:19:11 +01:00
Gunnar Beutner
5ae20eb31a
Fix duplicate object IDs for command objects.
...
Fixes #5584
2014-01-31 10:42:27 +01:00
Michael Friedrich
d31ca31e90
DB IDO: Implement notification object insert id cache.
...
Refs #5103
2014-01-29 17:38:02 +01:00
Michael Friedrich
a3097ff3c6
DB IDO: Fix the way notification_id is handled.
...
Fixes #5103
Fixes #5265
2014-01-28 17:53:40 +01:00
Michael Friedrich
f30eca5a73
DB IDO: Refactor notification signal handling.
...
Refs #5103
Fixes #5265
2014-01-28 15:53:12 +01:00
Michael Friedrich
f9c37524f1
DB IDO: Fix wrong timestamp in column expiration_time.
...
Fixes #5292
2014-01-23 17:42:33 +01:00
Michael Friedrich
fcec5c61a0
CompatUtility: Fix broken custom variable dump.
...
Fixes #5547
2014-01-21 16:13:27 +01:00
Johannes Meyer
cf81db562f
Fix that the service_object_id is not correctly set in the servicechecks table
...
fixes #5486
2014-01-16 16:12:29 +01:00
Johannes Meyer
5aca228950
Fix that "categories" is not a valid attribute for DbConnection objects
...
refs #5482
2014-01-16 12:25:46 +01:00
Johannes Meyer
518ab55418
Fix the config compiler's ignorance
...
fixes #5482
2014-01-16 10:17:25 +01:00
Michael Friedrich
a4466ba880
Fix formatting of execution_time, latency.
...
Fixes #5427
2014-01-10 00:38:16 +01:00
Michael Friedrich
555d72150a
Update copyright header.
...
Fixes #5424
2014-01-09 00:32:11 +01:00
Gunnar Beutner
41d4ba169f
Embed constants into lib{base,icinga,db_ido}.
...
Fixes #5247
2013-12-17 14:24:29 +01:00
Michael Friedrich
66765311c3
Refactor CompatUtility::* for DB IDO, Livestatus, StatusData.
...
Fixes #5241
2013-12-13 09:38:22 +01:00
Michael Friedrich
085fca90ad
Fix missing comment_data column in downtime tables.
...
Fixes #5282
2013-12-09 13:30:13 +01:00
Gunnar Beutner
3d7c103035
Fix deadlock in ServiceDbConnect::Add{Comments,Downtimes}.
...
Fixes #5286
2013-12-09 13:22:50 +01:00
Gunnar Beutner
5e9ce84c17
Fix duplicate IDs in queries for comments/downtimes.
...
Fixes #5283
2013-12-09 12:22:54 +01:00
Gunnar Beutner
3b99dc1e84
Fix incorrect value for the triggered_by_id column.
...
Fixes #5279
2013-12-09 09:22:04 +01:00
Gunnar Beutner
41ded2858c
Implement scheduled downtimes.
...
Fixes #3584
2013-12-06 13:45:18 +01:00
Michael Friedrich
fa14b39719
DB IDO: Fix reconnect config/status inserts.
...
Fixes #5266
2013-12-05 12:12:57 +01:00
Gunnar Beutner
7482548966
Fix: display_name property doesn't work for hosts.
...
Fixes #5258
2013-12-04 12:07:57 +01:00
Gunnar Beutner
553bd3246b
Improve compatibility with -fvisibility=hidden.
...
Refs #5246
2013-12-02 11:07:41 +01:00
Gunnar Beutner
f05858d3ad
Avoid unnecessary copies when iterating over dictionaries.
...
Refs #5246
2013-12-02 11:07:38 +01:00
Gunnar Beutner
5daedd2dea
Remove unnecessary host config update.
...
Refs #5235
2013-11-28 10:37:22 +01:00
Gunnar Beutner
640136fbdb
Make object, type and variable names case-sensitive.
...
Fixes #5228
2013-11-27 12:29:42 +01:00
Gunnar Beutner
7a3a8de83c
Optimize IDO queries.
...
Refs #5124
2013-11-22 10:32:53 +01:00
Gunnar Beutner
b915494157
Avoid unnecessary updates for the is_active column.
...
Fixes #5124
2013-11-22 10:13:42 +01:00
Gunnar Beutner
45161fe66d
Improve latency after start-up.
...
Fixes #5121
2013-11-21 16:09:21 +01:00
Gunnar Beutner
91338a7e49
Remove redundant checks.
...
Fixes #5071
2013-11-21 12:23:55 +01:00
Gunnar Beutner
933ac5f403
Clear ID cache when (re-)connecting.
...
Fixes #5108
2013-11-20 09:32:30 +01:00
Gunnar Beutner
88ac76f2ca
Fix another broken IDO query.
...
Refs #5088
2013-11-19 16:34:41 +01:00
Gunnar Beutner
77b058e22c
Fix incorrect IDO queries.
...
Fixes #5088
2013-11-19 12:55:37 +01:00
Michael Friedrich
d1419a3067
Fix CompatUtility::{ConvertTimestamp,GetCheckResultOutput} should return std::pair.
...
Fixes #5045
2013-11-11 15:06:23 +01:00
Gunnar Beutner
ec1a7bbfcb
Implement class for service downtimes.
...
Refs #5039
2013-11-09 22:08:26 +01:00
Gunnar Beutner
cb526ddccc
Implement class for service comments.
...
Refs #5039
2013-11-09 21:19:52 +01:00
Gunnar Beutner
112f26dc19
Replace check result dictionaries with a class.
...
Refs #5039
2013-11-09 15:26:01 +01:00
Gunnar Beutner
2a6151e935
Use anonymous namespaces for INITIALIZE_ONCE().
...
Refs #5036
2013-11-08 21:12:47 +01:00
Gunnar Beutner
e546cd854d
Clean up the DynamicType class.
...
Refs #5036
2013-11-08 16:07:21 +01:00
Gunnar Beutner
a84536bea3
Implement serializer support for arbitrary classes.
...
Fixes #5024
2013-11-08 14:08:59 +01:00
Gunnar Beutner
6acc017707
Remove namespace qualifiers for boost::make_shared and boost::enable_shared_from_this.
...
Fixes #5012
2013-11-07 08:28:33 +01:00
Gunnar Beutner
2617521ce3
Fix exception in Exception in IdoPgsqlConnection::Query.
...
Fixes #5002
2013-11-05 13:35:59 +01:00
Gunnar Beutner
b1ddc71925
Merge ReflectionObject methods into the Object class.
...
Refs #4996
2013-11-05 08:56:30 +01:00
Gunnar Beutner
264fdf40d5
Implement PostgreSQL adapter for IDO.
...
Fixes #4777
2013-11-04 16:05:24 +01:00
Gunnar Beutner
871f6febc7
Move methods to a separate library.
...
Refs #4959
2013-11-04 15:29:18 +01:00
Gunnar Beutner
f2307c4242
Add cmake build files.
...
Refs #4962
2013-11-03 13:45:26 +01:00
Gunnar Beutner
2c143fbdf8
Remove unused files.
...
Refs #4962
2013-11-03 11:12:47 +01:00
Michael Friedrich
d21d79a36c
CompatUtility: Use functionality in compat/ido/livestatus.
...
refs #4735
2013-10-31 16:08:55 +01:00
Gunnar Beutner
e73197bc23
Refactor DbConnection::CleanUpHandler.
...
Refs #4969
2013-10-30 14:08:09 +01:00