Michael Friedrich
a238613fdc
Merge pull request #5825 from Icinga/feature/boost-assign
...
Replace boost::assign::list_of with initializer lists
2017-11-30 21:20:46 +01:00
Gunnar Beutner
83f17b5bfa
Replace boost::assign::list_of with initializer lists
2017-11-30 18:09:38 +01:00
Gunnar Beutner
df8266631d
Replace boost::tuple with std::tuple
2017-11-30 17:41:02 +01:00
Gunnar Beutner
d5961bb76c
Re-implement WrapFunction() using C++11 features
2017-11-29 11:53:45 +01:00
Gunnar Beutner
858873b940
Replace boost::bind/boost::function with std::bind/std::function
2017-11-27 15:15:11 +01:00
Jean Flach
34651553b2
Add additional tests for flapping
...
refs #4982
2017-11-02 14:38:17 +01:00
Jean Flach
a21ffd6fe4
Fix flapping
...
Re-implement flapping following the 'old way' of just observing the last
20 stage changes.
refs #4982
2017-10-24 15:54:05 +02:00
Michael Friedrich
29b7971fef
Merge pull request #5624 from mcktr/mcktr/fix/missing-include-statements
...
Fixed missing include statement in unit test
2017-10-02 13:27:04 +02:00
Michael
2d036e6886
Fixed missing include statement in unit test
...
This adds the missing iostream include to the notification unit test.
refs #5613
2017-09-26 22:01:07 +02:00
Michael
631d1e85fc
Fixed missing include statement in unit tests
...
refs #5613
2017-09-25 01:07:50 +02:00
Michael Friedrich
d74b15d640
Move Base64 class into libbase
...
refs #5538
2017-09-11 16:51:13 +02:00
Michael Friedrich
08486a0f7c
Fix tests for URL formatting changes
...
refs #5558
2017-09-07 11:26:19 +02:00
Michael Friedrich
79dcb789c2
Move PerfdataValue() class into base library
...
This is required for libremote and ApiListener stats in #5133
2017-05-15 16:32:29 +02:00
Michael Friedrich
b7caf0820d
Ensure that *.icinga.com is used everywhere
...
fixes #13897
fixes #13277
2017-01-10 17:19:12 +01:00
Michael Friedrich
f8e6d2d603
Add unit test for notification state/type filters
...
fixes #13225
2016-11-17 14:36:55 +01:00
Michael Friedrich
7e0c48643b
Fix Flapping{Start,End} notifications in SOFT states or downtimes
...
fixes #12560
fixes #12892
2016-11-10 14:16:02 +01:00
Jean Flach
d264a0dab8
Fix Url Query formatting
...
fixes #12883
2016-10-10 16:16:52 +02:00
Gunnar Beutner
1dc4ab367e
Fix: Unit tests randomly crash after the tests have completed
...
fixes #12610
2016-09-07 08:25:53 +02:00
Gunnar Beutner
6d4e305fe3
Add more unit tests
...
fixes #12530
2016-08-30 09:10:00 +02:00
Gunnar Beutner
903db81fe0
Make sure that libmethods is automatically loaded even when not using the ITL
...
fixes #12578
2016-08-28 17:03:08 +02:00
Gunnar Beutner
20174a0baa
Fix livestatus unit tests on Linux/Windows
...
refs #8806
2016-08-28 15:14:49 +02:00
Gunnar Beutner
4876a78ab5
Remove unnecessary imports from unit test config
...
refs #12575
2016-08-28 10:41:46 +02:00
Gunnar Beutner
2c8be90232
Fix livestatus unit tests on OS X
...
fixes #8806
2016-08-28 08:18:40 +02:00
Gunnar Beutner
288413f046
Replace BOOST_FOREACH with range-based for loops
...
fixes #12538
2016-08-25 06:46:17 +02:00
Gunnar Beutner
ae1ab5f865
Implement unit tests for state changes
...
fixes #12530
2016-08-24 19:45:52 +02:00
Gunnar Beutner
827b230467
Use the "plugin-check-command" template in the livestatus unit tests
...
refs #12338
2016-08-10 08:37:30 +02:00
Gunnar Beutner
039461e218
Fix unit tests for Convert::ToString
...
refs #11483
2016-06-16 15:32:29 +02:00
Gunnar Beutner
99735a5b2d
Fix dependencies for the unit tests
...
fixes #11832
2016-05-24 13:49:37 +02:00
Gunnar Beutner
fc889eb9ad
Revert "Implement unit tests for the time period parser"
...
This reverts commit 1246d7dda3
.
refs #11146
2016-05-11 18:12:20 +02:00
Adam James
1246d7dda3
Implement unit tests for the time period parser
...
fixes #11146
2016-05-11 09:23:39 +02:00
Gunnar Beutner
112f024810
Build fix for GCC
...
refs #9839
2016-03-29 14:52:48 +02:00
Gunnar Beutner
599929b0f6
Update copyright headers for 2016
2016-01-12 08:29:59 +01:00
Jean Flach
957cf3169f
Replace boost-base64 with an openssl implementation
...
Also add unit tests
fixes #10714
2016-01-11 15:35:20 +01:00
Michael Friedrich
3d4e48aa12
Livestatus: Fix "class" filter for log table
...
fixes #10449
2015-11-26 19:15:54 +01:00
Gunnar Beutner
c9f175790f
Fix unit tests for livestatus
...
refs #10643
2015-11-19 20:25:10 +01:00
Gunnar Beutner
3505ca3c16
Fix race condition in the ConfigItem class
...
fixes #10643
2015-11-19 19:38:49 +01:00
Michael Friedrich
5d46f661ea
Implement 'console' cli command using the API
...
fixes #10387
2015-11-04 16:01:06 +01:00
Michael Friedrich
d618762dad
Export original attributes in DB IDO and Livestatus
...
fixes #10392
2015-10-22 15:49:42 +02:00
Gunnar Beutner
425a1a0166
Implement API permissions
...
fixes #9088
2015-09-28 14:30:46 +02:00
Gunnar Beutner
e19a36c659
Fix parser error when using new-lines in dictionaries
...
fixes #10204
2015-09-23 16:37:21 +02:00
Jean Flach
6571ffc2c8
Update url parser
...
fixes #10039
2015-09-04 14:40:27 +02:00
Jean Flach
f1a1dfb26e
Update use of String::Trim()
...
fixes #9704
2015-08-27 18:06:20 +02:00
Gunnar Beutner
071d2f18fb
Rename DynamicObject/DynamicType to ConfigObject/ConfigType
...
fixes #9914
2015-08-15 20:40:41 +02:00
Gunnar Beutner
e2290d5012
Implement support for unregistering objects
...
refs #9101
2015-08-15 20:07:11 +02:00
Paul Richards
08b1808397
Fix build error when using boost 1.59
...
fixes #9814
Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-08-03 09:03:05 +02:00
Jean Flach
2414dee602
Update url parser
...
fixes #9768
2015-07-29 13:14:43 +02:00
Jean-Marcel Flach
0130f2e79a
Rename base-url test to remote-url
...
refs #9647
2015-07-16 14:37:22 +02:00
Jean-Marcel Flach
b9a4a64249
Move url handler to /lib/remote
...
fixes #9647
2015-07-16 13:35:32 +02:00
Jean-Marcel Flach
43e482f4ed
Redo tests
...
refs #9470
2015-07-10 14:54:46 +02:00
Jean-Marcel Flach
4b1dfaf4e8
Add additional tests for urls
...
refs #9470
2015-07-10 14:08:35 +02:00
Jean-Marcel Flach
65227e311b
Fix path interpretion in URL parser
...
The URL parser incorrectly used to interpret the path
"/" as a path "/" instead of as empty.
Test cases were added.
refs #9470
2015-07-08 13:14:05 +02:00
Jean-Marcel Flach
a98d2f585d
Implement URL parser
...
fixes #9470
2015-07-07 15:33:19 +02:00
Michael Friedrich
14f5986aa5
Implement the ApiUser object type
...
Hide password in GetPassword() and add CheckPassword().
Includes basic unit tests.
refs #9471
2015-06-24 14:28:52 +02:00
Gunnar Beutner
ec7224e3ed
Generate C++ code for type validators
...
fixes #7709
fixes #8867
2015-03-27 07:59:27 +01:00
Gunnar Beutner
3e08f2e0b5
Make order for deferred initializers deterministic
...
refs #8791
2015-03-18 13:24:31 +01:00
Gunnar Beutner
6c96d5bc98
Clean up the start-up process a bit
...
fixes #8791
2015-03-18 11:14:51 +01:00
Louis Sautier
afc38762ef
Fix check_disk default thresholds and document the change of unit
...
fixes #8673
Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
2015-03-10 23:49:23 +01:00
Jason Young
faf6ce1a5f
Update PerfdataValue::Parse to ignore invalid warn, crit, min, and max values
...
... instead of generating exception so that metric values can
still be passed to the graphing backend.
Also update icinga-perfdata tests to reflect these changes.
refs #5043
Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-03-02 13:52:41 +01:00
Michael Friedrich
2a9ceffea9
Tests: Add simple Livestatus query tests
...
More to come.
refs #8486
2015-02-20 14:37:54 +01:00
Gunnar Beutner
a76f816623
Implement the 'continue' and 'break' keywords
...
fixes #8394
2015-02-19 12:57:52 +01:00
Michael Friedrich
70c750250c
Livestatus: Add GroupBy tables: hostsbygroup, servicesbygroup, servicesbyhostgroup
...
fixes #7361
Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
2015-02-18 17:51:26 +01:00
Gunnar Beutner
9e936cbea4
Fix unit tests for the Stream class
...
refs #6109
2015-02-14 17:40:29 +01:00
Gunnar Beutner
f097e48889
Don't use separate threads for each ApiClient object
...
fixes #6109
2015-02-14 16:34:36 +01:00
Michael Friedrich
24852e05c7
Move ValidateMacroString into the MacroProcessor class
...
refs #7311
2015-02-11 16:14:59 +01:00
Michael Friedrich
8ca57cba03
Add macro config validator for command args, env, custom attr, perfdata templates
...
fixes #7311
2015-02-11 15:32:10 +01:00
Gunnar Beutner
e3dcc8a610
Implement a unit test for nullary lambdas
...
fixes #7805
2015-02-03 14:02:32 +01:00
Gunnar Beutner
3b3a65c9ae
Document operator precedence
...
fixes #7816
2015-02-02 12:48:20 +01:00
Michael Friedrich
78bfd0204c
Update copyright year
2015-01-22 12:00:23 +01:00
Michael Friedrich
6ae9685cee
Fix sending notifications for volatile checks on OK->OK changes
...
volatile checks make state changes behave like HARD state changes.
Though OK -> OK transitions must not be notified.
Increased log information for notifications too.
fixes #8063
2015-01-08 16:20:44 +01:00
Gunnar Beutner
093be8b5c9
Allow side-effect-free expressions in a limited number of cases
...
refs #6570
2015-01-08 10:33:45 +01:00
Gunnar Beutner
54389cf324
Fix a compiler warning
...
refs #8164
2015-01-07 15:00:20 +01:00
Gunnar Beutner
25d639d702
Add unit tests for escape sequences
...
refs #8164
2015-01-07 13:26:10 +01:00
Gunnar Beutner
0724c0c472
Update unit tests to use the new variable syntax
...
refs #8074
2014-12-16 10:37:21 +01:00
Gunnar Beutner
d72bd4fec2
Add another unit test for expressions
...
refs #8074
2014-12-15 17:23:18 +01:00
Gunnar Beutner
b9831f0be4
Add unit tests for the "var" keyword
...
refs #8074
2014-12-15 16:42:34 +01:00
Gunnar Beutner
dcaad50221
Fix unit test
...
refs #8074
2014-12-15 15:12:24 +01:00
Gunnar Beutner
b40e95d9b6
Only implicitly convert strings to indexers
...
refs #8074
2014-12-14 11:55:44 +01:00
Gunnar Beutner
7ffa3dfb0b
Remove obsolete unit test
...
refs #8040
2014-12-13 13:54:24 +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
Gunnar Beutner
26c5256c05
Rename VMFrame to ScriptFrame in the unit tests
...
refs #8065
2014-12-12 15:39:15 +01:00
Gunnar Beutner
aa38dde1fc
Implement prototype functions
...
fixes #8065
2014-12-12 15:22:37 +01:00
Gunnar Beutner
b016003eb5
Implement string indexers
...
fixes #8062
2014-12-12 06:54:38 +01:00
Gunnar Beutner
5324b99fd0
Fix unit tests
...
refs #7883
2014-12-11 13:25:06 +01:00
Gunnar Beutner
2720333d6e
Fix missing location information for included files
...
fixes #7927
2014-12-10 15:06:09 +01:00
Gunnar Beutner
d88856a994
Fix failing unit tests
...
refs #8043
2014-12-10 11:25:20 +01:00
Gunnar Beutner
c381e15b5a
Remove obsolete unit tests
...
refs #8043
2014-12-10 10:44:15 +01:00
Gunnar Beutner
9e01f6d8b9
Fix operator precedence for %, |, ^, &, in and !in in combination with <
...
fixes #8029
2014-12-09 20:51:19 +01:00
Gunnar Beutner
52fb177461
Implement more unit tests for typeof()
...
refs #8028
2014-12-09 16:46:29 +01:00
Gunnar Beutner
37ffda131e
Add unit tests for the typeof() operator
...
refs #8002
2014-12-08 11:03:50 +01:00
Michael Friedrich
b81035e352
Livestatus: Fix missing host downtimes/comments
...
fixes #7064
2014-12-05 16:32:14 +01:00
Gunnar Beutner
7d93788650
Fix crash in the unit tests
...
fixes #7769
2014-12-04 21:50:22 +01:00
Gunnar Beutner
a5c206cbe2
Fix problem with macro arguments which are not separated by whitespace
...
fixes #7314
2014-12-01 15:53:23 +01:00
Gunnar Beutner
d013df06f7
Fix the Expression unit tests
...
refs #7822
2014-11-28 07:31:37 +01:00
Gunnar Beutner
9dfa3d22d4
Implement support for arrays in command arguments
...
fixes #6709
2014-11-27 13:24:07 +01:00
Gunnar Beutner
c220a99f2d
Implicitly convert Number argument to string for operator +
...
fixes #7823
2014-11-25 12:33:08 +01:00
Gunnar Beutner
c5b5eccf49
Add some more missing unit tests
...
refs #7805
2014-11-24 01:17:54 +01:00
Gunnar Beutner
03d712e96d
Add missing unit tests to the project file
...
refs #7805
2014-11-24 01:07:00 +01:00
Gunnar Beutner
d3a6277fec
Fix the __return keyword
...
fixes #7811
2014-11-24 00:07:29 +01:00
Gunnar Beutner
c29d6a99ac
Fix unary minus operator
...
fixes #7815
2014-11-23 23:19:46 +01:00
Gunnar Beutner
d366dd8e30
Fix the reduce/reduce conflicts
...
refs #7800
2014-11-23 15:25:25 +01:00
Gunnar Beutner
8d0ddb7c8c
Implement more unit tests
...
refs #7805
2014-11-23 12:35:13 +01:00
Gunnar Beutner
e8e4268a28
Improve test coverage for the Convert class
...
refs #7805
2014-11-23 09:58:33 +01:00
Gunnar Beutner
81acd34f52
Implement unit tests for the config parser
...
refs #7805
2014-11-23 09:54:08 +01:00
Gunnar Beutner
16cf274efc
Improve test coverage for the array class
2014-11-23 09:50:11 +01:00
Gunnar Beutner
f592a13481
Make sure all threads are dead before calling fork()
...
fixes #7653
2014-11-12 21:27:36 +01:00
Gunnar Beutner
02c559eff9
Fix crash in the unit tests
...
fixes #7648
2014-11-12 09:33:13 +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
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