Commit Graph

41 Commits

Author SHA1 Message Date
Michael Friedrich 5812dae55b Dev: Allow to delay main worker process in order to attach with LLDB
Introduce `-DInternal.DebugWorkerDelay=120` and sleep inside `RunWorker()`.

Rationale: With 2.11 we've introduced a real umbrella process where the
main process is spawned as child fork. Running icinga2 in foreground on
a macOS shell with LLDB will now exit, and not follow the child process.

LLDB doesn't support `follow-fork-mode child` like GDB and therefore we
need to:

- Print the child process PID
- Sleep for X seconds to allow the developer to run `lldb -p <PID>`, set breakpoints, etc.

This commit also documents all available debug build enabled internal constants.
2020-01-29 13:21:05 +01:00
Michael Friedrich c56f23c02c Docs: Add lambda closures 2019-12-03 15:34:37 +01:00
Michael Friedrich a4655b29e1 Docs: Add ternary operator 2019-11-15 13:38:01 +01:00
Michael Friedrich 5aa07b51a2 Docs: Rename 'custom attribute' to 'custom variable'
refs #6830
2019-07-19 14:38:59 +02:00
Michael Friedrich 36140fd17e Docs: Update URLs from rename 2019-07-18 16:34:36 +02:00
Michael Friedrich 844f76dd1a Docs: Mark include_zones as internal consumed functionality
Asked during the Icinga Advanced training.
2019-06-04 13:11:17 +02:00
Michael Friedrich 863af5afb4 Docs: Update version specific changes for 2.11
- Notification commands 2.7 dropped, reference to MTAs added
- Sysconfig variable locations
- Version bumps
2019-04-08 14:08:14 +02:00
Michael Insel 081d88436f Unify documentation code formatting
This unifies the documentation code formatting to use only backticks.
2019-03-26 09:11:03 +01:00
Michael Friedrich 002f8e36f5
Merge pull request #7001 from Icinga/bugfix/doc-assignment-5430
Assignment operators doc: tell what the { } are for
2019-03-12 14:12:44 +01:00
Alexander A. Klimov 5e08e033ad Assignment operators doc: tell what the { } are for
refs #5430
2019-03-08 16:39:23 +01:00
Michael Friedrich ab7a799369 Implement ReloadTimeout constant and wait for enqueued checks on Stop() 2019-02-25 09:03:47 +01:00
Jean Flach d09085d72f Fix operator precedence table
Fixes #5573
2018-09-10 09:58:27 +02:00
Jean Flach dec50bcf93
Merge pull request #6502 from jenslink/patch-2
Update 17-language-reference.md
2018-08-24 14:37:00 +02:00
Gunnar Beutner 15baa8e012 Update documentation 2018-08-14 15:26:59 +02:00
Gunnar Beutner e678fa1aa5 Refactor Application::*Const() 2018-08-13 15:27:05 +02:00
Gunnar Beutner 1a8692d972 Implement support for namespaces 2018-08-13 13:44:31 +02:00
Michael Friedrich 02009525a1 Update documentation and add upgrading notes 2018-08-10 12:53:06 +02:00
Michael Friedrich b350512b11 Rename to Environment constant 2018-08-09 13:19:33 +02:00
Markus Frosch eb02d9041d Refactor environment for API connections
* Const renamed to `ApiEnvironment`
* Handling moved to ApiListener
* Now a property of ApiListener
2018-08-09 13:19:33 +02:00
Michael Friedrich 7012ce4129 Update documentation for new constants 2018-08-09 11:55:05 +02:00
Michael Friedrich 542775294e Docs: Improve the global constants section
Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2018-08-07 17:15:14 +02:00
Markus Frosch 9fbc40615a Improve path handling in cmake and daemon 2018-08-07 14:10:26 +02:00
Gunnar Beutner 8bfd419702 Implement references 2018-08-07 07:44:48 +02:00
Jens Link 1613a855e7
Update 17-language-reference.md
Changed ::1 to 2001:db8:1234::42.  RFC 3849 reserves 2001:db8/32 for use in documentation and something that looks like a "real" global IPv6 address is much better in an example than using ::1 (localhost). Using a private IPv4 address and IPv6 localhost in an example make no sense to me.
2018-07-28 12:00:35 +02:00
Gunnar Beutner 2eb46f1203 Implement support for optionally specifying the 'var' keyword in 'for' loops 2018-07-03 11:03:22 +02:00
Gunnar Beutner 9c1e00eb94 Introduce the 'Environment' variable 2018-05-15 12:02:15 +02:00
Michael Friedrich 2c5e142172 Add ApplicationVersion built-in constant
refs #5784
2018-04-06 13:41:22 +02:00
Jean Flach 8d237e10c5 Add Upgrading to Icinga 2.8.2 chapter 2018-02-22 11:29:12 +01:00
Jean Flach aea43ddeb9
Merge pull request #5850 from Icinga/fix/prepare-dirs-5793
init script security fixes
2018-02-21 13:02:40 +01:00
Michael Insel 60962c0897 Add missing word in operator documentation
This adds the missing word `sorted` to the operators documentation.
2018-02-20 17:28:08 +01:00
Jean Flach 87adc88989 Remove need for init.conf 2018-02-20 14:16:43 +01:00
Noah Hilverling d8c31353e4 Update documentation for MaxConcurrentChecks and concurrent_checks
refs #4841
2018-01-29 14:50:24 +01:00
Gunnar Beutner 6506a89db3 Update default config and documentation for the "library" keyword 2018-01-22 08:18:05 +01:00
Michael Friedrich 1da5c53fee Enhance Monitoring Basics in the documentation
This commit adds documentation for

