Fix: Performance for Add-Type testing With recent versions we added a feature to test if Add-Type functions are added to the current PowerShell session, ensuring that the same type is not re-added which caused errors on the error stack. While the code works perfectly fine, it takes a long time for execution which causes the plugin `Invoke-IcingaCheckDiskHealth` for example, to take way longer than usual. This PR prepares the future `Private` and `Public` section of the Icinga for Windows environment variables and adds an internal, quick test if a Add-Type function is already added to the current session, once being tested with the old behaviour. This reduces the disk health plugin execution time after the first run from around 10 seconds to 2 seconds. |
||
|---|---|---|
| .github/ISSUE_TEMPLATE | ||
| cache | ||
| custom | ||
| doc | ||
| lib | ||
| RoleCapabilities | ||
| templates | ||
| .gitattributes | ||
| .gitignore | ||
| icinga-powershell-framework.psd1 | ||
| icinga-powershell-framework.psm1 | ||
| LICENSE | ||
| PSScriptAnalyzerSettings.psd1 | ||
| README.md | ||
Icinga PowerShell Framework
The Icinga PowerShell Framework provides a wide range of configuration and check possibilities to ensure an easy integration and full monitoring of Windows environments. Each single chapter of this documentation will describe parts of the module and the possibilities.
Before you continue, please take a look at the Installation Guide
Documentation
Please take a look at the following content to get to know the possibilities of the module including examples on how to use it.
- Introduction
- Installation Guide
- Repository Management
- JEA
- Icinga Integration
- Framework Usage Examples
- Icinga PowerShell Framework as Service
- Knowledge Base
- Changelog
Developer Guide
If you wish to extend the Framework by yourself or write custom plugins for your environment, please have a look at the Developer Guide for detailed explanations of functions and code examples.
Contributing
The Icinga PowerShell Framework is an Open Source project and lives from your contributions. No matter whether these are feature requests, issues, translations, documentation or code.
- Please check whether a related issue alredy exists on our Issue Tracker
- Send a Pull Request
- The master branch shall never be corrupt!