Commit graph

1434 commits

Author SHA1 Message Date
Lord Hepipud
ed43260bec Changelog update 2021-03-01 11:17:53 +01:00
Lord Hepipud
b9eb54d9ce
Merge pull request #213 from Icinga:feature/icinga_for_windows_management_console
Feature: Adds experimental Feature "Management Console"

Adds new experimental feature `Management Console` for better and easier management for Icinga for Windows and improved automation and deployed.

In addition following changes were made:
* Added support to fetch network interface for `Register-IcingaDirectorSelfServiceHost` directly from provided director url
* Added support for Icinga Framework Code Cache file being deleted once the feature is disabled
* Added support to suppress any console output for the current PowerShell session by using `Disable-IcingaFrameworkConsoleOutput` and to enable it again by using `Enable-IcingaFrameworkConsoleOutput`
* Added support for `-Release` argument for `Get-IcingaFrameworkServiceBinary` suppressing questions and using GitHub as source directly if set
* Added support to color console output by using `Write-IcingaConsolePlain` with the new argument `-ForeColor`
* Added new feature to write Icinga for Windows console headers more easily, better structured and formatted with `Write-IcingaConsoleHeader` by adding line content as array elements
* Fixed possible crash on `Get-IcingaAgentFeatures` if PowerShell is not running as administrator and therefor the command `icinga2 feature list` can not be processed
* Fixed `ConvertTo-IcingaSecureString` to return `$null` for empty strings instead of throwing an exception
2021-03-01 11:17:12 +01:00
Lord Hepipud
c4f6fcc1fd Adds experimental Feature "Management Console" 2021-03-01 11:15:21 +01:00
Lord Hepipud
6cbd3cef2a
Merge pull request #212 from Icinga:feature/add_experimental_api_check_doc_removes_cmdlets_on_framework
Adds Api checks docs; Removes cmdlets

Adds documentation for new experimental feature to forward checks to API and removes Cmdlets for managing whitelist/blacklist entries as we add them inside the REST-Api module.
2021-02-24 18:30:39 +01:00
Lord Hepipud
22fdf18a5d Adds Api checks docs; Removes cmdlets 2021-02-24 18:30:05 +01:00
Lord Hepipud
433511597e Renames uninstaller arg Component to Name 2021-02-24 15:12:14 +01:00
Lord Hepipud
7d3ac7ef08
Merge pull request #211 from Icinga:feature/add_support_to_uninstall_components
Feature: Adds support to uninstall Icinga for Windows

Adds feature to uninstall single components for Icinga for Windows or to uninstall everything and start entirely from new.
2021-02-24 14:23:04 +01:00
Lord Hepipud
1638465b06 Adds feature to uninstall Icinga for Windows 2021-02-24 14:21:40 +01:00
Lord Hepipud
96afdc7188
Merge pull request #204 from Icinga:feature/forward_checks_to_internal_api
Feature: Adds experimental feature for internal API checks

Adds experimental feature to forward checks executed by the Icinga Agent to an internal REST-Api, to reduce the performance impact on systems with lower ressources available
2021-02-24 13:05:51 +01:00
Lord Hepipud
7b847bdb78 Adds experimental feature for internal API checks 2021-02-24 12:49:37 +01:00
Lord Hepipud
a5a401f079
Merge pull request #210 from Icinga:fix/escape_strings_in_array_dsl_properly
Fixes DSL for building array elements escaped

Updates the Icinga DSL for building PowerShell arrays to ensure all string values are properly escaped with `'`. In case the user already wrapped commands with `'` by himself, this will not have an effect as we only add single quotes for escaping if they are not present already.
2021-02-24 09:34:15 +01:00
Lord Hepipud
742d7e06ce Fixes DSL for building array elements escaped 2021-02-24 09:33:04 +01:00
Lord Hepipud
0893325293
Merge pull request #208 from Icinga:fix/fix_generic_plugin_threshold_conversion
Fix: Plugin threshold conversion and adds % unit handling

