Commit Graph

192 Commits

Author SHA1 Message Date
Gunnar Beutner 266b1754c7 Speed up type lookups
refs #7561
2014-11-07 12:39:32 +01:00
Michael Friedrich eeb6facdac Livestatus: Add 'cv_is_json' and encode CV arrays/dicts as json
refs #7560
2014-11-04 17:39: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 7559273359 Replace cJSON with YAJL
fixes #7452
2014-10-26 20:00:35 +01:00
Gunnar Beutner 739cb43289 Rename qstring.{cpp,hpp} to string.{cpp,hpp} 2014-10-19 14:52:07 +02:00
Michael Friedrich 648f47f931 Fix package builds after removal of icinga2-{en,dis}able-feature scripts
refs #7250
2014-10-14 20:25:53 +02:00
Gunnar Beutner d7d6d6096f Remove icinga2-enable-feature and icinga2-disable-feature
refs #7250
2014-10-14 18:35:52 +02:00
Gunnar Beutner 879684efcd Fix problems with PNP4Nagios
fixes #7268
2014-09-17 15:38:39 +02:00
Gunnar Beutner 46f26024dc Implement support for excluding files from unity builds
refs #7034
2014-09-01 09:19:21 +02:00
Gunnar Beutner eb091a87b0 Implement support for unity builds
fixes #7034
fixes #7035
2014-08-30 20:02:12 +02:00
Michael Friedrich 094e964660 Log warning message if 'set_if' argument cannot be evaluated properly
fixes #6968
2014-08-27 18:29:08 +02:00
Michael Friedrich 008f5803e7 Update manual test config for notifications
refs #6479
2014-08-05 16:37:30 +02:00
Michael Friedrich 5bea405c67 Move the Vagrant VM to https://github.com/Icinga/icinga-vagrant
fixes #5843
2014-06-13 22:39:17 +02:00
Michael Friedrich 627f96d85d Livestatus: Add 'host_name' and 'service_description' columns for NagVis
These columns are used for filtering and seem to be not documented nor
supported. Only added for compatibility reasons.

fixes #6474
2014-06-12 11:59:21 +02:00
Michael Friedrich 8d344ebb3a Livestatus: Fix 'OutputFormat:json' w/o space is valid (NagVis bug)
Fixes #6470
2014-06-11 22:53:56 +02:00
Gunnar Beutner 632026cd9f Rename C++ header files.
Fixes #6291
2014-05-25 16:27:14 +02:00
Gunnar Beutner 9c3e399188 Remove unnecessary includes.
Fixes #6189
2014-05-11 18:11:32 +02:00
Michael Friedrich 7a4fa25a49 Livestatus: Add 'check_source' to hosts table.
Fixes #6185
2014-05-10 21:57:01 +02:00
Michael Friedrich 97d51c4269 Livestatus: Add 'is_reachable' to hosts/services table.
Refs #6094
2014-05-10 20:37:09 +02:00
Gunnar Beutner 042e4270bf Fix an issue where expired Timer pointers caused other timers to be delayed.
Fixes #6179
2014-05-09 19:26:31 +02:00
Gunnar Beutner a8e6ae15f9 Disable timer unit tests.
Refs #6179
2014-05-09 14:50:44 +02:00
Gunnar Beutner 3981ad213d Fix the timer_scope test.
Refs #6107
2014-05-08 17:23:26 +02:00
Gunnar Beutner 45270f1bb8 Refactor the agent and cluster components.
Refs #6107
2014-05-08 09:13:04 +02:00
Michael Friedrich cf2bdecfeb Don't allow "managed" downtimes to be deleted by users.
Fixes #5980
2014-05-04 16:57:11 +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 74be8cd2d0 Implement summary macros e.g. $icinga.num_services_critical$.
Additional $icinga.uptime$ macro.

