Commit graph

1764 commits

Author SHA1 Message Date
Lord Hepipud
02d1e71032 Fixes errors on encapsulated PowerShell calls 2022-06-08 16:48:19 +02:00
Lord Hepipud
b85f282f0b Updates changelog for v1.9.2 2022-06-03 17:12:58 +02:00
Lord Hepipud
1b2e3a6ee1
Merge pull request #531 from Icinga:feature/icinga_state_file_test_and_repair
Feature: Adds test and repair for the Icinga Agent state file

Adds new Cmdlets to test and repair the Icinga Agent state file, in case the file is corrupt.

The `Test-IcingaAgent` will now check by default of the state is present and in case it is, if the file is healthy or corrupted.

A repair command `Repair-IcingaStateFile` will remove the corrupted files afterwards to ensure the Icinga Agent can be started as service again.
2022-06-03 14:17:24 +02:00
Lord Hepipud
55be30f52d Adds feature to test/repair the agent state file 2022-06-03 14:13:39 +02:00
Lord Hepipud
6b0e177c48
Merge pull request #529 from Icinga:fix/package_manifest_reader_on_2012r2
Fix: Package manifest reader on Win 2012 R2

Fixes package manifest reader for Icinga for Windows components on Windows 2012 R2 and older.
2022-06-01 16:56:58 +02:00
Lord Hepipud
8ed242ad50 Fixes package manifest reader on Win 2012 R2 2022-06-01 16:56:12 +02:00
Lord Hepipud
126ac28ea2
Merge pull request #527 from Icinga:feature/dev_mode_include_components
Feature: Adds developer mode for components

Adds support for the developer mode to now include the modules as well and ensure, that available cache files are overwritten with the template again.

This ensures that we can develop new features and test them on the fly, without having to manipulate cache files manually.
2022-05-30 09:48:00 +02:00
Lord Hepipud
982ae84be6 Adds developer mode support for components 2022-05-30 09:46:18 +02:00
Lord Hepipud
384ab1cf89
Merge pull request #525 from Icinga:feature/vscode_cache_overwrite
Features: Adds developer mode to prevent cache overwrite

Adds new developer mode for `icinga` command and improved cache handling, to ensure within `-DeveloperMode` and inside a VS Code environment, the framework cache file is never overwritten, while still all functions are loaded and imported.
2022-05-24 14:02:53 +02:00
Lord Hepipud
8df5ab35bb Adds developer mode to prevent cache overwrite 2022-05-24 14:00:59 +02:00
Lord Hepipud
42320b55b3
Merge pull request #521 from Icinga:feature/adds_service_recovery
Feature: Adds support for service recovery

Adds support to set service recovery for the Icinga Agent and Icinga for Windows service, to restart them in case of a crash or error
2022-05-12 16:27:21 +02:00
Lord Hepipud
b512e26715 Adds support for service recovery 2022-05-12 16:24:11 +02:00
Lord Hepipud
5dfc8ac16b
Merge pull request #520 from Icinga:fix/adds_component_import_for_dev_tools
Fix: Missing component import func on dev tools

Adds missing Import-IcingaPowerShellComponent function while creating new components by using the developer tools
2022-05-12 10:36:54 +02:00
Lord Hepipud
1648205744 Fixes missing component import func on dev tools 2022-05-12 10:36:01 +02:00
Lord Hepipud
222a10fa84
Merge pull request #519 from Icinga:fix/import_ifw_components_on_framework_loading
Fix: Missing loading for Icinga for Windows modules

Fixes missing loading of Icinga for Windows modules, which is required to ensure an Icinga for Windows environment is providing all commands and variables to a session, allowing other modules to access these information
2022-05-12 08:54:45 +02:00
Lord Hepipud
28efe62548 Fixes missing loading for IfW modules 2022-05-12 08:11:45 +02:00
Lord Hepipud
0eb008db0b Sets next target version 2022-05-02 18:51:10 +02:00
Lord Hepipud
bc70537e6e
Merge pull request #512 from t3easy/patch-1
Fix Unregister Background Daemons example
2022-05-02 07:42:30 +02:00
Lord Hepipud
a7e0bbed4b
Merge pull request #516 from Icinga:fix/removes_rootmodule_from_manifest_template
Fix: Removes RootModule from Manifest file

With the new module isolation, we no longer require the `RootModule` entry for manifest files.
2022-04-27 14:03:55 +02:00
Lord Hepipud
42d45c4d7c Removes RootModule entry from Manifest template 2022-04-27 14:02:55 +02:00
Lord Hepipud
20cda631f8
Merge pull request #515 from Icinga:fix/windows_2012_console_freeze_during_imc_install
Fix: Console freezes on Windows 2012 R2 during IMC installation
2022-04-27 13:45:00 +02:00
Lord Hepipud
7eba933f2f Fixes console freezes on IMC install on 2012R2 2022-04-27 13:43:48 +02:00
Lord Hepipud
cb613f34c5
Merge pull request #514 from Icinga:feature/improve_module_isolation
Features: Adds module isolation support

Improves writing and publishing of modules, by ensuring that only certain functions are exported and modules have an own compilation file for loading.

This reduces load times, execution time and in addition allows modules to be isolated from each other, making it impossible to hijack certain code for not exported functions.
2022-04-27 11:21:06 +02:00
Lord Hepipud
fa0132f13d Adds feature to improve module isolation 2022-04-27 11:20:35 +02:00
Lord Hepipud
89f4ac7cb5
Merge pull request #494 from Icinga:fix/gc_collection_for_every_rest_connection
Fix: GC collection on every REST call