Fixes `Convert-IcingaPluginThresholds` which sometimes did not return proper numeric usable values for our internal functions, causing issues on plugin calls. In addition the function now also supports the handling for % units.
2021-02-23 17:26:56 +01:00
Lord Hepipud
e7c33d225f Fixes plugin threshold conversion and adds % unit 2021-02-23 17:25:47 +01:00
Lord Hepipud
6f89f198f6
Merge pull request #207 from Icinga:feature/customize_check_label
Adds feature to customize label for checks

Adds new Argument `-LabelName` to `New-IcingaCheck`, allowing the developer to provide custom label names for checks and override the default based on the check name.
2021-02-23 13:48:03 +01:00
Lord Hepipud
b6da72b2b4 Adds feature to customize label for checks 2021-02-23 13:46:52 +01:00
Lord Hepipud
ec65665c25
Merge pull request #206 from Icinga:fix/background_service_checks_not_working
Fix: Background service check daemon data pool separation and memory leak

Improves the background daemon by separating each single configured check into an own data pool, preventing data of leaking from one thread to another which might cause a memory leak in long term with plenty of background checks defined.

This might also reduce CPU impact because lesser data has to be processed.
2021-02-23 11:02:17 +01:00
Lord Hepipud
b9eca3a259 Fix background service daemon; fix memory leak 2021-02-23 10:58:03 +01:00
Lord Hepipud
0a57bce802
Merge pull request #205 from Icinga:feature/open_config_file_as_readonly
Feature: Ensure config.json is opened as read-only

In some cases it can happen that multiple processes access our config file. By default `Get-Content` is not thread save and might result in errors while reading the file content.

In general we should use a read-only attempt for the config.json and write it only if required.
2021-02-22 17:34:14 +01:00
Lord Hepipud
80051d6732 Ensure config.json is opened as read-only 2021-02-22 17:31:58 +01:00
Lord Hepipud
9a1c187e90
Merge pull request #180 from Icinga:feature/split_thread_content_local_usage_only
Feature: Ensure thread results are separated from each other by default

In case multitple background daemons are running and executing check plugins, it can happen that results overlap from one thread to another. A CPU check might then include information from another service check for example.

We fix this by locking each check result data into an own thread, preventing other threads from accessing the data.
2021-02-22 16:56:20 +01:00
Lord Hepipud
b5d518dff9 Use non-shared globals for check results 2021-02-22 16:54:39 +01:00
Lord Hepipud
4c859cf184
Merge pull request #203 from Icinga:doc/adds_code_cache_docs
Adds code caching docs and removes experimental