* custom attributes value types and nested dictionaries
* better introduction into apply rules and usage examples
* better apply for iterations and explanations
* notifications with users on the host/service objects explained in a dedicated chapter
* command arguments and set_if - which values are supported
* macro() as scoped function
* alternative host check command

This also changes all code and config snippets to use
three backticks instead of four spaces indent.

fixes #5663
fixes #5664
fixes #5665
fixes #5666
fixes #5667
fixes #5186
fixes #5060
fixes #5662
2017-10-10 21:08:19 +02:00
Blerim Sheqa eb88217e2d Update docs for better compatibility with mkdocs
* Rename files to allow easy ordering
* Update links inside markdown according to new file names
* Move HTML links (<a>...</a>) to the end of the header lines
  * This is necessary to allow mkdocs to parse headers correctly and display them in the TOC
  * Following sed command was used: sed -i .bu 's/\(<a.*a>\) \(.*\)/\2 \1/g' $filename
2017-07-12 20:46:12 +02:00
Gunnar Beutner c8b4fee843 Make rlimits configurable by adding three variables: RLimitFiles, RLimitProcesses and RLimitStack
refs #5367
2017-06-23 12:42:12 +02:00
Gunnar Beutner f9feb41877 Implement support for handling exceptions in user scripts 2017-06-13 14:03:41 +02:00
Michael Friedrich b2bac92ca3 Add more assign where expression examples
fixes #5167
2017-04-12 11:30:18 +02:00
Gunnar Beutner a7b0cb5f7e Ensure we don't leak file descriptors to child processes
fixes #8900
2016-10-04 14:08:48 +02:00
Gunnar Beutner 78cd56e277 Implement support for default templates
fixes #12575
2016-08-28 10:27:43 +02:00
Michael Friedrich 4a3b33e3f5 Docs: Rewrite cluster and client chapter from scratch; add service monitoring chapter
Also apply a new structure.

Deleted the old cluster and client documentation and started "fresh".

This commit also includes various images used in the newly written
"Distributed Monitoring" chapter for better understanding.

fixes #12386
2016-08-14 17:56:38 +02:00