Gunnar Beutner
3032cf8100
Make it easier to call AExpression::Dump from GDB.
...
Refs #5846
2014-03-24 09:27:46 +01:00
Gunnar Beutner
db2f1b3398
Add missing brace.
...
Refs #5846
2014-03-24 09:27:30 +01:00
Gunnar Beutner
fd1aaa1997
Add missing locks.
...
Refs #5846
2014-03-24 09:15:45 +01:00
Gunnar Beutner
7086b44d3a
Fix variable scoping.
...
Refs #5846
2014-03-24 09:10:37 +01:00
Gunnar Beutner
1aca29afd2
Clean up the +=, -=, *= and /= operators.
...
Refs #5846
2014-03-24 09:06:16 +01:00
Gunnar Beutner
9adc63737a
Allow rterms as object names.
...
Refs #5846
2014-03-23 22:41:37 +01:00
Gunnar Beutner
ddc548bb5d
Fix AExpression::ExtractPath.
...
Refs #5846
2014-03-23 19:58:24 +01:00
Gunnar Beutner
27955843c0
Move Addr2Line function to the Utility class.
...
Refs #5846
2014-03-23 19:39:25 +01:00
Gunnar Beutner
09f1c46714
Implement the exit() script function.
...
Refs #5846
2014-03-23 17:26:36 +01:00
Gunnar Beutner
d23078d6c4
Make sure +=, -=, *= and /= behave like they did before.
...
Refs #5846
2014-03-23 17:26:31 +01:00
Gunnar Beutner
aacc699dd4
Refactor the config parser's AST.
...
Refs #5846
2014-03-23 11:27:40 +01:00
Gunnar Beutner
67d8bc219e
Clean up the AExpression class.
...
Refs #5846
2014-03-22 10:29:45 +01:00
Gunnar Beutner
24e029bdb0
Allow values as top-level statements.
...
Refs #5846
2014-03-22 09:50:44 +01:00
Gunnar Beutner
ddbbd42c4b
Implement the log() function.
...
Refs #5846
2014-03-22 09:47:29 +01:00
Gunnar Beutner
3afad7a96d
Implement comparison operators for operands of different types.
...
Refs #5846
2014-03-22 08:40:35 +01:00
Gunnar Beutner
2a6a75d52e
Improve error messages for exceptions in AExpressions.
...
Refs #5846
2014-03-22 08:40:09 +01:00
Gunnar Beutner
3c067e9547
Don't show stack traces for user errors.
...
Refs #5846
2014-03-22 08:38:46 +01:00
Michael Friedrich
23c47dd430
Make host 'check' attribute available in legacy interfaces.
...
Fixes #5764
2014-03-21 17:57:24 +01:00
Gunnar Beutner
c9590d5183
Fix location messages.
...
Refs #5825
2014-03-21 16:01:32 +01:00
Gunnar Beutner
c0b10a8245
Make config error messages friendler.
...
Refs #5825
2014-03-21 15:58:13 +01:00
Gunnar Beutner
c286c25183
Show additional lines for config errors.
...
Refs #5825
2014-03-21 15:51:55 +01:00
Gunnar Beutner
0b90444dd8
Build fix.
2014-03-21 15:41:00 +01:00
Gunnar Beutner
dde483d7a8
Make config error messages more awesome.
...
Refs #5825
2014-03-21 15:39:52 +01:00
Gunnar Beutner
87e4b24686
Add line number info to duplicate object error message.
...
Refs #5825
2014-03-21 14:48:18 +01:00
Gunnar Beutner
7d7c8e8ec9
Fix path names in DebugInfo objects.
...
Refs #5825
2014-03-21 14:45:01 +01:00
Gunnar Beutner
8629071392
Improve line number information.
...
Fixes #5825
2014-03-21 10:28:58 +01:00
Michael Friedrich
f3f157d60d
Set check source only on local instance (empty authority).
...
Fixes #5824
Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2014-03-21 10:18:11 +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
Gunnar Beutner
0c7d53503d
Resolve relative paths for StackTrace::Addr2Line.
...
Fixes #5792
2014-03-21 08:44:55 +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
Gunnar Beutner
1ea91ef49f
Windows build fix.
2014-03-20 15:53:45 +01:00
Gunnar Beutner
4d9cd0070c
Add missing #include.
2014-03-20 15:41:37 +01:00
Gunnar Beutner
95bf7ca560
Make duplicate object definitions an error.
...
Fixes #3638
2014-03-20 15:38:29 +01:00
Gunnar Beutner
3ad233400e
Make accessing undefined variables an error (instead of a warning).
...
Fixes #5809
2014-03-20 15:31:48 +01:00
Gunnar Beutner
cb0c1b01d5
Add special cases for Array and Dictionary in Value::GetTypeName().
...
Refs #5804
2014-03-20 14:28:29 +01:00
Gunnar Beutner
012c0caeec
Implement union() and intersection() functions.
...
Fixes #5801
2014-03-20 14:25:40 +01:00
Gunnar Beutner
8e472211cb
Add missing file.
2014-03-20 13:45:10 +01:00
Gunnar Beutner
02fc3278c8
Implement missing operators for the Value class.
...
Fixes #5804
2014-03-20 13:02:31 +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
f6067d357d
Set check source to node name as authority, if empty.
...
Fixes #5805
2014-03-20 10:32:52 +01:00
Michael Friedrich
5ec2349f64
Clear sticky ack on soft recovery, fix sticky=2, normal=1|0.
...
Fixes #5365
2014-03-19 23:08:44 +01:00
Michael Friedrich
bcc17be2ca
Fix missing lock and clear ack comments in RemoveHostAcknowledgement().
2014-03-19 22:08:28 +01:00
Michael Friedrich
1d32c5b2d3
Add --no-validate option and skip duplicate validation on (re)start.
...
Fixes #5800
2014-03-19 20:59:18 +01:00
Gunnar Beutner
46d7cf3d6a
Implement len() and the operators >, >=, < and <=.
...
Refs #5789
2014-03-19 13:25:06 +01:00
Gunnar Beutner
700cc43770
Update documentation.
...
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner
3383951791
Implement regex() and match() functions.
...
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner
124fa9ebc1
Make braces around constant expressions optional.
...
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner
f871758502
Fix the !in operator.
...
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner
ec0557afea
Implement additional operators: &&, ||, in and !in.
...
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner
e21e2ef707
Make Value operators const where possible.
...
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner
e0ad30a9c6
Allow arrays as operands in constant expressions.
...
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner
caad7a7973
Implement the 'apply template' directive.
...
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner
3587dbbd13
Implement support for local variables in AExpressions.
...
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner
04b8724cb8
Implement == and != operators for AExpressions.
...
Refs #5789
2014-03-19 12:46:23 +01:00
Michael Friedrich
ce737ff2f3
Change copyright header (again).
...
Fixes #5424
2014-03-19 11:42:47 +01:00
Michael Friedrich
ac35eadc8d
Empty command string on CHANGE_{HOST,SERVICE}_EVENTHANDLER should disable event handlers.
...
Fixes #5670
2014-03-17 18:52:23 +01:00
Gunnar Beutner
5a7d56f4a3
Avoid unnecessary async callback.
...
Refs #5748
2014-03-17 09:09:55 +01:00
Gunnar Beutner
4d6088bee1
Stop checks during shutdown.
...
Fixes #5784
2014-03-17 09:04:19 +01:00
Gunnar Beutner
ecce27f9da
Fix null pointer dereference in Timer::AdjustTimers.
...
Fixes #5783
2014-03-17 08:41:53 +01:00
Michael Friedrich
2d38f68bd6
Fix RandomCheckTask result processing.
...
Fixes #5780
2014-03-16 22:26:17 +01:00
Gerd von Egidy
40b88422d2
Output child pid to debug log when forking.
...
Fixes #5756
Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2014-03-14 13:52:04 +01:00
Gunnar Beutner
737675387d
Windows build fix.
2014-03-14 13:23:04 +01:00
Gunnar Beutner
3556f9afde
Use more threads for Process I/O.
...
Refs #5748
2014-03-14 13:21:11 +01:00
Gunnar Beutner
5252041c6b
Fix Process timeouts.
...
Fixes #5759
2014-03-14 12:16:49 +01:00
Michael Friedrich
2f7881736e
Remove comment when clearing acknowledgement.
...
Fixes #5366
2014-03-13 16:43:32 +01:00
Gunnar Beutner
74209bde40
Reschedule services before running checks.
...
Fixes #5754
2014-03-13 14:13:55 +01:00
Gunnar Beutner
51dc2bea2d
Fix: Plugin-based checks are broken.
...
Fixes #5751
2014-03-13 12:05:27 +01:00
Michael Friedrich
76001c70e3
Build fix.
2014-03-12 17:51:42 +01:00
Michael Friedrich
1279d27720
Fix enable_perfdata attribute in compat features.
...
Fixes #5693
2014-03-12 15:21:56 +01:00
Gunnar Beutner
f30517a9e2
Build fix.
2014-03-12 13:19:06 +01:00
Gunnar Beutner
f3c085df44
Call Process callbacks asynchronously.
...
Refs #5748
2014-03-12 11:06:17 +01:00
Gunnar Beutner
f391a32487
Decrease the maximum number of threads allowed per ThreadPool.
...
Refs #5748
2014-03-12 10:52:07 +01:00
Gunnar Beutner
bfc5d2a4be
Use fewer threads for plugin-based checks.
...
Fixes #5748
2014-03-12 10:25:06 +01:00
Gunnar Beutner
51c7093e13
Fix initial check interval.
...
Refs #5716
2014-03-11 15:21:35 +01:00
Michael Friedrich
2b6529c424
Fix {Host,Service,User}Group::{Add,Remove}Member isn't thread-safe.
...
Fixes #5699
2014-03-11 10:40:37 +01:00
Michael Friedrich
09d6b6fefa
Health Check: Sanitize perfdata.
...
Refs #5664
2014-03-10 18:01:26 +01:00
Gunnar Beutner
a124bed5c0
Don't send notifications for the initial state change.
...
Fixes #5736
2014-03-10 13:54:16 +01:00
Gunnar Beutner
e693486dae
Fix file descriptor leak in StackTracce::Addr2Line.
...
Fixes #5735
2014-03-10 13:38:36 +01:00
Gunnar Beutner
a8a955ff9c
Fix $ escaping in macros.
...
Fixes #5378
2014-03-10 09:41:48 +01:00
Gunnar Beutner
bd37b9b62f
Fix: Check attempt counter is invalid.
...
Fixes #5734
2014-03-10 08:56:31 +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
Michael Friedrich
14d8f8a12e
Documentation: Add Domains.
...
Fixes #5288
2014-03-07 15:21:57 +01:00
Gunnar Beutner
bf1d9bf6ed
Fix inline service dependencies.
...
Fixes #5726
2014-03-07 12:14:28 +01:00
Gunnar Beutner
f5b4e951f0
Fix deadlock in Service::RemoveAllComments().
...
Fixes #5721
2014-03-07 09:53:47 +01:00
Gunnar Beutner
7e690cc7b8
Fix: Pending services are being checked with the retry interval.
...
Fixes #5716
2014-03-06 11:39:32 +01:00
Gunnar Beutner
f8a2ddc464
Include source file name and line numbers in stack traces.
...
Fixes #5715
2014-03-06 10:59:13 +01:00
Gunnar Beutner
ac3cbfe801
Clear servicedependencies table after reconnect.
...
Fixes #5714
2014-03-06 09:37:58 +01:00
Gunnar Beutner
979d6cc97a
Fix: Host groups in objects.cache aren't working properly.
...
Fixes #5632
2014-03-05 12:07:53 +01:00
Gunnar Beutner
22d53cf3b5
Implement a new object type for service dependencies.
...
Fixes #2799
2014-03-05 09:57:29 +01:00
Michael Friedrich
f890a7ae8c
Refactor status/perfdata stats registry.
...
Fixes #5622
2014-02-20 15:25:58 +01:00
Gunnar Beutner
9bdf2f4766
Event handlers should be run when services are in a soft state.
...
Fixes #5681
2014-02-20 10:35:58 +01:00
Michael Friedrich
d3cdbb5156
Implement IcingaStatusWriter object dumping local and feature stats.
...
Refactored the cluster listener health check too.
Refs #5622
Refs #5444
2014-02-17 18:51:16 +01:00
Michael Friedrich
84be5e3413
Implement StatsFunction Registry for features.
...
Refs #5622
2014-02-17 17:53:41 +01:00
Gunnar Beutner
8055eaa8b8
Revert "Set stack size rlimit."
...
This reverts commit 36c0af7a85
.
2014-02-14 12:28:21 +01:00
Gunnar Beutner
36c0af7a85
Set stack size rlimit.
...
Fixes #5659
2014-02-14 10:44:28 +01:00
Michael Friedrich
48a06d3335
Add {active,passive}_checks_{1,5,15}min to icinga check perfdata.
...
Fixes #5649
2014-02-13 12:06:32 +01:00
Gunnar Beutner
25dc86881a
Make script variables constant.
...
Fixes #5446
2014-02-12 11:51:50 +01:00
Gunnar Beutner
b968850bc1
Make Visual Studio 2010 happy (maybe).
...
Fixes #5637
2014-02-12 10:16:52 +01:00
Michael Friedrich
3246ee602b
Move ClusterCheckTask into the cluster component.
...
Refs #5438
2014-02-12 09:33:04 +01:00
Michael Friedrich
95f7de123e
Move Check Stats into CIB.
...
Fixes #5617
2014-02-10 14:59:56 +01:00
Gunnar Beutner
663f72300b
Fix validation for the "authorities" attribute.
...
Fixes #5593
2014-02-10 08:50:09 +01:00
Michael Friedrich
e534f9bc1b
Add Cluster Health Check.
...
Fixes #5438
2014-02-07 15:19:37 +01:00
Michael Friedrich
7d9dc1a36b
Fix including a non-existing directory exception requires path information.
...
Fixes #5618
2014-02-07 13:23:26 +01:00
Michael Friedrich
11c42b1483
icinga check: add *_execution_time, num_{services,hosts}_* state/pending/flap/downtime/ack as perfdata.
...
Fixes #5440
2014-02-07 11:47: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
Michael Friedrich
1e0a11c7f2
Add IcingaNodeName script variable, set as check source (WIP).
...
Fixes #5471
Fixes #5473
2014-02-06 15:38:06 +01:00
Gunnar Beutner
984ffb7421
Fix memory leak in Utility::GlobRecursive.
...
Fixes #5604
2014-02-05 13:53:56 +01:00
Gunnar Beutner
c818d94d93
Fix race condition in the config validator.
...
Fixes #5602
2014-02-05 12:00:37 +01:00
Michael Friedrich
1728095c53
Fix ProcessHostCheckResult error message.
...
Fixes #5601
2014-02-04 15:59:08 +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
Gunnar Beutner
238d90401c
Implement an option to disable use of vfork().
...
Fixes #5583
2014-01-31 08:44:00 +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
Gunnar Beutner
95559cb329
Fix: PROCESS_HOST_CHECK_RESULT misinterprets the given status code.
...
Fixes #5462
2014-01-28 14:44:06 +01:00
Gunnar Beutner
f9e8e204f9
Fix: Crash when state file is invalid.
...
Fixes #5361
2014-01-28 14:33:21 +01:00
Gunnar Beutner
e0596f2d33
Fix UNIX sockets on FreeBSD.
...
Fixes #5567
2014-01-28 09:58:19 +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
f8e6673123
Implement missing host/servicegroup commands
...
fixes #5504
2014-01-20 16:58:18 +01:00
Johannes Meyer
f11ed8a684
Implement ENABLE_HOSTGROUP_PASSIVE_HOST_CHECKS
...
fixes #5501
fixes #5502
fixes #5503
2014-01-20 16:04:02 +01:00
Johannes Meyer
8a25bff8a6
Fix that dis-/enabling notifications affect active checks
...
fixes #5500
2014-01-20 11:12:03 +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
815a34a535
Filelogger must not truncate log file, but append its stream.
...
Refs #5448
2014-01-14 17:25:05 +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
3e5af43e4d
Don't cache config item properties.
...
Refs #5400
2013-12-20 13:31:13 +01:00
Gunnar Beutner
38aa231a2d
Discard unused config items as early as possibly.
...
Refs #5400
2013-12-20 13:31:13 +01:00
Johannes Meyer
2997680cf1
Fix indices used to access arguments of external commands
...
fixes #5368
2013-12-18 14:41:19 +01:00
Gunnar Beutner
3a10127bf4
Implement support for using custom variables as macros.
...
Fixes #5364
2013-12-18 10:53:26 +01:00
Gunnar Beutner
21fb0d9872
Implement "safe mode" for icinga::Deserialize.
...
Fixes #5035
2013-12-18 10:27:58 +01:00
Michael Friedrich
79f5618eba
Use std::string::find() in String::Contains().
...
Refs #5355
2013-12-17 18:34:05 +01:00
Michael Friedrich
7fa9188df8
Add String::Contains().
...
Refs #5355
2013-12-17 18:34:05 +01:00
Johannes Meyer
12d32ad719
Fix crash that might occur in a situation where icinga should not crash...
...
refs #5356
2013-12-17 16:01:33 +01:00
Johannes Meyer
772f319926
Fix that triggered_by field is not of type int in a livestatus response
...
fixes #5356
2013-12-17 15:15:39 +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
Gunnar Beutner
b2ec194a82
Update log level for some messages.
...
Fixes #5357
2013-12-17 14:26:48 +01:00
Gunnar Beutner
41d4ba169f
Embed constants into lib{base,icinga,db_ido}.
...
Fixes #5247
2013-12-17 14:24:29 +01:00
Gunnar Beutner
6bec49bd23
Fix invalid lock in Service::UpdateSlaveNotifications.
...
Fixes #5354
2013-12-17 11:56:29 +01:00
Gunnar Beutner
ad563cf5d2
Use CompatUtility::GetCommandLine in StatusDataWriter::DumpCommand.
...
Fixes #5353
2013-12-17 10:20:28 +01:00
Johannes Meyer
1bec9692c6
Fix address and address6 being empty in objects.cache
...
fixes #5352
2013-12-17 09:50:19 +01:00
Gunnar Beutner
ddf83f33d2
Fix compiler warnings in Service::ProcessCheckResult.
...
Refs #5349
2013-12-17 07:55:46 +01:00
Gunnar Beutner
dac4ac02a9
Fix compiler warning in CompatUtility::GetServiceNotificationNotificationOptions.
...
Refs #5349
2013-12-17 07:52:35 +01:00
Gunnar Beutner
0b8b421323
Fix compiler warnings in ScheduledDowntime::FindNextSegment.
...
Refs #5349
2013-12-17 07:52:30 +01:00
Gunnar Beutner
65b41c51ff
Fix compiler warnings in ThreadPool::ThreadPool.
...
Refs #5349
2013-12-17 07:52:26 +01:00
Gunnar Beutner
79e960f7cb
Fix a log message.
...
Refs #5342
2013-12-16 17:23:34 +01:00
Gunnar Beutner
162cee5c40
Remove the ConsoleLogger class and keep the default console log enabled until we daemonize.
...
Refs #5342
2013-12-16 17:23:23 +01:00
Michael Friedrich
07e4bc03bc
Fix perfdata double value type formatting.
...
Fixes #5277
2013-12-16 16:57:30 +01:00
Michael Friedrich
a840dc8694
Apply UOM base to warn/crit/min/max to perfdata values.
...
Fixes #5280
2013-12-16 16:36:54 +01:00
Michael Friedrich
f4c132ca5b
Move command argument logging into the unix process class.
...
Refs #5225
2013-12-16 16:22:22 +01:00
Gunnar Beutner
2f58071b6f
Fix race condition in Logger::GetLoggers.
...
Fixes #5341
2013-12-16 09:53:50 +01:00
Michael Friedrich
9452bc7095
Only print config validation for existing objects.
...
Refs #5298
2013-12-16 09:39:14 +01:00
Gunnar Beutner
807d0a47e6
Fix spelling mistake in ConfigItem::ActivateItems.
...
Fixes #5334
2013-12-15 18:47:11 +01:00
Gunnar Beutner
ff5a35b7db
Fix race condition in TimePeriod::Start.
...
Refs #5337
2013-12-15 18:46:14 +01:00
Gunnar Beutner
f08bca220d
Fix race condition in icinga::Log.
...
Refs #5337
2013-12-15 18:46:09 +01:00
Gunnar Beutner
0af81f2da2
Fix race conditions in the config compiler.
...
Fixes #5335
2013-12-15 11:54:22 +01:00
Gunnar Beutner
4563bb355f
Fix another race condition in DynamicObject::Start.
...
Fixes #5330
2013-12-14 07:36:49 +01:00
Michael Friedrich
5f54406057
Log commands and their arguments.
...
Fixes #5225
2013-12-13 17:37:00 +01:00
Michael Friedrich
2ae988f457
Windows build fix.
2013-12-13 17:09:47 +01:00
Michael Friedrich
c66878fa45
Add config validation stats.
...
Fixes #5298
2013-12-13 16:53:40 +01:00
Gunnar Beutner
7fbdf1d633
Fix crash in icinga::Log.
...
Fixes #5330
2013-12-13 15:13:20 +01:00
Gunnar Beutner
6f92a62953
Implement latency statistics for the "icinga" check.
...
Fixes #5325
2013-12-13 15:09:17 +01:00
Gunnar Beutner
e7184225f3
Improve performance for icinga::Deserialize.
...
Refs #5327
2013-12-13 14:08:11 +01:00
Gunnar Beutner
f8d7f7799e
Improve WorkQueue performance
...
Refs #5327
2013-12-13 14:08:06 +01:00
Gunnar Beutner
b4f2f06b88
Implement ParallelWorkQueue class.
...
Refs #5327
2013-12-13 14:08:02 +01:00
Gunnar Beutner
b5792a0b81
Avoid using ConfigItem::GetObject when possible.
...
Refs #5327
2013-12-13 14:07:57 +01:00
Gunnar Beutner
37179cdf32
Improve config compiler performance.
...
Refs #5327
2013-12-13 14:07:37 +01:00
Michael Friedrich
66765311c3
Refactor CompatUtility::* for DB IDO, Livestatus, StatusData.
...
Fixes #5241
2013-12-13 09:38:22 +01:00
Gunnar Beutner
98733fc105
Add timestamp to crash dumps.
...
Fixes #5315
2013-12-12 14:38:34 +01:00
Johannes Meyer
9229aa4948
Merge branch 'feature/Array-insert-functionality' into next
...
resolves #5320
2013-12-12 13:53:27 +01:00
Michael Friedrich
e6c6a7dc52
Use exclamation mark for auto-generated config item names.
...
Fixes #5318
2013-12-12 11:50:08 +01:00
Gunnar Beutner
7a107b7dbd
Improve compatibility with C++11.
...
Fixes #5307
2013-12-11 16:40:55 +01:00
Johannes Meyer
e50dd8c1cc
Fix indentation in lib/icinga/externalcommandprocessor.cpp
2013-12-11 16:00:09 +01:00
Johannes Meyer
66845d05f8
Fix crash when a command is executed that affects check services
...
fixes #5297
2013-12-11 12:43:18 +01:00
Gunnar Beutner
af6df9f268
Improve compatibility with Windows.
...
Fixes #5287
2013-12-09 13:46:53 +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
ab2e1e99e2
ScriptVariableRegistry::GetInstance should not be defined inline.
...
Fixes #5284
2013-12-09 12:26:25 +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
203cf73bf7
Improve error messages for the check result reader.
...
Fixes #5275
2013-12-09 09:52:09 +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
Gunnar Beutner
e2941dbca8
Make sure that TimePeriod segments are being merged properly.
...
Refs #5268
2013-12-05 12:30:02 +01:00
Michael Friedrich
fa14b39719
DB IDO: Fix reconnect config/status inserts.
...
Fixes #5266
2013-12-05 12:12:57 +01:00
Gunnar Beutner
6714796ecd
Set rlimits in the Application class (rather than in the init script).
...
Fixes #5260
2013-12-05 11:11:03 +01:00
Gunnar Beutner
2553287818
Merge branch 'feature/constants-4946' into next
...
Fixes #4946
2013-12-04 12:14:16 +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
e540685e13
Implement support for constants in the config parser.
...
Refs #4946
2013-12-04 11:32:45 +01:00
Gunnar Beutner
30c989074b
Implement support for making script variables constant.
...
Refs #4946
2013-12-04 10:41:26 +01:00
Gunnar Beutner
c92625770c
Fix leak in the config parser.
...
Refs #4946
2013-12-04 10:39:46 +01:00
Gunnar Beutner
6625346922
Speed up config compiler.
...
Fixes #5255
2013-12-03 09:59:21 +01:00
Gunnar Beutner
52d2066995
Avoid temporary String objects in PerfdataValue::Format.
...
Fixes #5248
2013-12-02 12:55:35 +01:00
Gunnar Beutner
4648b82b33
Fix compiler warning for Utility::GlobRecursive.
...
Refs #5246
2013-12-02 11:18:16 +01:00
Gunnar Beutner
29f9117e58
Avoid using dynamic_pointer_cast when possible.
...
Refs #5246
2013-12-02 11:18:16 +01:00
Gunnar Beutner
954d2d53a2
Further decrease WQ lock contention.
...
Refs #5246
2013-12-02 11:18:16 +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
1c0f9fe9ac
Fix WorkQueue lock contention.
...
Fixes #5245
2013-12-02 08:38:53 +01:00
Gunnar Beutner
9f7e5b1845
Fix compiler warning.
...
Refs #5245
2013-11-29 17:06:48 +01:00
Gunnar Beutner
dd200d0937
Increase default work queue size.
...
Fixes #5244
2013-11-29 15:27:11 +01:00
Gunnar Beutner
6e84800538
Fix indentation in CompatUtility::GetServiceNotification*
...
Fixes #5242
2013-11-29 12:28:17 +01:00
Gunnar Beutner
f8d2172c27
Implement include_recursive config directive.
...
Fixes #5238
2013-11-29 12:26:31 +01:00
Gunnar Beutner
cac4167e79
Fix initial check schedule.
...
Fixes #5240
2013-11-28 20:56:48 +01:00
Gunnar Beutner
4ffc22516a
Renice child processes.
...
Fixes #5237
2013-11-28 15:15:28 +01:00
Gunnar Beutner
f9c53ad295
Implement workqueue statistics.
...
Refs #5235
2013-11-28 12:12:24 +01:00
Gunnar Beutner
5daedd2dea
Remove unnecessary host config update.
...
Refs #5235
2013-11-28 10:37:22 +01:00
Gunnar Beutner
6d53bd1c8f
Make sure IDO reconnect attempts don't recurse.
...
Refs #5235
2013-11-28 10:36:43 +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
25da7a2291
Add sysconf dir to the version info message.
...
Refs #5224
2013-11-27 11:47:14 +01:00
Gunnar Beutner
9d8edd286f
Implement IcingaSysconfDir variable.
...
Refs #5224
2013-11-27 09:46:31 +01:00
Gunnar Beutner
4ed798385d
Improve bug messages.
...
Refs #4635
2013-11-26 18:35:36 +01:00
Gunnar Beutner
6428fc6123
Implement override_check_period.
...
Refs #4746
2013-11-26 13:43:56 +01:00
Gunnar Beutner
245dd66bab
Implement override_max_check_attempts.
...
Refs #4746
2013-11-26 13:27:41 +01:00
Gunnar Beutner
1c8fb7a198
Implement override_check_command.
...
Refs #4746
2013-11-26 13:26:21 +01:00
Gunnar Beutner
b9f9cd03d2
Implement override_event_command.
...
Refs #4746
2013-11-26 12:44:49 +01:00
Gunnar Beutner
ae3eaee1f4
Implement override_enable_perfdata.
...
Refs #4746
2013-11-26 12:33:16 +01:00
Gunnar Beutner
d8c9d6a88a
Implement override_enable_flapping.
...
Refs #4746
2013-11-26 12:33:16 +01:00
Gunnar Beutner
04061adc01
Implement override_enable_notifications.
...
Refs #4746
2013-11-26 12:33:10 +01:00
Gunnar Beutner
d4cc6fb5e0
Improve compatibility with Solaris.
...
Fixes #5129
2013-11-24 01:00:35 +01:00
Gunnar Beutner
e32a149049
Glob: Use stat() instead of lstat().
...
Refs #5123
2013-11-22 10:41:57 +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
0978e46d5a
Implement file type flags for Utility::Glob.
...
Fixes #5123
2013-11-22 09:03:52 +01:00
Gunnar Beutner
45161fe66d
Improve latency after start-up.
...
Fixes #5121
2013-11-21 16:09:21 +01:00
Gunnar Beutner
7a79886922
Fix deadlock in WorkQueue::Enqueue.
...
Fixes #5120
2013-11-21 13:54:01 +01:00
Gunnar Beutner
91338a7e49
Remove redundant checks.
...
Fixes #5071
2013-11-21 12:23:55 +01:00
Gunnar Beutner
1fc47e67a8
Implement the IcingaCheckTask check type.
...
Fixes #2822
2013-11-21 11:40:03 +01:00
Gunnar Beutner
2cefcb5bfa
Update minimum flex version.
...
Fixes #5072
2013-11-21 11:22:51 +01:00
Gunnar Beutner
92dd32eb68
Implement support for high-level stack traces.
...
Refs #5085
2013-11-21 09:42:27 +01:00
Gunnar Beutner
062110339b
Fix spelling mistake.
...
Refs #5085
2013-11-21 08:30:16 +01:00
Gunnar Beutner
43ab2b69a4
Fix handle leak in the ThreadPool class.
...
Fixes #5078
2013-11-21 07:46:12 +01:00
Gunnar Beutner
39dcf20a89
Implement support for stack traces for STL exceptions.
...
Fixes #5114
2013-11-20 21:55:14 +01:00
Gunnar Beutner
4534bb08c5
Implement DbCatEverything flag.
...
Fixes #5096
2013-11-20 16:47:46 +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
Gunnar Beutner
d88268bd77
Fix group assignments in the config parser.
...
Fixes #5090
2013-11-17 20:50:56 +01:00
Gunnar Beutner
1676af8b2d
Implement signal handler for SIGTERM.
...
Fixes #5087
2013-11-17 20:04:27 +01:00
Gunnar Beutner
0f28e55925
Implement support for non-standard "multi" performance data.
...
Refs #5082
2013-11-17 03:29:43 +01:00
Gunnar Beutner
d95c6c7d85
Remove trailing spaces from performance data.
...
Refs #5082
2013-11-17 01:00:26 +01:00
Gunnar Beutner
f9b107d0bf
Accept invalid performance data.
...
Refs #5082
2013-11-17 00:05:31 +01:00
Gunnar Beutner
8c24638ff1
Fix latency calculation.
...
Refs #5050
2013-11-15 14:40:14 +01:00
Gunnar Beutner
687c88bea0
Don't kill too many worker threads at once.
...
Refs #5050
2013-11-15 14:04:03 +01:00
Gunnar Beutner
e2a7cb32e5
Use normal check interval for services which haven't been checked yet.
...
Refs #5050
2013-11-15 12:57:04 +01:00
Gunnar Beutner
979df4e110
Create new threads more aggressively right after program start.
...
Refs #5050
2013-11-15 12:36:52 +01:00
Gunnar Beutner
9a93cc83b3
Include thread pool ID in debug messages.
...
Refs #5050
2013-11-15 12:20:19 +01:00
Gunnar Beutner
2dacc047ec
Remove quotes from perfdata keys.
...
Fixes #5031
2013-11-13 15:43:59 +01:00
Gunnar Beutner
f5f8de8137
Fix compatibility with OpenSSL <1.0.0.
...
Refs #3657
2013-11-13 10:36:57 +01:00
Gunnar Beutner
a5e3c70bcc
Implement support for CRLs.
...
Fixes #3657
2013-11-13 10:30:40 +01:00
Gunnar Beutner
438d5c0f57
Move EmptyTimePeriod and EvenMinutesTimePeriod to libmethods.
...
Fixes #5032
2013-11-13 09:41:06 +01:00
Gunnar Beutner
6ccf4497f2
Fix unit tests on Windows.
...
Fixes #5068
2013-11-13 09:08:17 +01:00
Gunnar Beutner
81c4dd40ab
Make sure that Notification::notification_command is set.
...
Fixes #5056
2013-11-11 17:26:20 +01:00
Gunnar Beutner
0dba71ecaf
Fix service and notification templates.
...
Fixes #5058
2013-11-11 16:42:58 +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
95712e46d4
Fix compiler warning in PerfdataValue::Parse.
...
Fixes #5055
2013-11-11 13:14:42 +01:00
Gunnar Beutner
4f1cb83f31
Fix Convert::ToString.
...
Fixes #5054
2013-11-11 13:04:18 +01:00
Gunnar Beutner
92c8d71bf3
Implement one-time notification for escalation contacts.
...
Fixes #5011
2013-11-11 11:21:23 +01:00
Gunnar Beutner
893243db5f
Fix exception in Value::ToJson().
...
Refs #5049
2013-11-11 09:31:36 +01:00
Gunnar Beutner
eb746b9929
Optimize DynamicObject::HasAuthority().
...
Refs #5049
2013-11-11 08:39:35 +01:00
Gunnar Beutner
f7171e3e90
Optimize Service::GetHost.
...
Refs #5049
2013-11-10 22:04:18 +01:00
Gunnar Beutner
9a764d8a08
Optimize signal calls.
...
Refs #5049
2013-11-10 16:53:57 +01:00
Gunnar Beutner
45a6ca6cb3
Fix type for CheckResult::command.
...
Refs #5039
2013-11-10 01:29:09 +01:00
Gunnar Beutner
e2292ce5f7
Refactor the Service::Is{Comment,Downtime}* methods.
...
Refs #5039
2013-11-09 22:20:49 +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
17834e0a77
Ignore invalid fields in the state file.
...
Refs #5039
2013-11-09 18:30:17 +01:00
Gunnar Beutner
112f26dc19
Replace check result dictionaries with a class.
...
Refs #5039
2013-11-09 15:26:01 +01:00
Gunnar Beutner
e525410b75
Add missing new-line.
...
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
2a6151e935
Use anonymous namespaces for INITIALIZE_ONCE().
...
Refs #5036
2013-11-08 21:12:47 +01:00
Gunnar Beutner
98c3431dda
Add missing == operator for the Value class.
...
Refs #5036
2013-11-08 21:12:22 +01:00
Gunnar Beutner
e546cd854d
Clean up the DynamicType class.
...
Refs #5036
2013-11-08 16:07:21 +01:00
Gunnar Beutner
7c990eff6e
Add missing copyrights.
...
Refs #5036
2013-11-08 16:06:59 +01:00
Gunnar Beutner
0a67e760bd
Optimize GraphiteWriter::SendMetric.
...
Fixes #5037
2013-11-08 15:43:14 +01:00
Gunnar Beutner
a84536bea3
Implement serializer support for arbitrary classes.
...
Fixes #5024
2013-11-08 14:08:59 +01:00
Gunnar Beutner
59739d9ae4
Fix crash in CompatUtility::GetCheckResultPerfdata.
...
Refs #5026
2013-11-08 14:00:38 +01:00
Gunnar Beutner
ceb0a54baf
Implement support for performance data unit prefixes.
...
Fixes #5026
2013-11-08 08:39:05 +01:00
Gunnar Beutner
5aba175e18
Use PluginUtility::{Parse,Format}Perfdata for check results.
...
Refs #2710
2013-11-07 16:07:52 +01:00
Gunnar Beutner
2af388e4ef
Implement performance data parser.
...
Refs #2710
2013-11-07 16:07:52 +01:00
Gunnar Beutner
038be974e4
Implement additional operators for the Value and String classes.
...
Refs #2710
2013-11-07 16:07:52 +01:00
Gunnar Beutner
14553139ae
Implement String::FindFirstNotOf.
...
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
Gunnar Beutner
5e68746128
Implement Utility::DemangleSymbolName on Windows.
...
Fixes #5010
2013-11-05 20:26:05 +01:00
Gunnar Beutner
27f527d0ad
Implement String::GetData.
...
Fixes #5008
2013-11-05 18:59:39 +01:00
Gunnar Beutner
14ec0b6642
Link libhello against libconfig.
...
Refs #4995
2013-11-05 15:04:13 +01:00
Gunnar Beutner
2617521ce3
Fix exception in Exception in IdoPgsqlConnection::Query.
...
Fixes #5002
2013-11-05 13:35:59 +01:00
Gunnar Beutner
614e33e900
Fix base class for the Hello class.
...
Refs #4996
2013-11-05 09:01:46 +01:00
Gunnar Beutner
b5b56e5438
Implement Type::GetBaseType().
...
Refs #4996
2013-11-05 08:56:35 +01:00
Gunnar Beutner
b1ddc71925
Merge ReflectionObject methods into the Object class.
...
Refs #4996
2013-11-05 08:56:30 +01:00
Gunnar Beutner
2140cef041
Implement the ReflectionType class.
...
Refs #4996
2013-11-05 08:56:18 +01:00
Gunnar Beutner
6dd6c605d4
Don't explicitly load libmethods in libicinga.
...
Refs #4995
2013-11-05 08:34:34 +01:00
Gunnar Beutner
3cfccba1ea
Implement "hello world" test app.
...
Refs #4995
2013-11-05 08:34:34 +01:00
Gunnar Beutner
264fdf40d5
Implement PostgreSQL adapter for IDO.
...
Fixes #4777
2013-11-04 16:05:24 +01:00
Gunnar Beutner
a6b0233b75
Make sure the name of the initial library (libicinga) is not hard-coded.
...
Refs #4959
2013-11-04 15:33:29 +01:00
Gunnar Beutner
871f6febc7
Move methods to a separate library.
...
Refs #4959
2013-11-04 15:29:18 +01:00
Gunnar Beutner
22f0f388a7
Link libase against libdl.
...
Fixes #4994
2013-11-04 09:38:13 +01:00
Michael Friedrich
6eae4508aa
Fix macros requiring last check result.
...
Fixes #4981
2013-11-04 09:28:23 +01:00
Gunnar Beutner
8586f90379
Implement support for loading OS X libraries.
...
Refs #4993
2013-11-04 07:49:51 +01:00
Gunnar Beutner
ee07cc9d06
Fix: ASSERT in WorkQueue::Enqueue fails
...
Refs #4991
2013-11-03 13:57:18 +01:00
Gunnar Beutner
5f0ebed72b
Improve compatibility with ancient versions of Bison.
...
Refs #4962
2013-11-03 13:45:26 +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
Gunnar Beutner
3308eb1d87
Add missing newlines.
...
Refs #4990
2013-11-03 10:59:01 +01:00
Gunnar Beutner
375c5a53c6
Don't join threads that are already dead.
...
Refs #4990
2013-11-03 10:58:57 +01:00
Gunnar Beutner
8279fbd633
Fix deadlock in ThreadPool::Join.
...
Refs #4989
2013-11-02 10:38:54 +01:00
Gunnar Beutner
fcc96cfe8f
Fix compilation with Visual Studio 2013.
...
Refs #4987
2013-11-01 00:13:30 +01:00
Gunnar Beutner
6abf16e6ed
Fix deadlock in ThreadPool::Join.
...
Refs #4986
2013-10-31 19:10:36 +01:00
Michael Friedrich
d21d79a36c
CompatUtility: Use functionality in compat/ido/livestatus.
...
refs #4735
2013-10-31 16:08:55 +01:00
Michael Friedrich
75b69411b9
Livestatus: Add log table.
...
refs #4433
2013-10-31 13:39:16 +01:00
Gunnar Beutner
9c152f1f5c
Fix command_line accessor.
...
Refs #4980
2013-10-30 19:32:15 +01:00
Gunnar Beutner
7a751eb8af
Fix DynamicObject::HasAuthority.
...
Refs #4979
2013-10-30 15:59:14 +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
4ce0f1e7bb
Implement WorkQueue::GetThreadId.
...
Refs #4758
2013-10-30 13:13:09 +01:00
Gunnar Beutner
ef55412855
Fix libdl detection on FreeBSD.
...
Refs #4977
2013-10-30 13:01:50 +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
24d018a058
Fix short_name and display_name properties.
...
Refs #4973
2013-10-30 09:55:00 +01:00
Gunnar Beutner
db4b3b78d6
Implement class compiler.
...
Refs #4963
2013-10-28 14:27:36 +01:00
Gunnar Beutner
d14775f28f
Fix unnecessary rebuilds of the config_parser.yy file.
2013-10-26 01:22:25 +02:00
Gunnar Beutner
7c933f7063
Clean up indentation.
2013-10-24 07:38:29 +02:00
Gunnar Beutner
963dccfac8
Add RandomCheck similar to NullCheck.
...
Refs #4896
2013-10-23 13:51:52 +02:00
Gunnar Beutner
f351fe0bd7
Add missing library.
2013-10-22 11:31:15 +02:00
Gunnar Beutner
ab402cbfaf
Remove unused #includes.
2013-10-22 10:13:35 +02:00
Michael Friedrich
622e4d7f25
Start log flush timer after binding the stream.
...
refs #4890
2013-10-21 14:15:21 +02:00
Michael Friedrich
07d9a59fe0
Flush StreamLogger periodically.
...
fixes #4890
2013-10-21 14:09:14 +02:00
Gunnar Beutner
3cb6e3bf82
Make sure to #include <pthread_np.h> on FreeBSD.
2013-10-21 09:52:45 +02:00
Gunnar Beutner
2beb4e0022
Another build fix.
2013-10-20 15:22:21 +02:00
Gunnar Beutner
f59a56e4fc
Build fix.
2013-10-20 15:20:54 +02:00
Gunnar Beutner
599429ec93
config: Implement AST support for const expressions.
2013-10-20 15:07:55 +02:00
Michael Friedrich
39f11334ab
Add NOTIFICATION{AUTHOR,AUTHORNAME,COMMENT} macros.
...
fixes #4914
2013-10-19 00:19:16 +02:00
Michael Friedrich
886b1c8dd7
Fix missing object lock in ExternalCommandProcessor::RemoveSvcAcknowledgement().
2013-10-19 00:17:28 +02:00
Michael Friedrich
641bc96b84
Fix perfdata in NullCheck.
2013-10-18 20:04:56 +02:00
Michael Friedrich
bc3411fe8d
GraphiteWriter: Refactor perfdata parsing.
2013-10-18 16:27:57 +02:00
Gunnar Beutner
e5b3a59aa3
Set thread names for the BufferedStream thread procs.
2013-10-18 11:46:19 +02:00
Gunnar Beutner
9506b6710e
Implement TOTALHOSTSERVICES, TOTALHOSTSERVICESOK, TOTALHOSTSERVICESWARNING, TOTALHOSTSERVICESUNKNOWN and TOTALHOSTSERVICESCRITICAL macros.
2013-10-18 11:40:46 +02:00
Gunnar Beutner
0be741aca4
Build fix.
2013-10-18 11:30:55 +02:00
Gunnar Beutner
cbf82e1cb8
Implement HOSTDURATIONSEC and SERVICEDURATIONSEC macros.
2013-10-18 11:29:49 +02:00
Gunnar Beutner
89d313008d
Fix: GraphiteWriter: reconnect on broken socket.
...
Fixes #4883
2013-10-18 09:11:21 +02:00
Gunnar Beutner
c824fc4f9f
Fix error message.
2013-10-18 08:48:15 +02:00
Gunnar Beutner
917f288a95
Clean up socket code.
2013-10-18 08:26:48 +02:00
Michael Friedrich
dd1ec43cd0
Documentation: Add Notifications, Escalations, Filters, Delay.
2013-10-18 00:11:35 +02:00
Gunnar Beutner
c4941bb3c5
Close all file descriptors before restarting.
...
Refs #4905
2013-10-17 18:24:35 +02:00
Gunnar Beutner
5647694c2a
Build fix.
2013-10-17 15:52:26 +02:00
Gunnar Beutner
65f4176fa8
Fix deadlock in WorkQueue::Join().
2013-10-17 15:49:53 +02:00
Gunnar Beutner
492aed030e
Improve the error message for GetX509Certificate().
2013-10-17 15:46:50 +02:00
Gunnar Beutner
05a81b84e1
Fix: Check_source in ClassicUI is N/A
...
Fixes #4893
2013-10-17 12:08:08 +02:00
Gunnar Beutner
fa845775a2
Fix crashes when restarting Icinga.
2013-10-17 10:56:42 +02:00
Gunnar Beutner
c570593b73
Remove unused #include.
2013-10-17 10:34:01 +02:00
Gunnar Beutner
5a724ba011
Revert "NullCheckTask should return StateOK."
...
This reverts commit 046ea13cc8
.
2013-10-17 10:24:47 +02:00
Gunnar Beutner
b4ab6c8253
Re-implement WorkQueue item limit.
2013-10-17 10:19:17 +02:00
Gunnar Beutner
eed901304a
Fix deadlock in WorkQueue::Enqueue().
2013-10-17 09:14:06 +02:00
Gunnar Beutner
204f04f295
Fix Service::GetEnablePerfdata().
2013-10-16 18:36:14 +02:00
Michael Friedrich
8686305848
Fix enable_perfdata.
2013-10-16 17:18:21 +02:00
Michael Friedrich
36c4cb0da8
db_ido: Fix modified_{host,service}_attributes columns.
2013-10-16 16:29:14 +02:00
Gunnar Beutner
a30afad4bd
Fix ExternalCommandProcessor::ChangeNormalHostCheckInterval.
2013-10-16 16:08:00 +02:00
Gunnar Beutner
ac9981fbcd
Implement event_handler_enabled modified attribute.
2013-10-16 15:20:14 +02:00
Gunnar Beutner
046ea13cc8
NullCheckTask should return StateOK.
2013-10-16 15:20:04 +02:00
Gunnar Beutner
816d0e8d73
Fix config validation.
...
Fixes #4888
2013-10-16 13:37:54 +02:00
Gunnar Beutner
ed4231d3be
Fix external commands.
2013-10-16 13:12:38 +02:00
Gunnar Beutner
3ba0616620
Fix Service::{Get,Set}ModifiedAttributes.
2013-10-16 13:08:55 +02:00
Gunnar Beutner
45eb84f730
Allow floating point numbers for CHANGE_*_CHECK_INTERVAL.
2013-10-16 13:08:51 +02:00
Gunnar Beutner
3596ee577b
Implement modified attributes check_interval and retry_interval.
2013-10-16 13:02:21 +02:00
Gunnar Beutner
20fbce9c9c
Build fix.
2013-10-16 12:10:31 +02:00
Gunnar Beutner
6f645ecfbf
Clean up ExternalCommandProcessor method names.
2013-10-16 12:09:45 +02:00
Gunnar Beutner
d07dc47b1b
Implement CHANGE_HOST_MODATTR.
2013-10-16 12:08:58 +02:00
Gunnar Beutner
53ca2d3916
ido: Add modified_attributes.
2013-10-16 12:01:09 +02:00
Gunnar Beutner
177e1a9000
Implement modified attributes for enable_active_checks and enable_passive_checks.
2013-10-16 11:46:54 +02:00
Gunnar Beutner
33cc106a14
Implement GetEnablePerfdata/GetEnableEventHandlers.
2013-10-16 10:47:02 +02:00
Gunnar Beutner
a03c58f27e
MakeSSLContext: Check if keys match.
2013-10-15 21:24:55 +02:00
Gunnar Beutner
f8c057d63a
Windows build fix.
2013-10-15 20:29:09 +02:00
Michael Friedrich
4135578903
Add GraphiteWriter.
...
fixes #3986
2013-10-15 14:56:02 +02:00
Gunnar Beutner
1bce8cec97
Fix: ZlibStream doesn't work even if libssl supports zlib.
...
Fixes #4848
2013-10-15 12:59:49 +02:00
Michael Friedrich
5aa809faeb
Fix thinko in last commit.
2013-10-14 22:54:05 +02:00
Michael Friedrich
e8451018c6
Add perfdata to NullCheckTask.
2013-10-14 22:48:29 +02:00
Gunnar Beutner
8409b55018
More Win64 build fixes.
2013-10-10 23:46:45 +02:00
Gunnar Beutner
db90a785db
Win64 build fix.
2013-10-10 23:30:05 +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
fdc3f32544
Make bug message somewhat more useful.
2013-10-10 14:29:23 +02:00
Gunnar Beutner
1dc10ca512
Update Service type definition.
2013-10-10 11:31:17 +02:00
Gunnar Beutner
fe5c925a63
Windows build fix.
2013-10-09 15:03:24 +02:00
Gunnar Beutner
78fa9bca09
config: Make sure we're not inside a comment when reaching the end of a config file.
...
Fixes #4821
2013-10-09 08:56:28 +02:00
Gunnar Beutner
3f922e5eac
Implement Application::GetVersion().
...
Fixes #4801
2013-10-09 08:46:31 +02:00
Gunnar Beutner
d36e2ebd1a
Build fix for CentOS 5.9.
...
Fixes #4819
2013-10-08 15:43:36 +02:00
Gunnar Beutner
79dd1d3d56
Add config_lexer.cc, config_parser.cc and config_parser.h to the dist tarball.
...
Fixes #4814
2013-10-08 12:52:47 +02:00
Gunnar Beutner
9782a361bb
Convert global attributes to script variables.
2013-10-08 12:37:21 +02:00
Gunnar Beutner
29adc21021
Use script variables for global options.
2013-10-08 12:22:16 +02:00
Gunnar Beutner
369d88b3c4
Implement global attributes.
2013-10-08 11:57:35 +02:00
Gunnar Beutner
9d5edebd73
Another build fix.
2013-10-07 11:20:56 +02:00
Gunnar Beutner
fb9f0bc178
Build fix.
2013-10-07 11:18:12 +02:00
Gunnar Beutner
11ae80576a
Remove auto-generated files.
2013-10-07 10:28:26 +02:00
Gunnar Beutner
f449eb9e84
Implement Utility::Random().
2013-10-03 22:10:46 +02:00
Michael Friedrich
d79680c642
Add random state to NullCheckTask.
...
refs #4774
2013-10-03 20:33:32 +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
972a4f8b9a
Change user attribute macros to $USER...$
...
but keep the $CONTACT...$ still supported for compatibility.
fixes #4792
2013-10-02 19:01:03 +02:00
Gunnar Beutner
7ed5b3ca14
Another VPATH fix.
2013-10-02 13:43:50 +02:00
Gunnar Beutner
3dae6bc2ff
Fix VPATH builds on openSUSE.
2013-10-02 13:37:35 +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
09cc7632e7
compatutility: Use User(Group) Ptr, not name.
...
refs #4735
2013-10-01 16:44:33 +02:00
Michael Friedrich
b2f13c37e4
compatutility: Add contact(group) getters.
...
refs #4735
2013-10-01 15:39:00 +02:00
Gunnar Beutner
400fe5e13c
Remove the uncheckable state.
2013-10-01 13:12:04 +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
c07857dea8
Fix compiler warning.
2013-10-01 10:24:29 +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
86ef8aae8c
compatutility: Fix check_type.
2013-09-30 16:52:57 +02:00
Gunnar Beutner
3b4425c17e
Build fix.
2013-09-30 09:28:22 +02:00
Gunnar Beutner
aa99061a12
Fix: make dist-* does not include lib/config/config_parser.h
...
Fixes #3575
2013-09-30 09:15:22 +02:00
Michael Friedrich
be5078c9aa
Fix error message.
2013-09-27 23:13:25 +02:00
Michael Friedrich
e8bd81bddc
db_ido: Add idoutils 1.x schema, check required 1.10.0 version.
...
fixes #4766
2013-09-27 15:56:22 +02:00
Gunnar Beutner
518f050544
Fix Notification::user_groups validator (rename from Notification::groups).
...
Fixes #4753
2013-09-27 14:58:32 +02:00
Michael Friedrich
f1d2548fc0
External commands fail gracefully when given invalid host/service names.
...
Added process_check_result script for tests too.
fixes #4647
2013-09-27 13:05:44 +02:00
Gunnar Beutner
74708766d1
Implement mods-available/mods-enabled.
...
Refs #4573
2013-09-27 10:45:38 +02:00
Michael Friedrich
41e6d50693
Revert "Add config_parser.h to EXTRA_DIST."
...
This reverts commit f1bc61c188
.
refs #3575
2013-09-27 10:27:50 +02:00
Gunnar Beutner
93cd1b811e
Make check_source a check result attribute.
2013-09-27 07:34:08 +02:00
Michael Friedrich
e954e38c5e
db_ido: Add check_source.
2013-09-26 22:43:21 +02:00
Michael Friedrich
e07183d481
Add check authority to service.
...
fixes #4762
2013-09-26 21:53:43 +02:00
Michael Friedrich
f832e814ff
Add support for day based values.
...
fixes #4761
2013-09-26 19:03:27 +02:00
Michael Friedrich
f1bc61c188
Add config_parser.h to EXTRA_DIST.
...
fixes #3575
2013-09-26 18:58:02 +02:00
Michael Friedrich
f1c0ce3b23
db_ido: Add cleanup for history tables.
...
refs #4567
2013-09-26 17:23:53 +02:00
Gunnar Beutner
1e4d38725b
Make sure WorkQueue::m_Executing is initialized.
2013-09-26 10:25:04 +02:00
Michael Friedrich
1827e25d7a
db_ido: Add logentries.
...
refs #4379
2013-09-25 19:47:23 +02:00