Commit Graph

1592 Commits

Author SHA1 Message Date
dominik-r-s 4afeda4758
09-object-types: notifications: states filter ignored for Acknowledgements! 2018-09-05 16:46:36 +02:00
Michael Friedrich 709caaa578
Merge pull request #6590 from Icinga/fix/custom-var-workaround
Update workaround for custom vars
2018-09-04 16:41:55 +02:00
Jean Flach e1a963f0ac
Update workaround for custom vars
This updates #6572 which did not work
2018-09-04 13:33:48 +02:00
Alan Jenkins a21166dcf8 Fix logging under systemd
icinga2.service used `-e ${ICINGA2_ERROR_LOG}`, but this is documented
as having no effect without `-d`.  Furthermore, icinga2 under systemd
unconditionally logged everything to the system log (but without setting
the log level etc), which contradicted the documentation.  (Issue #6339)

Stop icinga2 on systemd from logging to stdout - and hence the system log -
once it has finished starting up.  Just like when you start icinga2 from a
terminal using `-d`.  And just like -d, we stop logging fatal errors to
stderr, and instead write to the log file passed with `-e`.

As per docs, mainlog (icinga2.log) is already enabled by default.  And
pre-startup messages including config errors will still appear in the
system log.

This uses a new option --close-stdio, which has the same effect on logging as
--daemonize, but does not fork or call setsid().

For this purpose, I moved setsid() up and into Daemonize().

Consequence of that last point: if anyone is weird enough to specify a TTY
device file as the fatal error log (-e option), that will become icinga's
controlling terminal, which you generally don't want as a daemon.  This
makes it consistent with the existing behaviour for icinga mainlog.  For
this reason you're supposed to use O_NOCTTY in Linux daemons.  But I wasn't
sure where icinga would want to put the ugly `#ifdef _WIN32 ... #else ...`.
2018-08-25 10:21:06 +01:00
Michael Friedrich e4e28421e8
Merge pull request #6532 from Icinga/feature/allow-down-times-to-apply-on-child-hosts-3935
Add child_options to ScheduledDowntime
2018-08-24 15:14:58 +02:00
Michael Friedrich 2372abb49a Add upgrading docs for API schedule-downtime 'child_options' 2018-08-24 14:56:04 +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
Jean Flach 5792086f10
Merge pull request #6501 from jenslink/patch-1
Update 03-monitoring-basics.md
2018-08-24 14:36:45 +02:00
Noah Hilverling 01fea22c77 Add child_options to ScheduledDowntime
refs #3935
2018-08-24 14:29:39 +02:00
Michael Friedrich 237fd520db
Merge pull request #6509 from gunnarbeutner/feature/real-constants
Implement support for namespaces
2018-08-24 12:10:10 +02:00
Michael Friedrich 91b0b25b36 Update upgrading docs for v2.10 and namespaces 2018-08-24 11:54:20 +02:00
Jean Flach 130a74d91c Add note about workaround for broken custom vars 2018-08-24 11:03:29 +02:00
Michael Friedrich 8a172d39fe
Merge pull request #6561 from miso231/feature_itl_ceph
[Feature] Ceph health CheckCommand
2018-08-22 12:51:50 +02:00
Michal Petko 4b5b5bdf5d Add cloudera plugin to itl 2018-08-21 21:03:55 +02:00
Michal Petko a4ad3c364f Fix table format for ceph check doc 2018-08-21 15:51:20 +02:00
Michal Petko 9d66f3c73c Add ceph plugin to itl 2018-08-21 12:09:43 +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
Michael Friedrich cd94b7731e Update doc anchors 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 a80c825921
Merge pull request #6506 from Icinga/feature/improved-paths
Improve path handling in cmake and daemon
2018-08-08 09:48:30 +02:00
Michael Friedrich e529d5e285 Docs: Add a section to the 'upgrading' chapter 2018-08-07 17:33:42 +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
Alexander A. Klimov 8c3d9ca111 Document default of User#enable_notifications 2018-08-07 13:37:57 +02:00
Gunnar Beutner 8bfd419702 Implement references 2018-08-07 07:44:48 +02:00
Michael Friedrich 80c8f12b3a
Merge pull request #6504 from roccolord/fix/itl-exlcude-squashfs
squashfs ignored
2018-08-02 10:37:43 +02:00
Jean Flach 065bc23d9a
Merge pull request #6508 from gunnarbeutner/feature/dictionary-clear
Implement the Dictionary#clear script function
2018-08-02 10:30:08 +02:00
Gunnar Beutner a5a0119799 Implement the Dictionary#clear script function 2018-08-02 08:45:19 +02:00
Robert Lindgren acfef7c10d squashfs ignored
Add squashfs to check_disk ignore list, used on Ubuntu for snaps.
2018-07-30 18:22:22 +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
Jens Link 8f7c033ed9
Update 03-monitoring-basics.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).
2018-07-28 11:57:17 +02:00
Michael Friedrich 56bff1366a
Merge pull request #6488 from Allandor/fix/service-template-typo-cert
Fix typo with the CheckCommand cert
2018-07-27 11:50:56 +02:00
chrostek c0679001cc
Add exclude/include to vmware-esx-soap-host-runtime docs 2018-07-26 20:43:04 +02:00
Michael Insel e4defe674f Fix heading level for ITL ssl_cert documentation
Use heading level four instead of three.
2018-07-26 20:34:39 +02:00
Markus Frosch ddc5b951b3
Revert "Implement support for the --env command-line argument" 2018-07-26 17:09:06 +02:00
Sebastian Eikenberg 09147fad15 Fix typo with the CheckCommand cert
ITL plugin uses ssl_cert
2018-07-26 15:00:56 +02:00
Michael Friedrich 46e71a83dc
Merge pull request #6414 from Icinga/feature/icinga-envs
Implement support for the --env command-line argument
2018-07-26 10:09:42 +02:00
Michael Friedrich e519d6bbc6
Merge pull request #6110 from gunnarbeutner/feature/for-loop-var
Implement support for optionally specifying the 'var' keyword in 'for' loops
2018-07-26 10:05:17 +02:00
Michael Friedrich a502e1a306 Update tested Elasticsearch version 2018-07-16 16:44:47 +02:00
Michael Friedrich bf4a83819e Add note on sysconfig shell variables for Systemd to the Upgrading docs
refs #6434
2018-07-16 14:22:07 +02:00
Magnus Bäck 461c610cff Docs: Fix typos in 03-monitoring-basics.md 2018-07-14 20:29:53 +02:00
Michael Friedrich 547065d6e8 Update 'Upgrading to 2.9' docs 2018-07-04 10:56:53 +02:00
Gunnar Beutner 2eb46f1203 Implement support for optionally specifying the 'var' keyword in 'for' loops 2018-07-03 11:03:22 +02:00
Michael Friedrich c89f92e352
Merge pull request #6348 from Mikesch-mp/itl_db2_health
Fix for catalogued locally databases. Fixes #6338
2018-06-28 14:40:53 +02:00
Carsten Koebke f499743ef2 Its catalogued not cataloged :) 2018-06-28 07:18:57 +02:00