Fixes #2742
2014-05-03 02:08:36 +02:00
Michael Friedrich c4a8678963 Import test config for existing issues. 2014-05-02 01:03:03 +02:00
Gunnar Beutner f6ad6670e9 Fix the IDO test.
Refs #5223
2014-04-28 13:16:24 +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 5b359ea518 Add CompatUtility::GetModifiedAttributesList() for Livestatus.
Fixes #6042
2014-04-17 16:01:44 +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
Gunnar Beutner bb5e7561ed Fix unit tests.
Refs #5986
2014-04-09 11:40:17 +02:00
Michael Friedrich 9ab4b3dd16 Remove the 'Icinga' prefix for global constants.
Fixes #5960
2014-04-07 21:42:23 +02:00
Michael Friedrich 31d54b2760 Livestatus: Add application variables to status table.
Refs #5855
2014-04-04 17:45:59 +02:00
Michael Friedrich 5030bab4f3 Livestatus: Add command custom variables.
Refs #5855
2014-04-04 17:32:23 +02:00
Gunnar Beutner 8958d2f69f Implement the "import" keyword.
Refs #5869
2014-03-28 11:22:36 +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 28469ac284 Livestatus: Add missing test.
Refs #5812
2014-03-20 19:26:40 +01:00
Michael Friedrich 098dbe7506 Livestatus: Add endpoints table.
Refs #5636
Refs #5811
2014-03-20 18:53:08 +01:00
Gunnar Beutner 02fc3278c8 Implement missing operators for the Value class.
Fixes #5804
2014-03-20 13:02:31 +01:00
Michael Friedrich ce737ff2f3 Change copyright header (again).
Fixes #5424
2014-03-19 11:42:47 +01:00
Johannes Meyer de79c1232d Add verbosity levels to the vm-test-runner and add more debug output 2014-02-20 11:15:21 +01:00
Johannes Meyer f867029180 Let all vm-tests output filesystem paths when they work with them 2014-02-20 11:15:21 +01:00
Johannes Meyer 7c280bcfff Fix that the vm-test-runner is not using the new result attributes 2014-02-14 17:07:40 +01:00
Johannes Meyer b39b241591 Refactor output of all vm-tests 2014-02-14 16:05:58 +01:00
Johannes Meyer 86a87b7583 Fix external command tests and make livestatus a default in the vagrant vm 2014-02-14 11:32:46 +01:00
Johannes Meyer a6a13ab86c Fix invalid testing configuration 2014-02-05 14:22:58 +01:00
Johannes Meyer 862f61d93b Fix the vm-test runner's error handling 2014-02-05 14:22:57 +01:00
Johannes Meyer a7e237640f Fix external command tests 2014-02-05 14:22:57 +01:00
Johannes Meyer 6bc1f3cf8d Fix test-vm bootstrapping 2014-02-05 14:22:57 +01:00
Johannes Meyer 876587d727 Merge branch 'feature/test-external-commands-5345' into next
resolves #5345
2014-01-20 17:21:19 +01:00
Michael Friedrich 555d72150a Update copyright header.
Fixes #5424
2014-01-09 00:32:11 +01:00
Johannes Meyer 1022adf172 Add nsca-ng test
resolves #5392
2013-12-20 15:32:45 +01:00
Johannes Meyer a4ba11bd13 Add eventhandler test
resolves #5372
2013-12-20 09:59:12 +01:00
Michael Friedrich 7fa9188df8 Add String::Contains().
Refs #5355
2013-12-17 18:34:05 +01:00
Gunnar Beutner 9bf44b9b1d Fix: Missing warn/crit/min/max values are incorrectly set to 0.
Fixes #5358
2013-12-17 14:47:19 +01:00
Johannes Meyer ba4286b549 Drop dummy test and fix livestatus utility class
refs #5223
2013-12-16 15:39:31 +01:00
Johannes Meyer 6832625bcc Add external commands test [WIP]
refs #5223
2013-12-16 15:37:38 +01:00
Johannes Meyer 02d24200bb Refactor IDO query code
refs #5223
2013-12-16 15:37:38 +01:00
Johannes Meyer d5dc65a752 Add check to the statusdata test for regular file updates
refs #5223
2013-12-16 15:37:38 +01:00
Johannes Meyer f8887c2f89 Update readme file
refs #5223
2013-12-16 15:37:38 +01:00
Johannes Meyer 6eb169b215 Fix vm bootstrapping
refs #5223
2013-12-16 15:37:38 +01:00
Johannes Meyer a443e4a4fc Refactor vm bootstrapping
refs #5223
2013-12-16 15:37:38 +01:00
Johannes Meyer 42687a3616 Add --output switch to the test runner
refs #5223
2013-12-16 15:37:37 +01:00
Johannes Meyer 8a9c6c7342 Add checkresult tests
refs #5223
2013-12-16 15:37:37 +01:00
Johannes Meyer 45e5d34ec4 Let the IDO tests take reschedule actions into account
refs #5223
2013-12-16 15:37:37 +01:00
Johannes Meyer c1d31179ef Fix command execution over SSH
refs #5223
2013-12-16 15:37:37 +01:00
Johannes Meyer 7f64e58c32 Make setup output quiet
refs #5223
2013-12-16 15:37:37 +01:00
Johannes Meyer 17e36fe1cc Add IDO tests
refs #5223
2013-12-16 15:37:37 +01:00
Johannes Meyer 3b04b4dcf5 Add file existence tests
refs #5223
2013-12-16 15:37:37 +01:00
Johannes Meyer cd05686a70 Add state tests
refs #5223
2013-12-16 15:37:37 +01:00
Johannes Meyer 518d0bfd10 Fix settings section in configuration file
refs #5223
2013-12-16 15:37:37 +01:00
Johannes Meyer 9d87ce571b Add configuration aware test runner
refs #5223
2013-12-16 15:37:37 +01:00
Johannes Meyer 9229aa4948 Merge branch 'feature/Array-insert-functionality' into next
resolves #5320
2013-12-12 13:53:27 +01:00
Gunnar Beutner aa4c2b9542 Add unit test for Stream::ReadLine.
Fixes #5077
2013-12-05 09:57:12 +01:00
Gunnar Beutner f05858d3ad Avoid unnecessary copies when iterating over dictionaries.
Refs #5246
2013-12-02 11:07:38 +01:00
Gunnar Beutner e368c43081 Remove unused file.
Refs #4635
2013-11-26 18:34:17 +01:00
Gunnar Beutner 378b0bca03 Add test script for Jenkins.
Refs #4635
2013-11-26 18:34:17 +01:00
Gunnar Beutner 0f28e55925 Implement support for non-standard "multi" performance data.
Refs #5082
2013-11-17 03:29:43 +01:00
Michael Friedrich e6128a0a96 Livestatus: Fix invalid livestatus query crashes Icinga 2.
Fixes #5076
2013-11-15 10:56:14 +01:00
Gunnar Beutner 2dacc047ec Remove quotes from perfdata keys.
Fixes #5031
2013-11-13 15:43:59 +01:00
Gunnar Beutner 6ccf4497f2 Fix unit tests on Windows.
Fixes #5068
2013-11-13 09:08:17 +01:00
Gunnar Beutner 4f1cb83f31 Fix Convert::ToString.
Fixes #5054
2013-11-11 13:04:18 +01:00
Gunnar Beutner c3fde98677 Fix compilation on openSUSE 12.3.
Fixes #5038
2013-11-09 08:26:53 +01:00
Gunnar Beutner 49435b80a3 Fix unit tests.
Refs #5036
2013-11-08 21:56:42 +01:00
Gunnar Beutner ba6f64a0ec Remove GetType().
Refs #5036
2013-11-08 21:37:21 +01:00
Gunnar Beutner a84536bea3 Implement serializer support for arbitrary classes.
Fixes #5024
2013-11-08 14:08:59 +01:00
Gunnar Beutner ceb0a54baf Implement support for performance data unit prefixes.
Fixes #5026
2013-11-08 08:39:05 +01:00
Gunnar Beutner e246170374 Fix unit test name.
Refs #2710
2013-11-07 18:21:55 +01:00
Gunnar Beutner 2af388e4ef Implement performance data parser.
Refs #2710
2013-11-07 16:07:52 +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
Michael Friedrich 90cf04f088 Additional fixes for log table including test queries.
Refs #4433
2013-11-06 18:45:22 +01:00
Michael Friedrich 835e395fd6 Livestatus: Add statehist table.
Fixes #4434
2013-11-06 15:29:04 +01:00
Michael Friedrich 74f9106243 Implement regex match attribute filters (~, ~~)
Requires the boost regex library.

Refs #5007

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2013-11-05 17:13:40 +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