Gunnar Beutner
9c3e399188
Remove unnecessary includes.
...
Fixes #6189
2014-05-11 18:11:32 +02:00
Michael Friedrich
d06d4f2540
Include monitoring plugin commands seperately.
...
Fixes #6130
2014-05-10 19:02:51 +02:00
Gunnar Beutner
45270f1bb8
Refactor the agent and cluster components.
...
Refs #6107
2014-05-08 09:13:04 +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
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
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
Gunnar Beutner
951c61ed16
Use fewer threads by default.
...
Refs #6053
2014-04-22 20:53:46 +02:00
Gunnar Beutner
ed057de512
Add missing ::Stop calls.
...
Refs #4865
2014-04-16 15:01:31 +02:00
Gunnar Beutner
8c771d51e4
Fix another exception issue with FreeBSD.
...
Refs #6008
2014-04-14 03:02:33 +02:00
Michael Friedrich
9ab4b3dd16
Remove the 'Icinga' prefix for global constants.
...
Fixes #5960
2014-04-07 21:42:23 +02:00
Michael Friedrich
ce737ff2f3
Change copyright header (again).
...
Fixes #5424
2014-03-19 11:42:47 +01:00
Gunnar Beutner
4d6088bee1
Stop checks during shutdown.
...
Fixes #5784
2014-03-17 09:04:19 +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
e534f9bc1b
Add Cluster Health Check.
...
Fixes #5438
2014-02-07 15:19:37 +01:00
Michael Friedrich
555d72150a
Update copyright header.
...
Fixes #5424
2014-01-09 00:32:11 +01:00
Gunnar Beutner
b2ec194a82
Update log level for some messages.
...
Fixes #5357
2013-12-17 14:26:48 +01:00
Gunnar Beutner
37179cdf32
Improve config compiler performance.
...
Refs #5327
2013-12-13 14:07:37 +01:00
Gunnar Beutner
98733fc105
Add timestamp to crash dumps.
...
Fixes #5315
2013-12-12 14:38:34 +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
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
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
d4cc6fb5e0
Improve compatibility with Solaris.
...
Fixes #5129
2013-11-24 01:00:35 +01:00
Gunnar Beutner
92dd32eb68
Implement support for high-level stack traces.
...
Refs #5085
2013-11-21 09:42:27 +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
1676af8b2d
Implement signal handler for SIGTERM.
...
Fixes #5087
2013-11-17 20:04:27 +01:00
Gunnar Beutner
e546cd854d
Clean up the DynamicType class.
...
Refs #5036
2013-11-08 16:07:21 +01:00
Gunnar Beutner
a84536bea3
Implement serializer support for arbitrary classes.
...
Fixes #5024
2013-11-08 14:08:59 +01:00
Gunnar Beutner
3cfccba1ea
Implement "hello world" test app.
...
Refs #4995
2013-11-05 08:34:34 +01:00
Gunnar Beutner
f2307c4242
Add cmake build files.
...
Refs #4962
2013-11-03 13:45:26 +01:00
Gunnar Beutner
db4b3b78d6
Implement class compiler.
...
Refs #4963
2013-10-28 14:27:36 +01:00
Gunnar Beutner
c4941bb3c5
Close all file descriptors before restarting.
...
Refs #4905
2013-10-17 18:24:35 +02:00
Gunnar Beutner
fa845775a2
Fix crashes when restarting Icinga.
2013-10-17 10:56:42 +02:00
Gunnar Beutner
fdc3f32544
Make bug message somewhat more useful.
2013-10-10 14:29:23 +02:00
Gunnar Beutner
fe5c925a63
Windows build fix.
2013-10-09 15:03:24 +02:00
Gunnar Beutner
3f922e5eac
Implement Application::GetVersion().
...
Fixes #4801
2013-10-09 08:46:31 +02:00
Gunnar Beutner
bf1a800e39
Update copyright information.
2013-09-25 07:45:56 +02:00
Gunnar Beutner
7961dc4e78
Remove DynamicObject::Start call.
2013-09-11 15:38:04 +02:00
Gunnar Beutner
15fae2bf2a
Refactor how Application objects work.
2013-09-10 16:03:36 +02:00
Gunnar Beutner
a14e72c292
Fix null ptr for Application::GetInstance().
2013-09-09 14:10:04 +02:00
Gunnar Beutner
86e2f3dd81
Windows build fix.
2013-09-01 06:01:27 +02:00
Gunnar Beutner
e8c61a578f
Implement restarting Icinga.
2013-08-30 14:27:24 +02:00
Gunnar Beutner
519ce78727
Implement script variables IcingaPrefixDir, IcingaLocalStateDir, IcingaPkgLibDir, IcingaPkgDataDir and IcingaStatePath.
2013-08-30 12:04:24 +02:00
Gunnar Beutner
7f52e04a01
Implement OS-specific support for thread names.
2013-08-30 10:19:32 +02:00
Gunnar Beutner
f134ed61bc
Fix: ::Start must be called after restoring the state file.
...
Fixes #4654
2013-08-29 10:17:12 +02:00
Gunnar Beutner
58a932ab6f
Add error info for ftruncate() call.
2013-08-28 10:48:19 +02:00
Gunnar Beutner
f39f69d390
Refactor ASSERT macro.
2013-08-28 08:18:58 +02:00
Gunnar Beutner
e9e55cd8c0
Remove the replication feature and clean up the code.
2013-08-26 14:56:38 +02:00
Gunnar Beutner
23b75fd30d
Fix crash when application config item is missing.
2013-04-08 10:02:06 +02:00
Gunnar Beutner
fd3e92ea0c
Refactor AsyncTasks.
2013-03-25 17:36:15 +00:00
Gunnar Beutner
97fee26289
Remove @threadsafety doc strings
...
Fixes #3889
2013-03-22 12:02:20 +01:00
Gunnar Beutner
734f76af96
Windows build fix.
2013-03-18 22:40:40 +01:00
Gunnar Beutner
2a8bc3ca0f
Refactor #includes (Part 5).
2013-03-18 17:39:40 +01:00
Gunnar Beutner
c3975af6ec
Refactor #includes (Part 4).
2013-03-18 11:02:18 +01:00
Gunnar Beutner
19726d2429
Linux build fix.
2013-03-17 22:14:40 +01:00
Gunnar Beutner
0bb0711d72
Refactor #includes (Part 2).
2013-03-16 21:18:53 +01:00
Gunnar Beutner
3073200b53
Cleaned up #includes (Part 1).
2013-03-15 18:21:29 +01:00
Gunnar Beutner
98f7515eee
Fix writing the PID file if there is no previous PID file.
2013-03-12 16:02:35 +01:00
Gunnar Beutner
62cb4e14a6
Make mode variable const.
2013-03-12 14:50:40 +01:00
Gunnar Beutner
9ea0cb4353
Truncate the PID file before writing the new PID.
2013-03-12 14:06:59 +01:00
Gunnar Beutner
4b2d828b99
Refactor the init script and remove the -d option.
...
Fixes #3666
2013-03-12 11:48:45 +01:00
Gunnar Beutner
412a44e697
Windows build fix.
2013-03-11 14:08:55 +01:00
Gunnar Beutner
d8edd98e41
Add more information to exceptions.
2013-03-11 13:47:17 +01:00
Gunnar Beutner
56dc7c4e0a
Add missing "*/".
2013-03-09 12:56:40 +01:00
Gunnar Beutner
cada2abeb3
Implement automated stacktraces for exceptions.
2013-03-07 19:44:39 +01:00
Gunnar Beutner
e2416b5b54
Check return values of SymGetLineFromAddr64 and SymFromAddr.
2013-03-07 16:00:10 +01:00
Gunnar Beutner
e54604c0e3
*NIX build fix.
2013-03-07 15:16:01 +01:00
Gunnar Beutner
fa3f01667f
Implemented stacktrace support for Windows.
2013-03-07 15:00:26 +01:00
Gunnar Beutner
70fa21dfbc
Various bugfixes.
2013-03-06 11:04:20 +01:00
Gunnar Beutner
be95f3171d
Even more code refactoring.
2013-03-04 15:52:42 +01:00
Gunnar Beutner
48485c5f26
More lock refactoring. Yay.
2013-03-02 09:07:47 +01:00
Gunnar Beutner
572a477da3
Refactored object locking code.
2013-03-01 12:07:52 +01:00
Gunnar Beutner
d011f09f32
Windows build fixes.
2013-02-24 08:52:09 +01:00
Gunnar Beutner
2ef255b9f6
Fine-grained locks (WIP, Part 9).
2013-02-24 01:10:34 +01:00
Gunnar Beutner
4306c6c07a
Fine-grained locks (WIP, Part 8).
2013-02-21 16:12:50 +01:00
Gunnar Beutner
997ca3a77a
Fine-grained locks (WIP, Part 6).
2013-02-19 23:02:08 +01:00
Gunnar Beutner
3dace35cf1
Fine-grained locks (WIP, Part 3).
2013-02-18 23:44:24 +01:00
Gunnar Beutner
a4c7052a6e
Fine-grained locks (WIP, Part 2).
2013-02-18 14:40:24 +01:00
Gunnar Beutner
c63c28dd9c
Fine-grained locks (WIP, Part 1).
2013-02-17 19:14:34 +01:00
Gunnar Beutner
172938b19d
Bugfix: Unlock thread mutex while waiting for events.
2013-02-16 07:27:45 +01:00
Gunnar Beutner
4e03b916ff
Bugfix: Set main EventQueue's owner as early as possible.
2013-02-15 09:58:38 +01:00
Gunnar Beutner
023d17c675
Implement per-thread event queues.
2013-02-15 06:48:30 +01:00
Gunnar Beutner
d3928a7e69
Pass argc and argv to the Python interpreter.
2013-02-14 16:18:58 +01:00
Gunnar Beutner
c91191e701
Implement global mutex (for use by scripting languages).
2013-02-14 10:55:47 +01:00
Gunnar Beutner
26e2da7a7d
Refactor the FD_CLOEXEC/O_NONBLOCK code.
2013-02-13 13:03:21 +01:00
Gunnar Beutner
fac2304ae5
Fixed incorrect use of F_SETFL.
2013-02-13 12:47:51 +01:00
Gunnar Beutner
2893134940
Make Application::ProcessEvents() static.
2013-02-13 07:25:36 +01:00
Gunnar Beutner
f6f771a3f6
Remove support for _DEBUG env var.
...
Fixes #3688
2013-02-11 13:46:02 +01:00
Gunnar Beutner
ad04a02153
Bugfix: Fixed incorrect variable name.
2013-02-08 10:30:32 +01:00
Gunnar Beutner
513b3d6820
Bugfix: Don't leak lock file's fd into child processes.
2013-02-08 10:23:01 +01:00
Gunnar Beutner
b887f14d96
Use BOOST_THROW_EXCEPTION instead of boost::throw_exception()
...
Fixes #3636
2013-02-06 12:51:12 +01:00
Gunnar Beutner
53705d16dc
Implement AsyncTask::Wait() and make completion callbacks optional.
2013-02-06 10:56:06 +01:00
Gunnar Beutner
dbf762e771
Use boost::program_options to parse arguments.
...
Fixes #3536
Fixes #3184
2013-02-02 23:22:27 +01:00
Gunnar Beutner
f2e17bdd09
Fixed compiler warnings (-Wextra).
2013-02-02 22:13:54 +01:00