Fixes GC collection with `Optimize-IcingaForWindowsMemory` for every incoming REST connection call
2022-04-27 08:52:43 +02:00
Jan Kiesewetter
b0d3bc5d67
Fix Unregister Background Daemons example 2022-04-26 15:22:40 +02:00
Lord Hepipud
9a2e793be8 Fix GC collection on every REST connection 2022-04-06 13:59:31 +02:00
Lord Hepipud
6838a4f6ef
Merge pull request #497 from haxtibal/feature/avoid_busy_loop
Use a BlockingCollection to avoid busy loop in REST API threads
2022-03-30 11:46:04 +02:00
Tobias Deiminger
d215cfd568 Use a BlockingCollection to avoid busy loop in REST API threads
The former implementation had 5 threads permanently spinning fast
(10ms sleep) while waiting for a REST connection to process.
This causes higher load in general and it breaks systems where
"Turn on PowerShell Script Block Logging policy" is enabled,
because then each PS statement including Start-Sleep is logged -
resulting in 500 event log entries per second. It's a suggested
setting in some hardening guidelines.

We can easily replace the Queue with a BlockingCollection backed
by a ConcurrentQueue, which has the built-in feature to sleep until
there are new items. Now the REST API threads consumes zero CPU time
while waiting.
2022-03-30 11:13:03 +02:00
Lord Hepipud
90e80c83bd
Merge pull request #501 from Icinga:doc/iwkb_perf_lib_doc
Doc: Updates IWKB for perf lib errors
2022-03-25 13:43:29 +01:00
Lord Hepipud
acea1c9a11 Updates IWKB for perf lib errors 2022-03-25 13:42:40 +01:00
Lord Hepipud
36fe4f2466
Merge pull request #498 from Icinga:feature/thread_keep_alive_and_housekeeping_on_freeze
Feature: Add thread queuing optimisation and frozen thread detection

Adds feature to check for frozen threads on REST-Api, ensuring that non-responding threads are killed after 5 minutes without progress and restartet.
Also improves queing of REST-Api tasks into threads, which now prioritizes to check for inactive threads first to enque new calls and falls back to old behaviour, in case all threads are busy.
2022-03-18 23:16:35 +01:00
Lord Hepipud
e4ddbea4d6 Adds feature to detect frozen threads 2022-03-18 22:54:43 +01:00
Lord Hepipud
722b8ba838
Merge pull request #496 from Icinga:fix/increase_rest_api_default_timeout
Fix: Improves REST-Api default timeout

Improves REST-Api default timeout for internal plugin execution calls from 30s to 120s
2022-03-18 17:42:41 +01:00
Lord Hepipud
046074d468 Increase REST-Api default timeout from 30s to 120s 2022-03-18 17:41:37 +01:00
Lord Hepipud
bff3537110
Merge pull request #484 from Icinga:fix/rest_ssl_cert_lookup_custom_hostname
Fix: REST-Api SSL certificate lookup on custom hostname or domain/dns domain mismatch

Fixes REST-Api SSL certificate lookup from the Icinga Agent, in case a custom hostname was used or in certain domain environments were domain is not matching DNS domain
2022-03-17 12:27:45 +01:00
Lord Hepipud
ffb86acab8 Fixes Rest-Api SSL lookup for custom hostname 2022-03-17 12:26:39 +01:00
Lord Hepipud
3c053ecd7e
Merge pull request #495 from Icinga:feature/check_icinga_agent_certificate_sign_status
Feature: Check Icinga Agent certificate sign status

Adds feature to check the sign status for the local Icinga Agent certificate and notifying the user, in case the certificate is not yet signed by the Icinga CA.
2022-03-17 11:40:03 +01:00
Lord Hepipud
a90151493f Adds feature checking Icinga Agent cert sign state 2022-03-17 11:36:56 +01:00
Lord Hepipud
e6d820735d
Merge pull request #493 from Icinga:doc/rest_api_doc_update
Doc: REST-Api section doc update

Updates doc for new IMC installation way and removes no longer required dependencies.
2022-03-17 08:59:38 +01:00
Lord Hepipud
2d3a700672 REST-Api section doc update 2022-03-17 08:58:01 +01:00
Lord Hepipud
457413bc88
Merge pull request #490 from Icinga:fix/uninstall_service_component_not_working
Fix: Uninstaller for service component not working

Fixes the command `Uninstall-IcingaComponent` for the `service` component which is not working.
2022-03-16 16:28:14 +01:00
Lord Hepipud
e2c2529386 Fixes uninstaller for service component 2022-03-16 16:24:56 +01:00
Lord Hepipud
7cf1dd4589 Changelog fix 2022-02-15 17:47:49 +01:00
Lord Hepipud
404cdc1973
Merge pull request #481 from Icinga:fix/unhandled_icinga_output
Fixes unhandled Icinga output
2022-02-15 16:02:35 +01:00
Lord Hepipud
3a91be6de8 Fixes unhandled Icinga output 2022-02-15 16:01:48 +01:00
Lord Hepipud
7c13c1362d
Merge pull request #480 from Icinga:fix/service_locking_and_error_handling
Fix: Service locking and error handling

Fixes service locking during Icinga Agent upgrade and ensures errors on service management are caught and printed with internal error handling
2022-02-15 15:51:00 +01:00
Lord Hepipud
733f3cfe3b Fixes possible service lock and error handling 2022-02-15 15:47:01 +01:00
Lord Hepipud
43252ced15
Merge pull request #479 from Icinga:fix/download_packages_removal_exception
Fix: Exceptions while removing temp files from repository download

Fixes possible exceptions while trying to remove downloaded repository temp files which might still contain a file lock from virusscanners or other tasks
2022-02-15 14:41:07 +01:00
Lord Hepipud
99f8013252 Fixes exceptions while removing tmp repo download 2022-02-15 14:40:48 +01:00