Removes experimental state of the Icinga PowerShell Framework code caching and adds docs on how to use the feature
2021-02-10 16:40:51 +01:00
Lord Hepipud
27e8bca974 Adds code caching docs and removes experimental 2021-02-10 16:39:59 +01:00
Lord Hepipud
ee03d742b5
Merge pull request #198 from Icinga:feature/add_support_to_flush_api_directory_by_cmdlet
Feature: Adds Cmdlet to flush Icinga Agent API directory
2021-02-10 16:13:27 +01:00
Lord Hepipud
60043734b3 Adds support to flush API dir by Cmdlet 2021-02-10 16:12:27 +01:00
Lord Hepipud
3c06c5e12a
Merge pull request #202 from Icinga:fix/Ignore-SSL-Errors
Docs: Ignore SSL-Errors documentation
2021-02-10 16:03:13 +01:00
Lord Hepipud
61c98f7493 Docs: Ignore SSL-Errors documentation
Fixes #199
2021-02-10 16:01:44 +01:00
Lord Hepipud
eabf0008f2
Merge pull request #201 from Icinga:doc/kb_entry_for_self-service_api_errors
Doc: Adds KB entry for Self-Service API errors
2021-02-09 16:46:13 +01:00
Lord Hepipud
119eab2257 Adds KB entry for Self-Service API errors 2021-02-09 16:45:11 +01:00
Lord Hepipud
17cc5d9132 Merge branch 'support/1.3' 2021-02-03 12:18:13 +01:00
Lord Hepipud
29fa30338d Updates version to 1.3.1 2021-02-03 12:12:24 +01:00
Lord Hepipud
077179ccce Fix Icinga 2 .conf file generator
Fixes Get-IcingaCheckCommandConfig -IcingaConfig generates invalid configuration file #181
2021-02-03 11:59:39 +01:00
Lord Hepipud
c7d0a923a2 Prefer starttype of services fetching over WMI 2021-02-03 11:59:27 +01:00
Lord Hepipud
d164fae558 Disables PowerShell progress bar on init 2021-02-03 11:59:17 +01:00
Lord Hepipud
4a77fce45a Fixes Agent installer exception on file checks
Fixes #183
2021-02-03 11:59:06 +01:00
Yonas Habteab
4e6a9689ec Fix backslashes in the url path causes an error 2021-02-03 11:58:53 +01:00
Lord Hepipud
dfaa1ee31e Fixes wrong user group for Performance Counter 2021-02-03 11:58:29 +01:00
Lord Hepipud
20c28b25e0 Removes hardcoded global zones 2021-02-03 11:58:07 +01:00
Lord Hepipud
059fceac4d
Merge pull request #196 from Icinga/fix/icinga2_conf_file_generator_prints_invalid_config
Fix: Icinga 2 .conf file generator is generating invalid files
2021-02-03 11:48:10 +01:00
Lord Hepipud
bd8c241961 Fix Icinga 2 .conf file generator
Fixes Get-IcingaCheckCommandConfig -IcingaConfig generates invalid configuration file #181
2021-02-03 11:47:17 +01:00
Lord Hepipud
250e1a7eab
Merge pull request #192 from Icinga/fix/fetch_service_startup_type_over_wmi_instead_of_get_services
Fix: Prefer startup type of services fetching over WMI instead of Get-Services
2021-01-29 12:02:28 +01:00
Lord Hepipud
116e6097b8 Prefer starttype of services fetching over WMI 2021-01-29 11:54:26 +01:00
Lord Hepipud
a9cccabb37
Merge pull request #197 from Icinga:fix/disables_progressbar_while_using_Icinga_for_Windows
Fix: Disables PowerShell Progress bar while using Icinga for Windows

In some cases progress bar output for certain activities might be printed into the plugin output. The best option is to disable it entirely while using Icinga for Windows, as we have no use for it.

Fixes #185
2021-01-27 15:35:50 +01:00
Lord Hepipud
242c399da4 Disables PowerShell progress bar on init 2021-01-27 15:33:59 +01:00
Lord Hepipud
856e7624cc
Merge pull request #195 from Icinga/fix/installer_crash_on_agent_msi_installer_package_detection
Fix: Agent installer crash on package lookup with different files in directory
2021-01-26 16:29:01 +01:00
Lord Hepipud
864c9fad92 Fixes Agent installer exception on file checks
Fixes #183
2021-01-26 16:27:50 +01:00
Lord Hepipud
b614b5aaf0
Merge pull request #187 from Icinga/bugfix/fix-backslashes-in-url-path-causes-error-186
Fix backslashes in the url path causes an error
2021-01-26 16:14:00 +01:00
Yonas Habteab
0fdb3b1bf9 Fix backslashes in the url path causes an error 2021-01-26 16:02:14 +01:00
Lord Hepipud
12687bd30a
Merge pull request #193 from Icinga/feature/adds_ms_support_for_get_icinga_unix_time
Feature: Add optional support for adding milliseconds to Get-IcingaUnixTime

Adds support to add milliseconds to the result of `Get-IcingaUnixTime` which might come in handy for more time depending tasks.
2021-01-21 15:53:51 +01:00