Gunnar Beutner
8bfb60b7fa
Improve error message for invalid inline service definitions.
...
Refs #5846
2014-03-24 11:23:05 +01:00
Gunnar Beutner
4ec939f332
Some more variable scoping fixes.
...
Refs #5846
2014-03-24 09:44:18 +01:00
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