Commit Graph

1351 Commits

Author SHA1 Message Date
Gunnar Beutner f4d8791424 Fixed parameters for pipe2() call. 2013-02-13 21:05:58 +01:00
Gunnar Beutner 1d807d91bc Implemented dictionary support for commands. 2013-02-13 20:08:09 +01:00
Gunnar Beutner 2118e4b490 Renamed 'alias' property to 'display_name'. 2013-02-13 19:32:44 +01:00
Gunnar Beutner c3dce7893c Removed array support, implemented support for anonymous dictionary items. 2013-02-13 18:43:56 +01:00
Gunnar Beutner cf094fe4b3 Bugfix: the main task fd must not be non-blocking. 2013-02-13 15:41:14 +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 4f2021633b Fixed incorrect use of O_CLOEXEC. 2013-02-13 12:39:47 +01:00
Gunnar Beutner d076bb0a93 Fixed another file descriptor leak. 2013-02-13 12:34:25 +01:00
Gunnar Beutner a1617e7494 EndpointManager: Decrease timer intervals. 2013-02-13 12:22:18 +01:00
Gunnar Beutner 767a2909b6 Config: Implement arrays. 2013-02-13 12:19:02 +01:00
Gunnar Beutner 34cc7347ca Bugfix: Reschedule the delegation timer after starting it. 2013-02-13 12:18:36 +01:00
Gunnar Beutner d2650df8b6 Cleaned up the Process class. 2013-02-13 11:48:19 +01:00
Gunnar Beutner d6fcc33be4 Refactor the Process class. Remove the Windows implementation for now. 2013-02-13 11:39:24 +01:00
Gunnar Beutner b17cafd0cf Make the delegation interval configurable. 2013-02-13 09:59:38 +01:00
Gunnar Beutner 800750c415 Build fix. 2013-02-13 07:48:08 +01:00
Gunnar Beutner b0d8c40d20 Process: repeat read() until we get EAGAIN. 2013-02-13 07:39:26 +01:00
Gunnar Beutner a80872b314 Use pipe2() instead of pipe() when possible. 2013-02-13 07:33:14 +01:00
Gunnar Beutner 2893134940 Make Application::ProcessEvents() static. 2013-02-13 07:25:36 +01:00
Gunnar Beutner d744f9fb7c Prefer libc's implementation of execvpe over our own. 2013-02-12 14:48:15 +01:00
Gunnar Beutner c878065a1f Don't load the replication component on standalone instances.
Fixes #3687
2013-02-11 23:37:39 +01:00
Gunnar Beutner a8e584811f Added the null-service template. 2013-02-11 23:19:33 +01:00
Gunnar Beutner cf920cd0f2 Wait for child processes before getting new tasks from the list. 2013-02-11 23:18:26 +01:00
Gunnar Beutner c6e8013238 Don't send notifications for services that are unreachable, in a downtime or acknowledged. 2013-02-11 16:39:55 +01:00
Gunnar Beutner 18ed997696 Implemented some more dynamic macros. 2013-02-11 16:29:23 +01:00
Gunnar Beutner 07acb1c553 Bugfix for slave notification objects. 2013-02-11 16:25:32 +01:00
Gunnar Beutner 8ab803aac0 Reschedule service when check interval is changed.
Fixes #3681
2013-02-11 16:11:11 +01:00
Gunnar Beutner 72c4ef57d6 FreeBSD build fix. 2013-02-11 16:05:44 +01:00
Gunnar Beutner 72c46deca9 Fixed memory leak when using execvpe() with vfork(). 2013-02-11 14:43:19 +01:00
Gunnar Beutner 2304256b41 Remove the icinga2_DEPENDENCIES variable in icinga-app/Makefile.am.
Fixes #3653
2013-02-11 14:07:52 +01:00
Gunnar Beutner 2501ff805a Remove Host::OnInitCompleted and clean up the classes' constructors.
Fixes #3678
2013-02-11 14:01:52 +01:00
Gunnar Beutner f6f771a3f6 Remove support for _DEBUG env var.
Fixes #3688
2013-02-11 13:46:02 +01:00
Gunnar Beutner 4888a26c0e Checker: Use weak_ptrs to keep track of services. 2013-02-11 13:05:08 +01:00
Gunnar Beutner 0e353c7b29 Fixed some more memory leaks. 2013-02-11 10:10:17 +01:00
Gunnar Beutner 3221c043e4 Fixed some memory leaks in the config parser. 2013-02-11 09:55:32 +01:00
Gunnar Beutner 5fab16a223 Fixed uninitialized variable bug. 2013-02-11 06:38:30 +01:00
Gunnar Beutner a3f03928d7 Process: use read() on *NIX. 2013-02-11 00:05:11 +01:00
Gunnar Beutner bddd9ebf0b Implemented poll() support for Process tasks.
Fixes #3035
2013-02-10 23:31:11 +01:00
Gunnar Beutner 7ce98ed374 Use multiple worker threads for Process tasks. 2013-02-10 22:29:42 +01:00
Gunnar Beutner aa2322abbb Fixed deadlock in Process::WorkerThreadProc. 2013-02-10 21:53:08 +01:00
Gunnar Beutner 67aef452e5 Windows build fix. 2013-02-10 19:09:35 +01:00
Gunnar Beutner bd80f4597e Windows build fix. 2013-02-10 18:57:23 +01:00
Gunnar Beutner 4e9afd7c2c Build fix V2. 2013-02-10 17:44:03 +01:00
Gunnar Beutner 8667bba7e0 Build fix for *NIX systems with a non-GNU libc. 2013-02-10 17:15:18 +01:00
Gunnar Beutner 0d1cad864c Fixed soft service recoveries. 2013-02-10 15:07:32 +01:00
Gunnar Beutner 0e7a3c67ec Bugfixes for the Process class. 2013-02-10 12:45:39 +01:00
Gunnar Beutner dd93206113 Fixed exception in command pipe thread after sending Icinga SIGTERM. 2013-02-10 12:42:14 +01:00
Gunnar Beutner 7484b4682a Bugfix: Ignore missing macro dicts. 2013-02-10 01:56:26 +01:00
Gunnar Beutner fc6df0ecbd Fixed 1 second delay for child processes. 2013-02-10 01:35:40 +01:00
Gunnar Beutner ee37e0cace Implemented environment-based macros. 2013-02-09 23:02:33 +01:00