Michael Friedrich
601e10cb46
Use CustomVarObject instead of DynamicObject for all libicinga objects.
...
Fixes #6187
2014-05-19 17:57:58 +02:00
Gunnar Beutner
b814d89ce0
Fix command timeout.
...
Fixes #6232
2014-05-19 13:09:49 +02:00
Gunnar Beutner
657b3c6a1a
Fix deadlock in db_ido.
...
Fixes #6230
2014-05-19 10:56:50 +02:00
Gerd von Egidy
541de0de78
Add Process::GetPID and make it work on Unix and Windows.
...
Refs #6118
2014-05-18 18:44:57 +02:00
Gerd von Egidy
e0d4b9fb80
Unlink the pidfile when we really shutdown (not reload).
...
Refs #6118
2014-05-18 18:44:54 +02:00
Gerd von Egidy
e93a22b440
Proof of concept how a real reload-handling with systemd could work.
...
Refs #6118
2014-05-18 18:39:35 +02:00
Gunnar Beutner
7310a254e8
Parallellize restoring objects from the state file.
...
Fixes #6226
2014-05-18 09:20:23 +02:00
Gunnar Beutner
f26b37e763
Execute apply/object rules in parallel.
...
Fixes #6223
2014-05-17 20:50:07 +02:00
Gunnar Beutner
d5f5d7b0a2
Set parent_host_name in Dependency objects to the host's name for apply rules.
...
Fixes #6197
2014-05-17 12:58:35 +02:00
Gunnar Beutner
b2246f3af9
Build fix for Windows.
...
Refs# 6191
2014-05-17 08:38:28 +02:00
Gunnar Beutner
14cb049b6a
Implement timestamps for zone configs.
...
Fixes #6191
2014-05-15 15:08:45 +02:00
Gunnar Beutner
dcbe7e1dfd
Implement "accept_config" attribute.
...
Refs #6191
2014-05-15 10:13:32 +02:00
Gunnar Beutner
d587c962ce
Implement the config::Update message.
...
Refs #6191
2014-05-13 15:57:02 +02:00
Gunnar Beutner
3a1ce23aeb
Implicitly set zone attribute for files includes from zones.d.
...
Refs #6191
2014-05-13 14:40:12 +02:00
Gunnar Beutner
0d36cc8d5f
Implement support for the zones.d config directory.
...
Refs #6191
2014-05-13 13:19:43 +02:00
Michael Friedrich
aa97c3c670
Add command namespace {check_,event_,notification_} to legacy interfaces.
...
Fixes #5927
2014-05-12 16:18:03 +02:00
Gunnar Beutner
a5d3523b85
Rename the function, return and for keywords and remove the lambda keyword.
...
Fixes #6194
2014-05-12 12:59:12 +02:00
Gunnar Beutner
c58aa9e86f
Improve error message when execvpe() fails.
...
Fixes #6160
2014-05-12 10:58:17 +02:00
Gunnar Beutner
9b7702195a
Don't use colors for the whole log message.
...
Refs #6070
2014-05-12 10:27:01 +02:00
Gunnar Beutner
9c3e399188
Remove unnecessary includes.
...
Fixes #6189
2014-05-11 18:11:32 +02:00
Michael Friedrich
ad77709c07
Rename host.total_* runtime macros to host.num_*.
...
Fixes #6188
2014-05-11 15:08:32 +02:00
Gunnar Beutner
6a8db4035d
Fix another couple of compiler warnings.
...
Refs #5823
2014-05-11 08:36:51 +02:00
Gunnar Beutner
12c8814bd8
Fix some more compiler warnings.
...
Refs #5823
2014-05-11 06:43:01 +02:00
Gunnar Beutner
c7b5e4c31e
Fix some compiler warnings.
...
Refs #5823
2014-05-11 06:04:43 +02:00
Michael Friedrich
f5e568d3fb
DB IDO: Add 'is_reachable' column to {host,service}status tables.
...
Refs #6094
2014-05-10 21:03:47 +02:00
Michael Friedrich
d06d4f2540
Include monitoring plugin commands seperately.
...
Fixes #6130
2014-05-10 19:02:51 +02:00
Michael Friedrich
7730cc9b52
ModifiedAttributes for Enable* must call signals.
...
Refs #6151
Refs #5219
2014-05-10 17:24:39 +02:00
Michael Friedrich
76658e7ddd
DB IDO: Add Enable* db events.
...
Refs #6151
2014-05-10 16:52:48 +02:00
Michael Friedrich
07bd8943ce
Add OnEnablePerfdataChanged signal.
...
Refs #6151
2014-05-10 16:24:58 +02:00
Gunnar Beutner
7df7ec94d2
Fix scoping rules for dictionaries.
...
Refs #6183
2014-05-10 12:43:16 +02:00
Gunnar Beutner
6d7e028f92
Use a separate scope for "for" loops.
...
Refs #6183
2014-05-10 12:03:54 +02:00
Gunnar Beutner
0e34968e8f
Implement for loops.
...
Fixes #6183
2014-05-10 11:26:56 +02:00
Gunnar Beutner
ab8624d2f5
Implement support for arrays for the indexer operator.
...
Fixes #6182
2014-05-10 10:46:49 +02:00
Gunnar Beutner
0c31bae792
Config validator: Make sure that objects are not abstract.
...
Fixes #6148
2014-05-09 19:40:56 +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
bd8ccec258
Fix deadlock when calling functions recursively.
...
Fixes #6178
2014-05-09 14:45:59 +02:00
Gunnar Beutner
b367187c0b
Implement HA for IDO connections.
...
Refs #6107
2014-05-09 13:02:30 +02:00
Gunnar Beutner
4c022199f4
Reimplement load-balancing for checks.
...
Refs #6107
2014-05-09 11:45:21 +02:00
Gunnar Beutner
020ca0b2e9
Apply: Inherit zone from parent object.
...
Refs #6107
2014-05-09 10:36:26 +02:00
Gunnar Beutner
dade476533
Remove the ZlibStream class and the stream_bio functionality.
...
Fixes #6119
2014-05-09 10:23:54 +02:00
Gunnar Beutner
01941a9807
Don't log repository messages.
...
Refs #6107
2014-05-08 15:46:47 +02:00
Gunnar Beutner
b36b03cac1
Remove zone check in ApiEvents::UpdateRepositoryAPIHandler.
...
Refs #6107
2014-05-08 15:27:16 +02:00
Gunnar Beutner
87bcb168d7
Implement timeout for anonymous ApiClient objects.
...
Refs #6107
2014-05-08 15:12:56 +02:00
Gunnar Beutner
bd610a74b1
Clean up reconnect handler.
...
Refs #6107
2014-05-08 15:00:09 +02:00
Gunnar Beutner
b52cc9822d
Fix missing variable assignment in Zone::CanAccessObject().
...
Refs #6107
2014-05-08 13:29:53 +02:00
Gunnar Beutner
5678fe750c
Fix incorrect function name.
...
Refs #6107
2014-05-08 13:15:08 +02:00
Gunnar Beutner
e322cc5086
Implement aliasing support for "localhost".
...
Refs #6107
2014-05-08 13:08:34 +02:00
Gunnar Beutner
3464f29ca2
Fix permissions for master zones.
...
Refs #6107
2014-05-08 12:36:48 +02:00
Gunnar Beutner
656d6ff13a
Update scripts and example config.
...
Refs #6107
2014-05-08 12:17:21 +02:00
Gunnar Beutner
16e8dca01e
Build fix for RHEL.
...
Refs #6107
2014-05-08 09:19:38 +02:00
Gunnar Beutner
45270f1bb8
Refactor the agent and cluster components.
...
Refs #6107
2014-05-08 09:13:04 +02:00
Gunnar Beutner
0571d8a464
Run INITIALIZE_ONCE() after static initializers.
...
Refs #6107
2014-05-08 09:13:04 +02:00
Gunnar Beutner
b1dab6c074
Implement support for the "package" keyword.
...
Refs #6107
2014-05-08 09:13:04 +02:00
Gunnar Beutner
e2fe1c8a6b
Properly shut down TLS streams.
...
Refs #6107
2014-05-06 10:40:36 +02:00
Gunnar Beutner
0484706324
Make sure handles aren't inherited by the child process.
...
Refs #6107
2014-05-06 10:40:36 +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
4f44ef13f1
Fix string conversion in CompatUtility::GetCheckableCommandArgs().
...
Refs #5926
2014-05-04 16:49:24 +02:00
Michael Friedrich
ddfccf3188
Add debug log entries for dependencies.
...
Refs #5872
2014-05-03 21:04:56 +02:00
Michael Friedrich
0691d73af9
Rename Dependency 'state_filter' to 'states'.
...
Fixes #6113
2014-05-03 19:53:16 +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
3d586b2b80
DB IDO: Update Host/Service state 'scheduled_downtime_depth' on DowntimeTriggered.
...
Refs #6051
2014-05-03 00:38:56 +02:00
Michael Friedrich
fc44798b8d
DB IDO: Update Host/Service state 'last_notification' on NotificationSentToAllUsers.
...
Refs #6051
2014-05-03 00:27:05 +02:00
Michael Friedrich
ba12ec2927
DB IDO: Update Host/Service state 'is_flapping' on FlappingChanged.
...
Refs #6051
2014-05-02 23:56:52 +02:00
Michael Friedrich
03e44dcdc8
DB IDO: Update Host/Service state 'next_check' on NextCheckChanged.
...
Refs #6051
2014-05-02 23:38:37 +02:00
Michael Friedrich
0c72228a0e
DB IDO: Update Host/Service status on Acknowledgement Add/Clear.
...
Refs #6051
2014-05-02 23:17:36 +02:00
Michael Friedrich
dbe6a20fd2
Fix exception for Notification objects without checkable object.
...
Fixes #6111
2014-05-02 19:43:49 +02:00
Michael Friedrich
07c0c9e234
Fix state_filter attribute validation for Depdency objects.
...
Fixes #6110
2014-05-02 19:37:55 +02:00
Michael Friedrich
7e164291a0
Make AddGroup() unique.
...
Refs #6105
2014-05-02 00:38:46 +02:00
Michael Friedrich
e04d200d36
Allow EvaluateRules() to keep rules for the next iteration.
...
Refs #6105
2014-05-02 00:23:29 +02:00
Michael Friedrich
b268e7d32d
Group assign requires object.groups update too (for apply rules).
...
Refs #6105
2014-05-01 23:53:38 +02:00
Michael Friedrich
01a0496988
Add AddGroup() for host, service, user objects.
...
Refs #6105
2014-05-01 23:53:08 +02:00
Michael Friedrich
3c2dae1804
Evaluate object rules (group assign) before and after creating objects with apply rules.
...
Refs #6105
2014-05-01 23:51:42 +02:00
Michael Friedrich
309c8d7299
Fix dependency logging for hosts and services.
...
Fixes #6104
2014-05-01 22:07:35 +02:00
Gunnar Beutner
630a1a28e2
Make Application::ReadPidFile work on Windows.
...
Refs #5788
2014-05-01 20:09:38 +02:00
Gunnar Beutner
e9fddcc575
Build fix for Windows.
...
Refs #5788
2014-05-01 11:27:43 +02:00
Gerd von Egidy
6ac851ca10
Improve error message when trying to open a config file.
...
Fixes #5666
Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2014-04-30 00:36:49 +02:00
Gunnar Beutner
f989bbd678
Make sure that WQ threads are started after Daemonize().
...
Fixes #6063
2014-04-29 13:17:08 +02:00
Gunnar Beutner
b119c3285b
Change log level for some messages.
...
Fixes #6072
2014-04-29 11:01:28 +02:00
Gunnar Beutner
1c9e985f1d
Rename "optional" attribute to "required" and change the default value.
...
Fixes #6069
2014-04-29 10:41:32 +02:00
Gerd von Egidy
1e321f0959
Fix possible race when the reload-process determines it's parent pid and the true parent has ended
...
Now transfers the true parent pid as parameter to --reload-internal.
Refs #5788
2014-04-29 10:34:02 +02:00
Gerd von Egidy
9f56b6ee74
Fix handling of m_RequestRestart in RunEventLoop, improve reload timeout
...
Refs #5788
2014-04-29 10:34:02 +02:00
Gerd von Egidy
3ece2ba643
Fix logging during shutdown procedure.
...
Refs #5788
2014-04-29 10:34:02 +02:00
Gerd von Egidy
3a294bbd5d
Fork new process from previous daemon on reload.
...
The previously planned logic of forking a new daemon from the reload-process didn't work with
systemd: systemd does not allow long-running processes started from within the reload command.
Replaces parameter --reload with --reload-internal which is used when starting the new daemon.
Refs #5788
2014-04-29 10:34:01 +02:00
Gerd von Egidy
33bd909b71
Add --reload command-line parameter.
...
Refs #5788
2014-04-29 10:34:01 +02:00
Gerd von Egidy
19afcd894a
Split ConfigItem::ActivateItems() into ConfigItem::ValidateItems() and ConfigItem::ActivateItems().
...
Also removes the -Z commandline parameter: won't be needed when this feature is done.
Refs #5788
2014-04-29 10:34:01 +02:00
Gunnar Beutner
17d277ff16
Implement the "order" attribute for command arguments.
...
Refs #5933
2014-04-29 10:33:09 +02:00
Gunnar Beutner
ea24147d0d
Add uptime information to the "icinga" check type.
...
Fixes #6064
2014-04-28 09:23:52 +02:00
Gunnar Beutner
d500097e4b
Fix support for StatsOr and StatsAnd.
...
Fixes #6062
2014-04-27 15:16:57 +02:00
Gunnar Beutner
9b9ee5c425
Add ssh_port parameter for the ssh check command.
...
Refs #5933
2014-04-26 18:31:49 +02:00
Gunnar Beutner
be4324c606
Add version information to the "icinga" check task.
...
Refs #4865
2014-04-26 16:43:38 +02:00
Gunnar Beutner
d617c7b1f6
Implement support for optional command arguments.
...
Fixes #5933
2014-04-26 15:03:38 +02:00
Gunnar Beutner
e6fb8caace
Implement loop detection for cluster links.
...
Refs #5467
2014-04-25 15:07:13 +02:00
Gunnar Beutner
737441f201
Fix deadlock in TlsStream::{Read,Write}.
...
Refs #5467
2014-04-25 15:07:13 +02:00
Michael Friedrich
2b70b282ad
Add {Host,Service}Group attributes: notes, notes_url, action_url.
...
Fixes #6057
2014-04-24 14:48:57 +02:00
Gunnar Beutner
097e0bf4f4
Fix duplicate service contacts.
...
Fixes #6058
2014-04-23 22:41:51 +02:00
Michael Friedrich
d0af8a226b
Fix headers.
2014-04-23 15:57:58 +02:00
Michael Friedrich
7a147d268e
Add group assign/ignore rules.
...
Fixes #5910
2014-04-23 15:50:00 +02:00
Michael Friedrich
c239f84fd7
Revert "Add group apply (creates object only once and sets membership)."
...
This reverts commit 559a4fef67
.
Refs #5910
2014-04-23 14:59:48 +02:00
Michael Friedrich
cdd5c0a716
DB IDO: Add missing dependency attributes.
...
Fixes #5745
2014-04-23 10:33:30 +02:00
Gunnar Beutner
951c61ed16
Use fewer threads by default.
...
Refs #6053
2014-04-22 20:53:46 +02:00
Michael Friedrich
c8b3fde2ef
Drop unused statusmap_image & coords attributes entirely.
...
Fixes #6044
2014-04-22 13:48:06 +02:00
Michael Friedrich
fe1a83ff34
Revert "Add statusmap_image and coords host attributes."
...
This reverts commit 252980a6bd
.
Refs #6044
2014-04-22 12:09:24 +02:00
Gunnar Beutner
e489c98e6d
Make the debug log less spammy.
...
Refs #4865
2014-04-22 07:47:10 +02:00
Gunnar Beutner
66faec2689
Build fix for OS X.
2014-04-22 07:13:16 +02:00
Gunnar Beutner
6b55e7827d
Implement support for environment variables on Windows.
...
Fixes #6049
2014-04-21 20:15:03 +02:00
Gunnar Beutner
6d6e91cd2d
Implement Windows support for the Process class.
...
Fixes #3684
2014-04-21 15:44:36 +02:00
Gunnar Beutner
088b15e964
Build fix for Clang >= 3.4.
...
Fixes #5360
2014-04-20 14:12:20 +02:00
Gunnar Beutner
e749f6eae5
Make sure the installer doesn't overwrite config files.
...
Refs #4865
2014-04-20 11:22:15 +02:00
Gunnar Beutner
9905a4e09b
Fix crash in Timer::AdjustTimers.
...
Refs #4865
2014-04-20 07:21:38 +02:00
Gunnar Beutner
e19948fc95
Add agent setup wizard for Windows.
...
Refs #4865
2014-04-18 12:39:50 +02:00
Gunnar Beutner
0fb55f3404
Fix NSIS installer and Windows service.
...
Refs #4865
2014-04-18 12:15:01 +02:00
Michael Friedrich
0da670d11c
Resolve runtime macros recursively in *_url, notes similar to vars.
...
Fixes #6014
2014-04-17 17:38:02 +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
72f7537fa6
Add modified attributes for user and command vars.
...
Fixes #6043
2014-04-17 15:20:28 +02:00
Michael Friedrich
c7659337b7
Use legacy attribute getters in interfaces.
...
Fixes #6041
2014-04-17 13:50:26 +02:00
Michael Friedrich
0dedd7cf19
Add global Enable{Host,Service}Checks. Update interfaces and external commands.
...
Fixes #6037
Fixes #5975
2014-04-17 11:29:47 +02:00
Michael Friedrich
8cfce66604
Fix custom var override.
...
Refs #5956
Refs #5962
2014-04-16 17:52:12 +02:00
Michael Friedrich
7c0d93ea0a
Add modified attributes for vars dictionary.
...
- new external commands
- raw values for 'vars'
- OnVarsChanged() signal for db_ido customvariablestatus updates
- refactor db_ido customvariable config updates
Refs #5956
Refs #5962
2014-04-16 17:52:12 +02:00
Gunnar Beutner
ed057de512
Add missing ::Stop calls.
...
Refs #4865
2014-04-16 15:01:31 +02:00
Gunnar Beutner
4e7738c5a5
Implement CLR-based checks.
2014-04-16 10:39:13 +02:00
Michael Friedrich
559a4fef67
Add group apply (creates object only once and sets membership).
...
Refs #5910
2014-04-15 14:55:29 +02:00
Gunnar Beutner
060a802d15
Implement support for hosts in the agent component.
...
Refs #4865
2014-04-15 13:38:01 +02:00
Michael Friedrich
f48a6b429b
Add nested group support for {Host,Service,User}Group.
...
Fixes #5858
2014-04-14 21:52:01 +02:00
Gunnar Beutner
9fc5e6217a
Build fix for Windows.
...
Refs #6008
2014-04-14 09:59:00 +02:00
Gunnar Beutner
8c771d51e4
Fix another exception issue with FreeBSD.
...
Refs #6008
2014-04-14 03:02:33 +02:00
Gunnar Beutner
0ea144a64d
Set OpenSSL locking callback.
...
Refs #4865
2014-04-12 21:22:59 +02:00
Gunnar Beutner
06fdaeb2b2
Fix file descriptors not getting closed properly
...
Refs #4865
2014-04-12 08:16:57 +02:00
Gunnar Beutner
2961364e97
Implement support for agent-based checks.
...
Refs #4865
2014-04-12 04:21:09 +02:00
Gunnar Beutner
cdda8d5734
Fix external commands which take no arguments.
...
Fixes #5998
2014-04-11 15:48:19 +02:00
Gunnar Beutner
3002532280
Make sure the scheduling offset is set properly for hosts.
...
Refs #5909
2014-04-11 14:57:16 +02:00
Gunnar Beutner
b8d3d42b7f
Allow trailing comma in arrays.
...
Fixes #5928
2014-04-11 13:51:14 +02:00
Gunnar Beutner
8d3a334183
Mark the PerfdataValue class as "safe".
...
Refs #5909
2014-04-11 07:44:28 +02:00
Gunnar Beutner
e6667c15d3
Support shell-style comments.
...
Fixes #5994
2014-04-10 11:30:01 +02:00
Gunnar Beutner
c123210529
Only resolve user macros (vars.*) recursively.
...
Fixes #5983
2014-04-10 08:46:36 +02:00
Gunnar Beutner
5dbf8f95de
Another build fix for Windows.
...
Refs #5987
2014-04-09 12:44:35 +02:00
Gunnar Beutner
c2b18d4f35
Windows build fix.
...
Refs #5987
2014-04-09 12:38:26 +02:00
Gunnar Beutner
a16ef350e2
Avoid unnecessary copies for DynamicType::GetObjects.
...
Fixes #5987
2014-04-09 12:22:23 +02:00
Gunnar Beutner
ec7c90d5d7
Allow dictionaries to contain null values.
...
Fixes #5986
2014-04-09 10:52:13 +02:00
Gunnar Beutner
91f946a40e
Implement the "return" keyword.
...
Fixes #5985
2014-04-09 10:36:57 +02:00
Gunnar Beutner
606834e190
Rename the notification attributes.
...
Fixes #5906
2014-04-09 10:25:23 +02:00
Gunnar Beutner
e24e128f65
Change the default notification interval to 30 minutes.
...
Refs #5909
2014-04-09 06:50:07 +02:00
Gunnar Beutner
0529d3f1f5
Fix the state filters for "critical" and "unknown".
...
Refs #5979
2014-04-09 00:09:35 +02:00
Gunnar Beutner
dcf7d07c7a
Fix default values for notification filters.
...
Refs #5979
2014-04-08 23:33:25 +02:00
Gunnar Beutner
4a32ca9123
Fix passive check results.
...
Fixes #5970
2014-04-08 15:36:45 +02:00
Gunnar Beutner
80778bad1d
Update components to use the new address fields.
...
Refs #5856
2014-04-08 13:34:48 +02:00
Gunnar Beutner
0fdb9ea21b
Implement attributes for some well-known macros and allow macro recursion.
...
Refs #5856
Fixes #5959
2014-04-08 13:23:24 +02:00
Gunnar Beutner
1c115297f9
Rename the service state constants.
...
Fixes #5964
2014-04-08 09:11:54 +02:00
Gunnar Beutner
e560e1e00c
Remove the HostUnreachable state.
...
Fixes #5944
2014-04-08 08:54:49 +02:00
Gunnar Beutner
2ab208e452
Fix invalid timeout for poll().
...
Fixes #5963
2014-04-08 07:11:38 +02:00
Gunnar Beutner
32e1c02b9a
Clean up some of the type checks.
...
Refs #5925
2014-04-07 22:06:05 +02:00
Michael Friedrich
9ab4b3dd16
Remove the 'Icinga' prefix for global constants.
...
Fixes #5960
2014-04-07 21:42:23 +02:00
Michael Friedrich
aae5f092d4
Log warning if apply rule does not match anywhere.
...
Fixes #5911
Fixes #5957
2014-04-07 15:00:14 +02:00
Gunnar Beutner
cea15e11dc
Implement new state and type filters.
...
Fixes #5906
2014-04-07 14:00:18 +02:00
Michael Friedrich
0e3b387a70
Fix missing target types in ScheduledDowntime apply.
...
Fixes #5955
2014-04-07 13:06:28 +02:00
Michael Friedrich
e97e1cf63f
Throw error on missing 'assign' in 'apply'.
...
Refs #5911
2014-04-07 13:04:13 +02:00
Michael Friedrich
6d8d25175d
DB IDO: Fix AddLogHistory() checkable object.
...
Fixes #5948
2014-04-06 18:19:31 +02:00
Gunnar Beutner
98fba78fe4
Remove the escape_macros attribute.
...
Refs #5855
2014-04-06 10:45:50 +02:00
Gunnar Beutner
5c671eab15
Update documentation.
...
Refs #5925
2014-04-06 08:28:28 +02:00
Gunnar Beutner
ad42367999
Refactor name helper classes a bit.
...
Refs #5925
2014-04-06 08:15:07 +02:00
Gunnar Beutner
020eaf99ab
Fix yet another validation issue.
...
Refs #5925
2014-04-05 23:23:49 +02:00
Gunnar Beutner
8d81f4b90a
Fix another bug with relative object names.
...
Refs #5925
2014-04-05 23:23:49 +02:00
Gunnar Beutner
70062b5884
Make sure that Utility::GlobRecursive doesn't recurse into . and ..
...
Fixes #5946
2014-04-05 23:23:42 +02:00
Gunnar Beutner
bc4cacfee9
Fix validation problem with relative object names.
...
Refs #5925
2014-04-05 23:23:39 +02:00
Gunnar Beutner
00fd51e628
Implement relative object names.
...
Fixes #5925
2014-04-05 22:17:37 +02:00
Michael Friedrich
d3b67cf2ed
Fix host custom attribute 'address' as runtime macro.
...
Refs #5855
2014-04-05 19:08:46 +02:00
Michael Friedrich
b9415aad3d
Fix typo.
...
Refs #5855
2014-04-05 17:53:37 +02:00
Michael Friedrich
4966dfd241
Provide 1.x fallback using GetName() for address macros.
...
Refs #5855
2014-04-05 17:45:28 +02:00
Michael Friedrich
e309a5d330
Access custom attributes as ${host,service,user}.vars.<name>$.
...
Refs #5855
2014-04-05 17:13:17 +02:00
Michael Friedrich
34092f0a52
Fix legacy attributes by object type.
2014-04-05 17:13:05 +02:00
Gunnar Beutner
d64823858d
Fix validation for ScheduledDowntime objects.
...
Refs #5945
2014-04-05 16:27:26 +02:00
Gunnar Beutner
4ffcd4f403
Fix validation for Notification objects.
...
Fixes #5945
2014-04-05 16:26:51 +02:00
Gunnar Beutner
5e38c81eb5
Implement apply target types.
...
Fixes #5924
2014-04-05 13:53:55 +02:00
Gunnar Beutner
5ccdf017ac
Fix macros.
...
Refs #5855
2014-04-05 09:24:11 +02:00
Gunnar Beutner
c42a582307
Rename "short_name", "host" and "sevice" attributes.
...
Fixes #5857
2014-04-05 09:15:40 +02:00
Michael Friedrich
31e3377897
Drop duplicate attribute.
...
Refs #5855
2014-04-04 23:03:20 +02:00
Michael Friedrich
09cbf18b26
Implement 'env' dictionary instead of 'export_macros' array.
...
Revamp notification runtime macros too.
Refs #5855
2014-04-04 22:57:56 +02:00
Michael Friedrich
aba4f1a0d5
Implement $user.<name>$ runtime macros.
...
Refs #5855
2014-04-04 21:36:47 +02:00
Michael Friedrich
0a0399826f
Implement ${host,service}.<name>$ runtime macros.
...
Refs #5855
2014-04-04 20:09:23 +02:00
Michael Friedrich
e375f15e5b
Implement global runtime macros as $icinga.<name>$.
...
Refs #5855
2014-04-04 19:35:47 +02:00
Michael Friedrich
af621214d4
DB IDO: Dump application and command vars.
...
Refs #5855
2014-04-04 16:53:03 +02:00
Michael Friedrich
17b87c9b2a
Add CompatUtility::IsLegacyAttribute().
...
Refs #5855
2014-04-04 16:35:45 +02:00
Gunnar Beutner
23e9630682
Implement host checks.
...
Refs #5919
2014-04-04 15:57:54 +02:00
Michael Friedrich
5c58eb368c
Merge 'macros' and 'custom' attributes into 'vars', part 1.
...
Refs #5855
2014-04-03 11:35:25 +02:00
Gunnar Beutner
5c72e52903
Implement operator - for arrays.
...
Fixes #5923
2014-04-02 17:39:36 +02:00
Gunnar Beutner
41d0dde52e
Allow functions to return values.
...
Fixes #5922
2014-04-02 17:27:04 +02:00
Gunnar Beutner
0683fca535
Allow anonymous functions to be garbage-collected.
...
Fixes #5921
2014-04-02 17:27:04 +02:00
Gunnar Beutner
ebf8ed3019
Remove support for external scripting languages.
...
Fixes #5920
2014-04-02 17:27:04 +02:00
Michael Friedrich
a05c31cda2
CompatUtility: Fix host 2d_coords.
...
Fixes #5917
2014-04-02 14:43:40 +02:00
Michael Friedrich
3fe169cd7a
Graphite/PerfdataWriter: Add host perfdata.
...
Fixes #5908
2014-04-02 14:13:24 +02:00
Gunnar Beutner
2faf17cb14
Fix column information for config errors.
...
Refs #5901
2014-04-01 11:43:53 +02:00
Gunnar Beutner
5eca503362
Support new-lines in addition to commas to separate commands.
...
Fixes #5901
2014-04-01 09:45:57 +02:00
Gunnar Beutner
2c17305536
Implement additional arguments for log().
...
Fixes #5902
2014-04-01 09:33:54 +02:00
Gunnar Beutner
e3d96eb62d
Build fix for FreeBSD.
2014-03-31 18:30:57 +02:00
Gunnar Beutner
036fd3303f
Replace $plugindir$ macro with a constant.
...
Fixes #5877
2014-03-31 13:11:36 +02:00
Gunnar Beutner
b924941488
Fix ShowCodeFragment column numbers.
...
Refs #5893
2014-03-31 12:44:18 +02:00
Gunnar Beutner
d874cbfe5b
Fix: Crash when there's a config error in the first line / first column.
...
Fixes #5893
2014-03-31 09:41:07 +02:00
Gunnar Beutner
aba2a09245
Build fix for FreeBSD/OS X.
2014-03-31 00:08:43 +02:00
Michael Friedrich
2f59aa38a3
Fix unknown attribute 'notification_type_filter'.
...
Fixes #5887
2014-03-30 16:15:49 +02:00
Gunnar Beutner
b58c9ee3f8
Build fix.
...
Refs #5780
2014-03-30 15:08:29 +02:00
Gunnar Beutner
397fee13ff
Allow "object" and "apply" in AST expressions.
...
Refs #5870
2014-03-30 15:04:53 +02:00
Gunnar Beutner
7a6172c135
Remove support for the deprecated "var" and "set" keywords.
...
Refs #
2014-03-30 10:29:52 +02:00
Gunnar Beutner
5179eebf09
Allow rterm in indexer ops.
...
Refs #5870
2014-03-30 10:00:11 +02:00
Gunnar Beutner
ec0fdd3fd2
Fix operator precedence.
...
Refs #5870
2014-03-30 05:04:58 +02:00
Gunnar Beutner
04dcceef59
Implement Utility::GetSymbolName and Utility::GetSymbolSource for Windows.
...
Refs #5870
2014-03-30 01:20:58 +01:00
Gunnar Beutner
14084735da
Make sure we evaluate "apply" rules in the right order.
...
Refs #5870
2014-03-30 01:20:58 +01:00
Gunnar Beutner
d00a839620
Fix incorrect debug info for "apply" rules.
...
Refs #5870
2014-03-30 01:20:58 +01:00
Gunnar Beutner
9897358fc6
Add missing lock in DeserializeObject().
...
Refs #5870
2014-03-30 01:20:57 +01:00
Gunnar Beutner
eb30f69454
Fix crash in DiagnosticInformation().
...
Refs #5870
2014-03-30 01:20:57 +01:00
Gunnar Beutner
64aa5d1b09
Dump AST execution state in debug mode.
...
Refs #5878
2014-03-29 13:48:04 +01:00
Gunnar Beutner
6ef2cdb0eb
Implement apply support for dependencies.
...
Refs #5880
2014-03-28 23:03:53 +01:00
Gunnar Beutner
66e769672c
Fix failed assertion in ConfigItem::GetProperties.
...
Refs #5870
2014-03-28 23:01:35 +01:00
Gunnar Beutner
33ae12d084
Implement apply support for scheduled downtimes and notifications.
...
Refs #5880
2014-03-28 23:01:33 +01:00
Gunnar Beutner
8a1bbc0ace
Make the real object name available for use in templates.
...
Refs #5882
2014-03-28 19:45:07 +01:00
Gunnar Beutner
adce8e95bc
Move the apply rule handler to the Service class.
...
Refs #5878
2014-03-28 19:45:02 +01:00
Gunnar Beutner
fa11e5a97e
Update example config.
...
Refs #5878
2014-03-28 16:32:15 +01:00
Gunnar Beutner
0e79abb8f2
Implement instance variable "templates" for config objects.
...
Refs #5884
2014-03-28 14:46:19 +01:00
Gunnar Beutner
8ab39194f1
Unknown attributes should be a config error.
...
Refs #5883
2014-03-28 14:25:16 +01:00
Gunnar Beutner
54063f0b9f
Rename __name and __type properties.
...
Refs #5870
2014-03-28 14:17:55 +01:00
Gunnar Beutner
7ee1278118
Implement the new syntax for the "apply" keyword.
...
Refs #5878
2014-03-28 14:00:00 +01:00
Gunnar Beutner
b289987500
Implement the "." operator.
...
Refs #5876
2014-03-28 13:59:56 +01:00
Gunnar Beutner
de81baf515
Remove inline service/notification/downtime definitions.
...
Refs #5875
2014-03-28 11:22:39 +01:00
Gunnar Beutner
8958d2f69f
Implement the "import" keyword.
...
Refs #5869
2014-03-28 11:22:36 +01:00
Gunnar Beutner
47fe59e4de
Windows build fix.
2014-03-26 08:23:54 +01:00
Gunnar Beutner
536562cddd
Build fixes.
...
Refs #5846
2014-03-24 12:54:23 +01:00
Gunnar Beutner
dc415a620a
Merge branch 'feature/config-parser-5846' into next
...
Fixes #5846
2014-03-24 12:02:57 +01:00
Gunnar Beutner
013690e486
Remove __parent element for +=, -=, *= and /= operators.
...
Refs #5846
2014-03-24 11:34:41 +01:00
Gunnar Beutner
c66ac66219
Allow semi-colons as separators for lterms.
...
Refs #5846
2014-03-24 11:24:01 +01:00
Gunnar Beutner
8e699ac0fa
Fix scoping rules for object definitions.
...
Refs #5846
2014-03-24 11:23:47 +01:00
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
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