Commit graph

698 commits

Author SHA1 Message Date
Lord Hepipud
1c993bae1d
Improves service recover by adjustable restart time interval argument (#775)
Adds argument `-IntervalInSeconds` for `Enable-IcingaServiceRecovery` to allow setting a custom time interval for the service to restart, while setting the default to 120 seconds (2 minutes)
2025-01-29 15:45:01 +01:00
Lord Hepipud
ed0770e8ff
Fixes Ifw writing passwords to EventLog for failed command execution (#774)
Fixes EventLog error handling by no longer parsing command arguments to ensure passwords are not stored on the EventLog, unless the debug mode of Icinga for Windows is enable
2025-01-29 15:19:26 +01:00
Lord Hepipud
f5d9ac943c
Adds improved handling for Metrics over Time (#772)
This adds new and improved handling for Metrics over Time.

The overall execution time for the background tasks has been reduced, while also the memory management is way more efficient.

In addition to the improved core handling of the feature, performance metrics for metrics over time will NO LONGER BE WRITTEN.

This will increase the performance of the graphing solutions like InfluxDB a lot, while the monitoring by using the "-ThresholdInterval" argument is still possible.

```powershell
PS> Invoke-IcingaCheckCPU -Warning '5%' -ThresholdInterval '10m';
[WARNING] CPU Load [WARNING] Overall Load, Socket #0
\_ [WARNING] Overall Load: Value 6.546175% is greater than threshold 5% (10m Avg.) 
\_ [WARNING] Socket #0 
     \_ [WARNING] Core 0: Value 18.391566% is greater than threshold 5% (10m Avg.) 
     \_ [WARNING] Core 1: Value 14.100505% is greater than threshold 5% (10m Avg.)
     \_ [WARNING] Core Total: Value 6.546175% is greater than threshold 5% (10m Avg.)
| totalload::ifw_cpu::load=5.804053;5;;0;100 0_0::ifw_cpu::load=18.03764;5;;0;100 0_1::ifw_cpu::load=9.36611;5;;0;100 0_2::ifw_cpu::load=5.830669;5;;0;100 0_3::ifw_cpu::load=0.646737;5;;0;100 0_4::ifw_cpu::load=0.926955;5;;0;100 0_5::ifw_cpu::load=0.016205;5;;0;100 0_total::ifw_cpu::load=5.804053;5;;0;100
```
2025-01-29 14:45:53 +01:00
Lord Hepipud
7aebc65b49 Adds new start and stop Cmdlets for Icinga 2024-09-19 12:27:06 +02:00
Lord Hepipud
ea325acc00 Adds feature to set process priority for Icinga for Windows to BelowNormal for improved Host performance 2024-09-19 12:16:02 +02:00
Lord Hepipud
7ed60463a0 Fixes CPU and other performance data metrics to report proper values 2024-09-19 11:13:47 +02:00
Lord Hepipud
7077742709 Fixes an exception for the windowseventlog feature of the Agent, in case it is not installed 2024-09-12 11:54:49 +02:00
Lord Hepipud
c70da2a2a8 Fixes performance counter results sometimes reporting null instead of 0 2024-08-30 10:36:05 +02:00
Lord Hepipud
295fa00b12 Reworks handling on how plugin thresholds are interpreted 2024-08-29 14:53:37 +02:00
Lord Hepipud
0ca3ed5029 Fixes service provider for brackets in service names 2024-08-15 15:07:46 +02:00
Lord Hepipud
e84b511912 Adds cmdlet Write-IcingaAgentEventLogConfig to update eventlog severity and defaults to warningduring installation and migration 2024-08-14 17:29:14 +02:00
Lord Hepipud
35d61ef2d9 Adds support to check encoding of files 2024-08-14 17:00:45 +02:00
Lord Hepipud
c95d7baa5e Adds support to authenticate with the Icinga for Windows certificate for the REST-Api 2024-08-14 16:56:33 +02:00
Lord Hepipud
9c69c351a8 Fixes Update-Icinga to print an error in case a component is not installed 2024-06-06 14:44:07 +02:00
Lord Hepipud
2868a21660 Fixes leading backslash for service binary on initial setup 2024-04-24 13:10:32 +02:00
Lord Hepipud
12c3790614 Fixes certificate handling to provide systemwide compatibility 2024-04-18 14:57:09 +02:00
Lord Hepipud
9d1a9e87c4 Fixes JSON validator to always return False on unhandled errors 2024-04-10 18:06:53 +02:00
Lord Hepipud
5f6ad95fec Fixes Icinga for Windows certificate handling for all Windows environments 2024-04-10 16:40:59 +02:00
LordHepipud
a2294b3ce4 Fixes repository error handling and JSON error handling 2024-04-09 18:02:27 +02:00
LordHepipud
b280ccffc4 Fixes update order for components to always update the framework first 2024-04-09 18:00:32 +02:00
Lord Hepipud
3967283b2a Fix icingaforwindows.pfx creation over WinRM and SSH 2024-04-02 22:08:01 +02:00
Lord Hepipud
6b2f4838f9 Fixes scheduled task user to use LocalSystem instead of anything else 2024-04-02 21:55:39 +02:00
Lord Hepipud
3a3d66fc0a Fixes -Force flag for environment service updater 2024-04-02 21:01:44 +02:00
Lord Hepipud
807fd285e0 Fixes missing environment service information on some systems 2024-04-02 20:51:56 +02:00
Lord Hepipud
1667485d75 Fixes errors for non-admin shells introduced with v1.12.0 2024-04-02 10:43:53 +02:00
Lord Hepipud
9fc543d255 Fixes size of Icinga for Windows eventlog, by setting it to 20 MiB 2024-03-29 15:38:08 +01:00
Lord Hepipud
877d2366dc Fixes Icinga for Windows managed user password handling 2024-03-25 20:47:09 +01:00
Lord Hepipud
f636b98dff
Merge pull request #701 from Icinga:feature/add_icinga_for_windows_test_command
Feature: Adds new command to test the functionality of Icinga for Windows

Adds new command `Test-IcingaForWindows`to check the current environment health by also improving internal handlings on how service information are fetched, preventing a lock on those
2024-03-25 19:57:23 +01:00
Lord Hepipud
94ec30ab8a Fixes an issue with Icinga Director Self-Service API, which ignored the defined service user 2024-03-25 19:55:33 +01:00
Lord Hepipud
cd4bc7a01d Adds new command to test the functionality of Icinga for Windows 2024-03-25 19:19:53 +01:00
Lord Hepipud
c6159090e5 Adds feature to use pipes and multi lines for plugin documentation 2024-03-22 12:10:42 +01:00
Lord Hepipud
5e0b3a6113 Adds security hardening to JEA profiles by always prohibit certain cmdlets 2024-03-19 10:38:25 +01:00
Lord Hepipud
364a01047e Adds new command Restart-Icinga to restart both, the Icinga Agent and Icinga for Windows 2024-03-13 16:56:56 +01:00
Lord Hepipud
b5ffdd10be Renames "Restart-IcingaWindowsService" to "Restart-IcingaForWindows" and adds alias for backwards compatibility 2024-03-13 16:53:25 +01:00
Lord Hepipud
520b03fdc3
Merge pull request #691 from Icinga:features/adds_support_to_create_snapshot_repositories
Feature: Adds support to create snapshot repositories with "New-IcingaRepository"

Adds support to create own snapshot repositories with `New-IcingaRepository`
2024-03-13 16:41:32 +01:00
Lord Hepipud
01a4a806f3 Adds support to create snapshot repositories with "New-IcingaRepository" 2024-03-13 16:34:09 +01:00
Lord Hepipud
6a4b067a77
Merge pull request #690 from Icinga:features/adds_api_certificate_renewal
Feature: Adds renewal handling for Icinga for Windows certificate

Adds automatic renewal of the `icingaforwindows.pfx` certificate for the REST-Api daemon in case the certificate is not yet present, valid or changed during the runtime of the daemon while also making the `icingaforwindows.pfx` mandatory for all installations, regardless of JEA being used or not
2024-03-13 10:47:53 +01:00
Lord Hepipud
03e60d4ca4 Adds renewal handling for Icinga for Windows certificate 2024-03-13 10:44:20 +01:00
Lord Hepipud
c7eeab8dea
Merge pull request #631 from Al2Klimov/central-C
Get-IcingaCheckCommandConfig: move -C from every single command to template
2024-03-12 17:18:11 +01:00
Lord Hepipud
959fac6d32
Merge pull request #688 from Icinga:feature/adds_scheduled_task_offloader
Feature: Adds handling to add scheduled task background task

Adds new handling to add scheduled tasks in Windows for interacting with Icinga for Windows core functionality as well as an auto renewal task for the Icinga for Windows certificate generation
2024-03-12 15:17:10 +01:00
Lord Hepipud
ed3e8dc8fd Adds handling to add scheduled task background task 2024-03-12 15:13:34 +01:00
Lord Hepipud
0f0980db4f Fixes Icinga CA port handling on installation 2024-03-06 16:44:17 +01:00
Alexander A. Klimov
bb435dcb58 Get-IcingaCheckCommandConfig: move -C from every single command to template 2024-03-04 17:35:07 +01:00
Lord Hepipud
e7356a71ac Fixes exceptions in certain cases while trying to stop the JEA process 2024-02-28 17:26:53 +01:00
Lord Hepipud
36015f4fc2 Fixes JEA installer to exclude domain from user name length check 2024-02-20 14:14:39 +01:00
Lord Hepipud
c3d3627634 Various memory leak fixes and improvements 2024-02-02 10:48:09 +01:00
Lord Hepipud
f59f146bee Fixes memory leak in EventLog fetcher 2023-11-15 14:33:46 +01:00
Lord Hepipud
e60a494ab3 Fixes update path for v1.11.0 2023-11-03 17:05:24 +01:00
Alvar Penning
3262530d13 Get-IcingaCheckCommandConfig: improve -IcingaConfig documentation
The old Cmdlet's documentation implied that just by passing the
-IcingaConfig switch, an Icinga 2 configuration would be generated.
However, the first two examples does not work as intended, as
-IcingaConfig only works together with the -OutDirectory parameter.

The documentation was updated to reflect as Get-IcingaCheckCommandConfig
behaves and how one can generate Icinga 2 configurations. In addition,
a note was added to the Cmdlet's API documentation to handle
expectations of the switch.
2023-11-03 16:52:13 +01:00
Lord Hepipud
721ceee463 Fixes JEA installer not including REST-Api on first run 2023-11-03 16:27:41 +01:00