Commit graph

1133 commits

Author SHA1 Message Date
Lord Hepipud
721ceee463 Fixes JEA installer not including REST-Api on first run 2023-11-03 16:27:41 +01:00
LordHepipud
3c7eed70c1 Fixes MsiExec calls to longer cause reboots of the host 2023-11-03 16:23:22 +01:00
Lord Hepipud
03bf60df5e Fixes JEA profile always modified during update process 2023-08-25 14:32:50 +02:00
Lord Hepipud
17d884d87e Fixes Update-Icinga not updating to latest or specified version 2023-08-11 16:23:52 +02:00
LordHepipud
a29d66dbd9 Fixes config writer publishing invalid Icinga plain config 2023-08-07 20:05:01 +02:00
Lord Hepipud
6ee60125b0
Merge pull request #649 from Icinga:feature/adds_hyperv_provider
Feature: Adds new Hyper-V data provider

Adds new basic data provider base for Hyper-V information
2023-08-01 13:18:33 +02:00
Lord Hepipud
7d59af9a58 Fixes Clear-Host throwing exceptions during automation tasks 2023-08-01 13:17:11 +02:00
Lord Hepipud
7d156f6ed8 Adds new Hyper-V data provider 2023-07-27 17:27:08 +02:00
Lord Hepipud
867c1cb995 Adds new feature to write documents easier 2023-07-27 16:19:10 +02:00
Lord Hepipud
e7dc4fe500
Merge pull request #655 from Icinga:feature/ikwb_and_test_for_intercept_counter
Feature: Adds IWKB and test/manage Cmdlets for SCOM intercept counters

Adds IWKB and test/manage Cmdlets for SCOM intercept counters

