]>
granicus.if.org Git - icinga2/log
Noah Hilverling [Tue, 4 Sep 2018 11:11:28 +0000 (13:11 +0200)]
Still notify on acknowledgement and recovery if user does not get problem notifications at all
refs #6047
Noah Hilverling [Tue, 7 Aug 2018 08:02:13 +0000 (10:02 +0200)]
Only send acknowledgement notification if user received a problem notification
refs #6047
Michael Friedrich [Wed, 12 Sep 2018 10:40:17 +0000 (12:40 +0200)]
Merge pull request #6607 from Icinga/feature/docs-dev-gdb-running-process
Enhance development docs with GDB backtrace and thread list
Michael Friedrich [Wed, 12 Sep 2018 10:32:00 +0000 (12:32 +0200)]
Enhance development docs with GDB backtrace and thread list
Michael Friedrich [Tue, 11 Sep 2018 18:44:12 +0000 (20:44 +0200)]
Merge pull request #6596 from Icinga/bugfix/gcc-8-f28-hardening-crash
Fix crash on API queries with Fedora 28 hardening and GCC 8
Michael Friedrich [Tue, 11 Sep 2018 08:55:35 +0000 (10:55 +0200)]
Merge pull request #6606 from Icinga/feature/enhance-contributing-docs
Enhance contributing docs
Michael Friedrich [Tue, 11 Sep 2018 07:30:33 +0000 (09:30 +0200)]
Mention 'help wanted' and 'good first issue' in contributing docs
Michael Friedrich [Tue, 11 Sep 2018 07:23:28 +0000 (09:23 +0200)]
Rename branch schema from `fix/` to `bugfix/`
Michael Friedrich [Tue, 11 Sep 2018 07:12:15 +0000 (09:12 +0200)]
Merge pull request #6573 from Icinga/bugfix/operator-docs-1
Fix operator precedence table
Jean Flach [Fri, 24 Aug 2018 12:50:16 +0000 (14:50 +0200)]
Fix operator precedence table
Fixes #5573
Michael Friedrich [Thu, 6 Sep 2018 15:01:22 +0000 (17:01 +0200)]
Merge pull request #6602 from Icinga/fix/improve-tls-handshake-exception-logging
Improve TLS handshake exception logging
Noah Hilverling [Thu, 6 Sep 2018 13:58:42 +0000 (15:58 +0200)]
Improve TLS handshake exception logging
Michael Friedrich [Thu, 6 Sep 2018 11:26:46 +0000 (13:26 +0200)]
Merge pull request #6595 from Icinga/feature/limit-anonymous-rpc-connections
Allow to configure anonymous clients limit inside the ApiListener object
Michael Friedrich [Thu, 6 Sep 2018 08:40:39 +0000 (10:40 +0200)]
Merge pull request #6598 from dominik-r-s/patch-1
doc/09-object-types: states filter ignored for Acknowledgements
Michael Friedrich [Thu, 6 Sep 2018 08:40:11 +0000 (10:40 +0200)]
Merge pull request #6597 from Icinga/feature/docs-development-fedora-debuginfos
Add Fedora to development docs for debuginfo packages
Michael Friedrich [Wed, 5 Sep 2018 18:44:44 +0000 (20:44 +0200)]
Add Fedora to development docs for debuginfo packages
Michael Friedrich [Wed, 5 Sep 2018 18:42:55 +0000 (20:42 +0200)]
Fix crash on API queries with Fedora 28 hardening and GCC 8
The actual fix is to handle nullptr references differently
for an empty filter expression. The other changes include
oob checks not necesarily involved.
fixes #6533
Michael Friedrich [Wed, 5 Sep 2018 15:45:35 +0000 (17:45 +0200)]
Allow to configure anonymous clients limit inside the ApiListener object
Previously this was hardcoded, and for security reasons users might want
to adjust this value. This affects CSR signing requests as well as
clients which have not yet been configured as endpoints on the current
node.
refs #6566
Michael Friedrich [Wed, 5 Sep 2018 15:44:05 +0000 (17:44 +0200)]
Raise the message size for anonymous client and pki request calls to 1MB
If one sends the full certificate chain, this previous limit of 64KB
could be hit.
dominik-r-s [Wed, 5 Sep 2018 14:46:36 +0000 (16:46 +0200)]
09-object-types: notifications: states filter ignored for Acknowledgements!
Michael Friedrich [Tue, 4 Sep 2018 14:54:30 +0000 (16:54 +0200)]
Merge pull request #6591 from Icinga/bugfix/lto-builds-static-initialize-namespaces
Fix static initializer priority for namespaces in LTO builds
Michael Friedrich [Tue, 4 Sep 2018 14:41:55 +0000 (16:41 +0200)]
Merge pull request #6590 from Icinga/fix/custom-var-workaround
Update workaround for custom vars
Michael Friedrich [Tue, 4 Sep 2018 13:17:34 +0000 (13:17 +0000)]
Fix static initializer priority for namespaces in LTO builds
fixes #6575
Jean Flach [Tue, 4 Sep 2018 13:24:43 +0000 (15:24 +0200)]
Merge pull request #6356 from sourcejedi/fix/systemd
Fix logging under systemd
Michael Friedrich [Tue, 4 Sep 2018 11:39:40 +0000 (13:39 +0200)]
Merge pull request #6568 from Icinga/feature/commit-order
Ensure that config object types are committed in dependent load order
Jean Flach [Tue, 4 Sep 2018 11:33:48 +0000 (13:33 +0200)]
Update workaround for custom vars
This updates #6572 which did not work
Jean Flach [Wed, 22 Aug 2018 13:12:47 +0000 (15:12 +0200)]
Update variable names
Markus Frosch [Thu, 9 Aug 2018 09:55:20 +0000 (11:55 +0200)]
Ensure that config object types are committed in dependent load order
Michael Friedrich [Tue, 4 Sep 2018 09:15:13 +0000 (11:15 +0200)]
Merge pull request #6581 from Icinga/fix/speedup-config
Shuffle items before config validation
Jean Flach [Fri, 31 Aug 2018 11:11:50 +0000 (13:11 +0200)]
Shuffle items before config validation
Michael Friedrich [Tue, 4 Sep 2018 09:04:02 +0000 (11:04 +0200)]
Merge pull request #6588 from Icinga/bugfix/prepare-dirs-safe-reload-full-path
Fix using full path in prepare-dirs/safe-reload scripts
Michael Friedrich [Mon, 3 Sep 2018 14:47:38 +0000 (16:47 +0200)]
Fix using full path in prepare-dirs/safe-reload scripts
This won't be visible with packages and overridden paths,
just source builds which invoke the scripts manually.
refs #6506
Michael Friedrich [Mon, 3 Sep 2018 13:48:55 +0000 (15:48 +0200)]
Merge pull request #6583 from maxswjeon/master
Update PostgreSQL library path variable in INSTALL.md
Michael Friedrich [Mon, 3 Sep 2018 13:47:45 +0000 (15:47 +0200)]
Merge pull request #6586 from Icinga/bugfix/centos-7-buildfix-non-unity-builds
Fix non-unity builds on CentOS 7 with std::shared_ptr
Michael Friedrich [Mon, 3 Sep 2018 13:32:28 +0000 (15:32 +0200)]
Fix non-unity builds on CentOS 7 with std::shared_ptr
refs #6509
Michael Friedrich [Mon, 3 Sep 2018 07:28:16 +0000 (09:28 +0200)]
Merge pull request #6574 from gunnarbeutner/fix/move-downtime-constants
Move new downtime constants into the Icinga namespace
Jeon Sang Wan [Sun, 2 Sep 2018 13:11:19 +0000 (22:11 +0900)]
Edited INSTALL.md File
Edited the Mistake of the PostgreSQL_LIBRARY_DIR comment error.
#6582
Gunnar Beutner [Sat, 25 Aug 2018 17:35:01 +0000 (19:35 +0200)]
Move new downtime constants into the Icinga namespace
Alan Jenkins [Tue, 29 May 2018 16:24:05 +0000 (17:24 +0100)]
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 ...`.
Alan Jenkins [Wed, 30 May 2018 11:21:39 +0000 (12:21 +0100)]
Daemonize(): use one error convention, not three
Standardize on exit() / _exit() (this depends whether we are considered
to be the "main" fork, which should run anything registered with atexit()).
Exclude `return false` and throwing exceptions.
This fixes the error path for fork(). Daemonize() would return false, but
the `return false` error convention was not tested in the caller.
It also fixes the error message for fork() to show the error code.
Everyone loves `strace`, but sysadmins should not have to rerun their
daemons under it just to see an error code.
Also in case an exception is thrown, show its diagnostic information
instead of dropping it on the floor. In the log message, I mention why we
are uninitializing and then initializing the app at this point.
For the reader, it pushes all the weirdness into the error convention of
Daemonize(). This comes back to the exit() / _exit() distinction. Once
we have forked, we technically don't want to allow the parent process to
exit(), so we don't want to return to the caller.
Alan Jenkins [Mon, 28 May 2018 20:08:57 +0000 (21:08 +0100)]
fix "Console" log to flush
It's called "Console", which would be line-buffered anyway. But, it's
implemented as std::cout. This might be piped to a logger, as in
daemontools or systemd. In this case it will not be a TTY, and log lines
should be flushed without too much delay. Let's just flush each message.
Let's not introduce a static instance of StreamLogger (flushed by interval
timer). That's too stressful to read, because static instances are really
annoying to order. Example citation: "Yay, our static destructors are
pretty much beyond repair at this point." -- application.cpp.
I don't know if there will be any need to optimize logging syscalls. The
init script uses `--daemonize`. I think the systemd service should also
avoid using the "Console" log after startup (see next commit). The
documentation does not warn that the syslog feature is less efficient
in system calls than mainlog; deferred flusing does not seem to be a highly
prominent feature. There's no cool comment in the code about how much the
syscalls were slowing down some use case (or qualifying that this
optimization can only eliminate syscalls on platforms with both mutexes and
clocks that can work without syscalls).
Michael Friedrich [Fri, 24 Aug 2018 13:14:58 +0000 (15:14 +0200)]
Merge pull request #6532 from Icinga/feature/allow-down-times-to-apply-on-child-hosts-3935
Add child_options to ScheduledDowntime
Michael Friedrich [Fri, 24 Aug 2018 12:56:04 +0000 (14:56 +0200)]
Add upgrading docs for API schedule-downtime 'child_options'
Jean Flach [Fri, 24 Aug 2018 12:37:00 +0000 (14:37 +0200)]
Merge pull request #6502 from jenslink/patch-2
Update 17-language-reference.md
Jean Flach [Fri, 24 Aug 2018 12:36:45 +0000 (14:36 +0200)]
Merge pull request #6501 from jenslink/patch-1
Update 03-monitoring-basics.md
Jean Flach [Fri, 24 Aug 2018 12:31:57 +0000 (14:31 +0200)]
Merge pull request #6510 from Icinga/feature/windows-build-scripts
Update Appveyor build scripts
Noah Hilverling [Wed, 8 Aug 2018 12:42:18 +0000 (14:42 +0200)]
Add child_options to ScheduledDowntime
refs #3935
Michael Friedrich [Fri, 24 Aug 2018 10:10:10 +0000 (12:10 +0200)]
Merge pull request #6509 from gunnarbeutner/feature/real-constants
Implement support for namespaces
Michael Friedrich [Fri, 24 Aug 2018 09:54:20 +0000 (11:54 +0200)]
Update upgrading docs for v2.10 and namespaces
Michael Friedrich [Fri, 24 Aug 2018 09:25:08 +0000 (11:25 +0200)]
Merge pull request #6572 from Icinga/bugfix/29X-custom-vars-upgrade
Add note about workaround for broken custom vars
Jean Flach [Fri, 24 Aug 2018 09:03:29 +0000 (11:03 +0200)]
Add note about workaround for broken custom vars
Michael Friedrich [Thu, 23 Aug 2018 15:13:41 +0000 (17:13 +0200)]
Merge pull request #6570 from Icinga/bugfix/tls-anonymous-clients-limit
Increase limit for simultaneously connected anonymous TLS clients
Michael Friedrich [Thu, 23 Aug 2018 15:10:51 +0000 (17:10 +0200)]
Increase limit for simultaneously connected anonymous TLS clients
Michael Friedrich [Wed, 22 Aug 2018 12:04:15 +0000 (14:04 +0200)]
Merge pull request #6567 from Icinga/bugfix/env-api-port-number
ApiListener: Dump the state file port detail as number
Michael Friedrich [Wed, 22 Aug 2018 11:03:24 +0000 (13:03 +0200)]
Merge pull request #6556 from Icinga/feature/installer-msi-suppress
windows: Allow suppression of extra actions in the MSI package
Michael Friedrich [Wed, 22 Aug 2018 10:57:47 +0000 (12:57 +0200)]
ApiListener: Dump the state file port detail as number
refs #6511
Michael Friedrich [Wed, 22 Aug 2018 10:51:50 +0000 (12:51 +0200)]
Merge pull request #6561 from miso231/feature_itl_ceph
[Feature] Ceph health CheckCommand
Jean Flach [Wed, 22 Aug 2018 10:49:45 +0000 (12:49 +0200)]
Merge pull request #6469 from Icinga/fix/windows-resize-behavior
Fix Windows Agent resize behavior
Michael Friedrich [Wed, 22 Aug 2018 10:39:57 +0000 (12:39 +0200)]
Merge pull request #6563 from miso231/feature/itl-cloudera-check
[Feature] Cloudera service health CheckCommand
Michael Friedrich [Wed, 22 Aug 2018 09:50:25 +0000 (11:50 +0200)]
Merge pull request #6544 from gunnarbeutner/fix/deprecated-strstream-header
Remove #include for deprecated header file
Michal Petko [Tue, 21 Aug 2018 19:03:55 +0000 (21:03 +0200)]
Add cloudera plugin to itl
Michal Petko [Tue, 21 Aug 2018 18:00:19 +0000 (20:00 +0200)]
Fix value attributes for ceph plugin
Michal Petko [Tue, 21 Aug 2018 13:51:20 +0000 (15:51 +0200)]
Fix table format for ceph check doc
Michal Petko [Tue, 21 Aug 2018 10:09:43 +0000 (12:09 +0200)]
Add ceph plugin to itl
Markus Frosch [Mon, 20 Aug 2018 08:37:47 +0000 (10:37 +0200)]
windows: Allow suppression of extra actions in the MSI package
By setting SUPPRESS_XTRA
Gunnar Beutner [Tue, 14 Aug 2018 13:26:59 +0000 (15:26 +0200)]
Update documentation
Gunnar Beutner [Thu, 9 Aug 2018 13:37:23 +0000 (15:37 +0200)]
Refactor Application::*Const()
Gunnar Beutner [Mon, 13 Aug 2018 12:07:24 +0000 (14:07 +0200)]
Remove #include for deprecated header file
Gunnar Beutner [Tue, 7 Aug 2018 11:55:41 +0000 (13:55 +0200)]
Implement namespace support for the keys() function
Gunnar Beutner [Tue, 7 Aug 2018 11:55:41 +0000 (13:55 +0200)]
Implement support for the namespace and using keywords
Gunnar Beutner [Tue, 7 Aug 2018 11:55:41 +0000 (13:55 +0200)]
Move constants and functions into different namespaces
Gunnar Beutner [Tue, 7 Aug 2018 11:55:41 +0000 (13:55 +0200)]
Implement support for namespaces
Gunnar Beutner [Tue, 7 Aug 2018 11:55:41 +0000 (13:55 +0200)]
Implement support for modifying frozen attributes
Gunnar Beutner [Tue, 7 Aug 2018 11:55:41 +0000 (13:55 +0200)]
Refactor REGISTER_SCRIPTFUNCTION_* macros
Michael Friedrich [Fri, 10 Aug 2018 11:15:48 +0000 (13:15 +0200)]
Merge pull request #6512 from Icinga/feature/sni-environment
Refactor environment for API connections
Michael Friedrich [Fri, 10 Aug 2018 11:01:53 +0000 (13:01 +0200)]
Re-add environment to IcingaApplication feature stats
Michael Friedrich [Fri, 10 Aug 2018 10:53:06 +0000 (12:53 +0200)]
Update documentation and add upgrading notes
Michael Friedrich [Fri, 10 Aug 2018 08:15:41 +0000 (10:15 +0200)]
Introduce IcingaApplication#environment
Precedence as follows:
- DEnvironment=...
- const Environment = ...
- object IcingaApplication "app" { environment = "..." }
The wrapped script constant handling is required
since we cannot directly link from libremote (SNI handling)
to libicinga where the object resides. Instead we'll
use the Application class helpers for hiding the ScriptGlobal
calls.
Michael Friedrich [Fri, 10 Aug 2018 08:39:17 +0000 (10:39 +0200)]
Mkclass: Only render setter if not declared pure virtual
Michael Friedrich [Thu, 9 Aug 2018 15:06:45 +0000 (17:06 +0200)]
Merge pull request #6539 from Icinga/bugfix/centos-7-non-unity-build-fix
Build fix for CentOS 7 and non-unity builds
Michael Friedrich [Thu, 9 Aug 2018 14:23:24 +0000 (16:23 +0200)]
Build fix for CentOS 7 and non-unity builds
Michael Friedrich [Thu, 9 Aug 2018 10:41:22 +0000 (12:41 +0200)]
Rename to Environment constant
Michael Friedrich [Thu, 9 Aug 2018 10:22:55 +0000 (12:22 +0200)]
Update doc anchors
Markus Frosch [Thu, 2 Aug 2018 12:09:21 +0000 (14:09 +0200)]
Refactor environment for API connections
* Const renamed to `ApiEnvironment`
* Handling moved to ApiListener
* Now a property of ApiListener
Michael Friedrich [Thu, 9 Aug 2018 11:11:23 +0000 (13:11 +0200)]
Merge pull request #6531 from Icinga/feature/zone-all_parents
Expose Zone#all_parents via API
Michael Friedrich [Thu, 9 Aug 2018 10:09:23 +0000 (12:09 +0200)]
Merge pull request #6511 from Icinga/feature/apilistener-dynamic-port
ApiListener: Add support for dynamic port handling
Michael Friedrich [Thu, 9 Aug 2018 09:55:05 +0000 (11:55 +0200)]
Update documentation for new constants
Michael Friedrich [Thu, 9 Aug 2018 09:54:34 +0000 (11:54 +0200)]
Implement ApiListener status file removal on shutdown
Markus Frosch [Thu, 2 Aug 2018 06:38:42 +0000 (08:38 +0200)]
ApiListener: Add support for dynamic port handling
Michael Friedrich [Wed, 8 Aug 2018 12:41:57 +0000 (14:41 +0200)]
Merge pull request #6530 from Icinga/bugfix/query-was-empty
IDO/MySQL: avoid empty queries
Alexander A. Klimov [Wed, 8 Aug 2018 12:15:01 +0000 (14:15 +0200)]
Expose Zone#all_parents via API
Alexander A. Klimov [Wed, 8 Aug 2018 11:59:43 +0000 (13:59 +0200)]
Rename Zone#GetAllParents() to Zone#GetAllParentsRaw()
Alexander A. Klimov [Wed, 8 Aug 2018 10:11:37 +0000 (12:11 +0200)]
IDO/MySQL: avoid empty queries
Michael Friedrich [Wed, 8 Aug 2018 07:48:30 +0000 (09:48 +0200)]
Merge pull request #6506 from Icinga/feature/improved-paths
Improve path handling in cmake and daemon
Michael Friedrich [Tue, 7 Aug 2018 16:44:08 +0000 (18:44 +0200)]
Update output for `--version`
This moves the system and build information before
the application paths which are normally not that important.
Michael Friedrich [Tue, 7 Aug 2018 16:33:59 +0000 (18:33 +0200)]
Take a note why the explicit configDir variable is needed on Windows
Michael Friedrich [Tue, 7 Aug 2018 16:09:52 +0000 (18:09 +0200)]
Update INSTALL.md a bit and kick RHEL 5 away
Michael Friedrich [Tue, 7 Aug 2018 15:58:22 +0000 (17:58 +0200)]
Refine log messages and code comments
Michael Friedrich [Tue, 7 Aug 2018 15:28:05 +0000 (17:28 +0200)]
Docs: Add a section to the 'upgrading' chapter
Michael Friedrich [Mon, 6 Aug 2018 13:09:27 +0000 (15:09 +0200)]
Docs: Improve the global constants section
Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>