Commit Graph

192 Commits

Author SHA1 Message Date
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