* Test-IcingaInterceptCounter
* Disable-IcingaInterceptCounter
* Enable-IcingaInterceptCounter
2023-07-26 14:50:41 +02:00
Lord Hepipud
c77349af9d Adds IWKB and test/manage Cmdlets for SCOM intercept counters 2023-07-26 14:50:07 +02:00
log1-c
5898ee9dcb
added -Version parameter to the Update-Icinga` command (#613)
* Adds -Version parameter to Update-Icinga for direct update to a specific version
2023-07-25 15:32:31 +02:00
Alexander Aleksandrovič Klimov
d4ddf6734c Get-IcingaCheckCommandConfig: set vars.ifw_api_command in all commands
Useful in case someone renames the commands in Director.

Otherwise, in this case, all commands would be broken with ifw-api as vars.ifw_api_command defaults to $command.name$.
2023-07-25 15:15:25 +02:00
LordHepipud
0b2fa0d256 Fixes Sync-IcingaRepository not saving SSH settings 2023-07-25 00:35:20 +02:00
xGitJojo
be29d7dbd5
Feature: Adds option for formatted, colored console prints (#638)
* Adds feature for colored console prints
2023-07-24 23:28:22 +02:00
LordHepipud
4c7012b8da Fixes config generator custom variable too long message 2023-07-24 23:20:35 +02:00
LordHepipud
0541fccc85 Adds support to write the name of the repo inside the json file 2023-07-24 23:09:23 +02:00
Lord Hepipud
6de511c9fb Adds new plugin data provider handling and cpu data 2023-07-24 18:44:36 +02:00
Lord Hepipud
e436bd9284
Merge pull request #648 from Icinga:fix/improves_rest_api_memory_management
Fix: Improves REST-Api memory management

Fixes some memory management while using the REST-Api to clear connection objects once they are no longer required
2023-07-24 17:53:39 +02:00
Lord Hepipud
e96711efba Improves REST-Api memory management 2023-07-24 17:53:59 +02:00
Lord Hepipud
438bd86985 Improves error/exception handling 2023-07-24 17:37:41 +02:00
Lord Hepipud
014aae1985 Fixes REST-Api to allow args with and without leading - 2023-07-24 12:04:11 +02:00
Lord Hepipud
aa6d324108
Merge branch 'master' into ifw_api_arguments 2023-07-24 11:17:52 +02:00
Lord Hepipud
a11e6405d3 Adds docs and adds plain config writer for ifw-api support 2023-07-24 11:16:34 +02:00
LordHepipud
fa79477790 Fixes error and exception handling over API checks 2023-07-19 17:48:21 +02:00
LordHepipud
188f3caed5 Adds progress bar to repository interaction instead of text output 2023-07-14 20:15:14 +02:00
LordHepipud
100a666e09 Adds support to configure Director Self-Service config string 2023-07-14 13:37:38 +02:00
Lord Hepipud
05653fea5a Adds support to ignore SSL errors on IMC, Shell and Installer 2023-07-12 13:24:52 +02:00
LordHepipud
5a5f08c120 Adds argument to allow Agent cipher list configuration 2023-06-27 16:01:43 +02:00
Alexander A. Klimov
e17adcce54 Get-IcingaCheckCommandConfig: provide vars.ifw_api_arguments in each command
to properly support just importing the ifw-api command.
That command e.g. takes DSL/JSON arrays [], not PS ones @(). Similar with strings.
Therefore set vars.ifw_api_arguments as ifw-api expects.
2023-06-06 14:52:32 +02:00
Alexander Aleksandrovič Klimov
3aab2dd83a
Get-IcingaCheckCommandConfig: fix copy&paste error
Pass -NoLogo and -NoProfile once, not -NoLogo twice.
2023-06-01 12:11:30 +02:00
Lord Hepipud
50d9110d3c Adds new exception message for Windows auth 2023-05-26 17:45:39 +02:00
Lord Hepipud
00c3d67967 Adds support to provide user and domain with @ separated 2023-05-26 14:17:26 +02:00
Lord Hepipud
cb6aee0975 Fixes the framework migration error on multi framework installation 2023-05-26 14:09:31 +02:00
Lord Hepipud
d91500fa4b
Merge pull request #620 from Icinga:fix/prevent_recursive_looping_on_first_framework_initialisation
Fix: Recursive loop on first loading of Framework

Prevents the Icinga for Windows framework to recursively import itself on first startup or after reseting the cache file.
2023-05-23 16:12:41 +02:00
Lord Hepipud
c065a0330b Fixes ThresholdInterval key detection on newer systems 2023-05-12 11:13:17 +02:00
Lord Hepipud
ada2b4ce0e Fixes recursive loop on first loading of Framework 2023-05-09 12:57:40 +02:00
Lord Hepipud
108dceb326 Adds feature to securely read enum provider values 2023-05-08 11:17:48 +02:00
Lord Hepipud
7942e38d8c Fixes plugin failure for switch args with ThresholdInterval 2023-05-05 16:18:48 +02:00
Lord Hepipud
5135989169 Fixes config generator to not use set_if = true 2023-03-08 13:49:24 +01:00
Lord Hepipud
891be452c5 Fixes service exclude filter 2023-01-14 10:43:05 +01:00
Lord Hepipud
6b4263d440 Fixes unintended PS path change 2022-12-19 14:06:14 +01:00
Lord Hepipud
c199fb594a Fixes cmd aliases not evaluated on plugin run 2022-12-19 13:17:36 +01:00
Lord Hepipud
b1ee7bc30a Fixes wrong regex for threshold detection 2022-11-21 11:57:04 +01:00
Lord Hepipud
d8f2a9ab55 Fixes background service registration 2022-10-18 12:21:05 +02:00
Lord Hepipud
73dd3648d3 Fixes stacktrace in plugin output, when pkugin is not installed
Caused by newly introduces Get-Help check to fetch arguments
2022-08-28 11:29:59 +02:00
moreamazingnick
2d02ef1baf Adds support for hostname override for old installer 2022-08-27 21:02:50 +02:00
Lord Hepipud
df6c5f6efa Deprecates Start-IcingaAgentInstallWizard 2022-08-27 20:52:44 +02:00
Lord Hepipud
4fb4c6a55f Adds filtering options for EventLog parser 2022-08-27 20:40:20 +02:00
Lord Hepipud
7fb36b9386 Fixes misleading SID error during uninstallation 2022-08-27 16:10:02 +02:00
Lord Hepipud
c5c42ef572 Fixes missing permission update for certificate directory 2022-08-27 16:04:52 +02:00
Lord Hepipud
8008ccafc6 Fixes useless testing for directories if agent is not installed 2022-08-27 15:57:54 +02:00
Lord Hepipud
b846402196 Improve cache file writer with more robust handling 2022-08-27 15:28:52 +02:00
Lord Hepipud
ab0d3913c8 Fixes SecureString arguments not working with REST-Api 2022-08-27 13:07:28 +02:00
Lord Hepipud
2d40564a52 Fixes PerfData writer in JEA context without REST-Api 2022-08-26 22:38:09 +02:00
Lord Hepipud
72157d3a7f Fixes exception on update file removal 2022-08-26 15:36:52 +02:00
Lord Hepipud
adde8c0c81 Improves IMC update and uninstall handling for Framework 2022-08-26 15:33:32 +02:00
Lord Hepipud
72b5d3d223 Fixes byte unit Icinga threshold exception 2022-08-24 17:16:55 +02:00
Lord Hepipud
4c5eeaf50b
Merge pull request #550 from Icinga:fix/negative_thresholds_interpreted_as_argument
Fix: Negative thresholds interpreted as argument

Fixes negative thresholds being interpreted wrongly as argument instead of an value for an argument
2022-08-24 16:50:28 +02:00
Lord Hepipud
786fa9f411
Merge pull request #555 from Icinga:fix/plugin_thresholds_invalid_conversion
Fix: Wrong conversion of certain threshold values

Fixes wrong conversion of values for `Convert-IcingaPluginThresholds`, which did not properly handle string values containing certain units inside the string itself
2022-08-24 16:50:04 +02:00
Lord Hepipud
95be5982bd
Merge pull request #526 from Icinga:feature/new_perfdata_handling
Feature: Rewrite PerfData Labels for multi output

Performance data should be created with some more adjustments to ensure we can properly create graphcs by using InfluxDB and Grafana as example
2022-08-24 16:33:27 +02:00
Lord Hepipud
ae01dbeb0a Rewrite PerfData Labels for multi output 2022-08-24 16:26:27 +02:00
Lord Hepipud
116eaa02f3 Fixes wrong conversion of certain threshold values 2022-08-24 09:57:30 +02:00
Lord Hepipud
da31757841 Fixes automated Icinga Director installation for custom hostname 2022-08-23 16:48:20 +02:00
Lord Hepipud
5daccac374 Fixes exception for service recovery if service was not installed 2022-08-23 16:38:25 +02:00
Lord Hepipud
4100e05e84 Fixes error argument does not support percent unit 2022-08-23 11:40:58 +02:00
Lord Hepipud
8c5f9b5f21 Fixes negative thresholds interpreted as argument 2022-08-22 17:15:25 +02:00
Lord Hepipud
5fad73b4e7 Fixes Remote Sync clears RemoteSource 2022-08-18 14:17:37 +02:00
Lord Hepipud
82af4f9da4 Fixes RemoteSouce being cleared during Update-IcingaRepository 2022-08-18 14:03:45 +02:00
Lord Hepipud
8107e1152e Fixes docs for wrong argument on Install-Icinga 2022-08-18 13:34:33 +02:00
Lord Hepipud
787500c452 Fixes UTF8 encoding for plugin execution 2022-08-17 17:13:00 +02:00
Lord Hepipud
f126065cad Adds DSL parser to string arguments, fixing errors 2022-08-17 17:00:36 +02:00
RincewindsHat
4e182ca8ea Fix the creation of powershell arrays in Icinga2 configuration 2022-08-17 16:04:58 +02:00
Lord Hepipud
906d616966 Fixes null-value exception on missing background daemons 2022-08-17 14:52:40 +02:00
Lord Hepipud
9d422e8c67 Fixes uninstaller by improving location handling 2022-08-17 12:38:36 +02:00
Lord Hepipud
f908d5b2bd Adds function for easier include/exclude filtering 2022-07-12 13:33:02 +02:00
Lord Hepipud
02d1e71032 Fixes errors on encapsulated PowerShell calls 2022-06-08 16:48:19 +02:00
Lord Hepipud
55be30f52d Adds feature to test/repair the agent state file 2022-06-03 14:13:39 +02:00
Lord Hepipud
8ed242ad50 Fixes package manifest reader on Win 2012 R2 2022-06-01 16:56:12 +02:00
Lord Hepipud
8df5ab35bb Adds developer mode to prevent cache overwrite 2022-05-24 14:00:59 +02:00
Lord Hepipud
b512e26715 Adds support for service recovery 2022-05-12 16:24:11 +02:00
Lord Hepipud
1648205744 Fixes missing component import func on dev tools 2022-05-12 10:36:01 +02:00
Lord Hepipud
42d45c4d7c Removes RootModule entry from Manifest template 2022-04-27 14:02:55 +02:00
Lord Hepipud
7eba933f2f Fixes console freezes on IMC install on 2012R2 2022-04-27 13:43:48 +02:00
Lord Hepipud
fa0132f13d Adds feature to improve module isolation 2022-04-27 11:20:35 +02:00
Lord Hepipud
9a2e793be8 Fix GC collection on every REST connection 2022-04-06 13:59:31 +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
e4ddbea4d6 Adds feature to detect frozen threads 2022-03-18 22:54:43 +01:00
Lord Hepipud
046074d468 Increase REST-Api default timeout from 30s to 120s 2022-03-18 17:41:37 +01:00
Lord Hepipud
ffb86acab8 Fixes Rest-Api SSL lookup for custom hostname 2022-03-17 12:26:39 +01:00
Lord Hepipud
a90151493f Adds feature checking Icinga Agent cert sign state 2022-03-17 11:36:56 +01:00
Lord Hepipud
e2c2529386 Fixes uninstaller for service component 2022-03-16 16:24:56 +01:00
Lord Hepipud
3a91be6de8 Fixes unhandled Icinga output 2022-02-15 16:01:48 +01:00
Lord Hepipud
733f3cfe3b Fixes possible service lock and error handling 2022-02-15 15:47:01 +01:00
Lord Hepipud
99f8013252 Fixes exceptions while removing tmp repo download 2022-02-15 14:40:48 +01:00
Lord Hepipud
1c88fe2a09 Fixes parent connection not asking for ca.crt 2022-02-15 13:42:28 +01:00
Lord Hepipud
ecc11128cb Fixes errors while dynamically compiling Add-Type 2022-02-09 12:16:18 +01:00
Lord Hepipud
da3eda532b Fixes new-lines in plugin doc table generator 2022-02-08 09:41:47 +01:00
Lord Hepipud
d9676811ab Improves plugin doc generator for better docs 2022-02-08 09:14:13 +01:00
Lord Hepipud
87d40725ed Adds PID to Show-Icinga 2022-02-07 15:29:27 +01:00
Lord Hepipud
167aa4f215 Fixes link to metrics over time docs 2022-02-07 13:23:03 +01:00
Lord Hepipud
6b38f27338 Fixes ifw uninstaller to remove service binary 2022-02-06 17:12:17 +01:00
Lord Hepipud
f923a9e6e3
Merge pull request #453 from Icinga:feature/optimize_imc
Feature: Rework IMC menu and extend feature set

Reworks the menu structure of the Icinga for Windows Management Console and makes it the default when running the command `icinga`.

For developers you can use `icinga -Shell` to receive the Icinga shell as before. In addition improves error handling of IMC, by caching all `Errors` and `Warnings` during action execution, printing them afterwards.
2022-02-04 16:13:08 +01:00
Lord Hepipud
c129bb627c Optimizes IMC and centralizes data 2022-02-04 16:11:02 +01:00
Lord Hepipud
58ed9292c6 Fixes repository order/config override on force 2022-02-03 13:36:43 +01:00
Lord Hepipud
251ff8d4e3 Fixes Icinga Agent broken state before IMC install 2022-02-03 13:04:34 +01:00
Lord Hepipud
9d388fd684 Fixes Update-Icinga between snapshot/stable 2022-01-30 14:02:00 +01:00
Lord Hepipud
6598eb0bb8 Fixes install icinga security for admin shell 2022-01-29 00:42:40 +01:00
Lord Hepipud
051ac452b3 Fixes JEA service errors not resetting themself 2022-01-29 00:27:52 +01:00
Lord Hepipud
e0fc3e52e2 Adds support for check_by_icingaforwindows.ps1 2022-01-28 23:31:23 +01:00
Lord Hepipud
954e69fde1 Reworks background daemon for JEA context 2022-01-28 21:06:18 +01:00
Lord Hepipud
c82ab620bc Fixes unhanded true output during installation 2022-01-28 09:01:38 +01:00
Lord Hepipud
c96d49551e Fixes Get-IcingaService StartType with wildcards 2022-01-27 22:05:32 +01:00
Lord Hepipud
210862e683 Fixes JEA error on no modules installed and output 2022-01-27 21:59:38 +01:00
Lord Hepipud
586b55adc0 Improves show commands and extends Show-Icinga 2022-01-27 21:06:13 +01:00
Lord Hepipud
3eac2b3080 Fixes error handling for failed module import 2022-01-27 19:53:10 +01:00
Lord Hepipud
71269705cf Adds feature to sort arrays without ScriptBlocks 2022-01-27 19:37:40 +01:00
Lord Hepipud
df9f3c890e Supresses error messages on progress status 2022-01-27 16:23:17 +01:00
Lord Hepipud
cf52e6372e Fixes progress status writer by reworking 2022-01-27 15:34:17 +01:00
Lord Hepipud
b97aca7d25 Adds command to repair Icinga Agent service 2022-01-27 13:37:13 +01:00
Lord Hepipud
fe000c020f Adds upgrade notification to service binary 2022-01-25 11:54:18 +01:00
Lord Hepipud
f6cf9492e5 Moves PerformanceCounter to private space 2022-01-25 11:26:51 +01:00
Lord Hepipud
a23a40b23f Rewrite IfW service check daemon 2022-01-25 10:00:19 +01:00
Lord Hepipud
4d4d9caf2e Adds feature to enable Api-Checks over IMC install 2022-01-24 15:16:23 +01:00
Lord Hepipud
2b61c297ea Fixes plugin doc generator file lookup 2022-01-23 13:11:21 +01:00
Lord Hepipud
8244c2d440 Moves IfW EventLog out of Application log 2022-01-21 18:40:32 +01:00
Lord Hepipud
4ef55bddb4 Fixes lots of code styling, spelling and script analyzer
Disabling UseConsistentIndentation because it is not
properly working for multi-line commands with arguments
and array/hashtable objects
2022-01-14 22:26:53 +01:00
Lord Hepipud
dd2d71ee07 Remove experimental for API Checks and module note 2022-01-14 20:53:16 +01:00
Lord Hepipud
bf8d6479a9
Merge pull request #419 from Icinga:fix/managed_user_lookup_time
Fix: Icinga Managed User lookup time

Fixes the lookup time if a user is managed by Icinga for Windows or not in large Active Directory environments, by using \`Get\-LocalUser\` instead.

This Cmdlet is available starting with PowerShell 5.0 and later and only required in general for running Icinga for Windows in JEA context. As JEA is only supported starting with PowerShell 5.0 or later, this will not cause any problems.

In case the command is executed on an older system without the \`Get\-LocalUser\` Cmdlet available, Icinga for Windows will handle all users tested with the new implementation as \`not\` managed by Icinga for Windows.
2022-01-14 20:00:57 +01:00
Lord Hepipud
008b4920f1 Adds exeception detail reporting 2022-01-13 00:03:10 +01:00
Lord Hepipud
46bcb914fc Adds support for cert force creation over IMC 2022-01-04 21:53:28 +01:00
Lord Hepipud
55a0ce4987 Fixes repo sync by properly checking result 2022-01-04 20:55:34 +01:00
Lord Hepipud
63f24399b8 Fixes version splitting by returning major object 2022-01-04 20:25:21 +01:00
Lord Hepipud
327bb13d32 Fixes maximum user length for JEA profiles 2022-01-04 20:14:59 +01:00
Lord Hepipud
7dc1ffc3c5 Fixes lookup time for Icinga managed user 2022-01-04 02:11:39 +01:00
Lord Hepipud
0ad5031e60 Fixes crash on wrong variable usage 2022-01-04 01:28:09 +01:00
Lord Hepipud
2bbea22648
Merge pull request #405 from Icinga:fix/garbage_collector_memory_leak
Fix: Icinga for Windows memory leak

In some scenarios, Icinga for Windows can contain a memory leak, caused by a bug of the Garbage Collector in older PowerShell versions.

We resolve this by enforcing a more aggressive approach on memory cleanup and by collecting all objects being used.
2021-12-09 17:24:37 +01:00
Lord Hepipud
5ed5f0b5e2 Fixes Icinga for Windows memory leak 2021-12-09 17:22:48 +01:00
RincewindsHat
b1e2ef2052 Add missing parameters for format string 2021-12-08 17:22:50 +01:00
Lord Hepipud
32c4541397 Improves testing if Add-Type is already loaded 2021-11-25 13:12:57 +01:00
Lord Hepipud
f602b242b1 Removes unnecessary module import from namespace 2021-11-18 15:42:47 +01:00
Lord Hepipud
79d22ef127 Fixes Rest-Api address argument not being used 2021-11-16 16:28:00 +01:00
Lord Hepipud
ba2c075982 Fixes memory leak on EventLog reader 2021-11-15 12:09:14 +01:00
Lord Hepipud
83d1bbae8a Fixes repo hash generator to only include zip/msi 2021-11-11 15:56:20 +01:00
Lord Hepipud
737a8fe80c Fix web requests for repos not using icinga Cmdlet 2021-11-11 10:21:53 +01:00
Lord Hepipud
96476dbf41 Fixes object output of string builder 2021-11-10 10:29:22 +01:00
Lord Hepipud
22a6a72568 Fixes thresholdinterval data type in docs 2021-11-08 16:49:33 +01:00
Lord Hepipud
4a4c49d886 Adds function to create plugin documentation 2021-11-08 16:36:40 +01:00
Lord Hepipud
495e0d05c3 Adds developer utilities 2021-11-07 12:10:05 +01:00
Lord Hepipud
f4dd59461c Adds generic EventLog reader and IfW reader 2021-11-05 13:37:06 +01:00