Commit Graph

311 Commits

Author SHA1 Message Date
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
Gunnar Beutner e020a80bf8 Clean up DbConnection / IdoMysqlConnection.
Refs #4969
2013-10-30 14:07:26 +01:00
Gunnar Beutner dc21088680 Fix make dist.
Refs #4976
2013-10-30 12:18:08 +01:00
Gunnar Beutner 9f1c4539dc Remove libltdl dependency.
Refs #4964
2013-10-30 12:00:55 +01:00
Gunnar Beutner ff737e4cb5 Add script constants for the DbCat* filter categories.
Refs #4782
2013-10-30 10:20:00 +01:00
Gunnar Beutner 8c5bff3f75 Implement data processing options (DbConnection::categories).
Refs #4782
2013-10-30 10:19:56 +01:00
Gunnar Beutner f39eff323e Implement DbQuery::Category field.
Refs #4782
2013-10-30 09:58:55 +01:00
Gunnar Beutner db4b3b78d6 Implement class compiler.
Refs #4963
2013-10-28 14:27:36 +01:00
Michael Friedrich 36c4cb0da8 db_ido: Fix modified_{host,service}_attributes columns. 2013-10-16 16:29:14 +02:00
Gunnar Beutner 53ca2d3916 ido: Add modified_attributes. 2013-10-16 12:01:09 +02:00
Michael Friedrich 4135578903 Add GraphiteWriter.
fixes #3986
2013-10-15 14:56:02 +02:00
Gunnar Beutner 8409b55018 More Win64 build fixes. 2013-10-10 23:46:45 +02:00
Gunnar Beutner 494fb90547 Make sure Registry<> types are unique. 2013-10-10 23:07:34 +02:00
Gunnar Beutner 1b0977a512 Windows build fix. 2013-10-10 23:07:33 +02:00
Gunnar Beutner fe5c925a63 Windows build fix. 2013-10-09 15:03:24 +02:00
Michael Friedrich 732f07a83f db_ido: Add object_id for logentries.
see https://dev.icinga.org/issues/4754 for the extension.
2013-10-03 03:41:47 +02:00
Michael Friedrich bfa8cf789b compat: Add more host attributes, refactor contacts getter. 2013-10-02 21:09:13 +02:00
Michael Friedrich 582cafc866 db_ido: Add contact_addresses.
refs #4378
2013-10-01 17:16:36 +02:00
Michael Friedrich a71ccaefb9 db_ido: Add missing instance_id. 2013-10-01 17:01:51 +02:00
Michael Friedrich f2e413ba4a db_ido: Add {host,service}_{contacts,contactgroups}.
refs #4378
2013-10-01 16:44:33 +02:00
Michael Friedrich 1eb209e4f0 db_ido: Add contactnotifications.
refs #4768
2013-10-01 12:45:58 +02:00
Michael Friedrich 16de7f853b db_ido: Add eventhandlers.
refs #4768
2013-10-01 11:04:30 +02:00
Michael Friedrich 1ab5639c9a compatutility: Add MapExternalCommandType() used in db_ido.
refs #4768
2013-09-30 20:25:53 +02:00
Michael Friedrich 2699eb3682 db_ido: Add externalcommands.
command_type mapping missing.

refs #4768
2013-09-30 19:32:32 +02:00
Michael Friedrich 30323f410f db_ido: Add {host,service}checks.
refs #4768
2013-09-30 18:39:13 +02:00
Michael Friedrich d53a121beb db_ido: Add flappinghistory.
refs #4768
2013-09-30 17:36:14 +02:00
Michael Friedrich e954e38c5e db_ido: Add check_source. 2013-09-26 22:43:21 +02:00
Michael Friedrich f1c0ce3b23 db_ido: Add cleanup for history tables.
refs #4567
2013-09-26 17:23:53 +02:00
Michael Friedrich 1827e25d7a db_ido: Add logentries.
refs #4379
2013-09-25 19:47:23 +02:00
Michael Friedrich edf9dba1ec db_ido: Remove obsolete code. 2013-09-25 18:24:22 +02:00
Michael Friedrich 77abbc1556 db_ido: Add statehistory.
refs #4379
2013-09-25 18:01:08 +02:00
Michael Friedrich 0bae5e7abf db_ido: Refactor historical comments/downtimes.
fixes #4740
2013-09-25 16:59:08 +02:00
Michael Friedrich ce7bc00ce5 Fix .gitignore. 2013-09-25 13:09:50 +02:00
Michael Friedrich 59ab4297a3 db_ido: Fix log string. 2013-09-25 13:08:15 +02:00
Michael Friedrich 0b4c554711 Fix unused parameter, missing initialization. 2013-09-25 11:31:35 +02:00
Gunnar Beutner 033b06e66a Remove unused parameter. 2013-09-25 11:21:20 +02:00
Gunnar Beutner 7f97895965 Build fix. 2013-09-25 10:43:07 +02:00
Icinga 9783e23719 Rename IDO libraries. 2013-09-25 10:32:06 +02:00