Repository navigation
Add basic check plugins - #22
Merged
Merged
Conversation
fthomys
force-pushed
the
feature/plugins-cpu-service-partition
branch
2 times, most recently
from
October 2, 2026 14:41
021e7d6 to
388dca3
Compare
LordHepipud
force-pushed
the
feature/plugins-cpu-service-partition
branch
from
October 23, 2026 15:38
388dca3 to
53e707a
Compare
LordHepipud
force-pushed
the
feature/plugins-cpu-service-partition
branch
from
November 11, 2026 18:02
53e707a to
416ed67
Compare
…fort methods - Add Invoke-IcingaCheckScheduledTask plugin, Get-IcingaScheduledTask provider, IcingaScheduledTaskStatus lookup class and unit tests - Add ScheduledTaskQueryFailed internal exit code (2500) in Set-InternalExitCodes - Enhance Test-IcingaArrayFilter to accept a single value or an array via -Value - Refactor all 9 check plugins (CPU, Directory, Memory, PartitionSpace, PerfCounter, Process, ScheduledTask, Service, Uptime) to use IcingaPlugin comfort features (.SetHidden(), .SetNoPerfData(), .SetState(), .SetNotice(), .Translate(), .AddMissingChecks() with string states, and root-level NoPerfData inheritance) - Update Directory and Uptime unit tests for notice summary exclusions and enforce code styling across all branch files
LordHepipud
force-pushed
the
feature/plugins-cpu-service-partition
branch
from
November 13, 2026 09:27
416ed67 to
1476502
Compare
- Reorganize src/Plugins/ into Checks/Public, Lib/Private and Provider/<Topic>/Private (removing top-level src/Provider/) so all plugin components live under one domain folder consistent with src/Core/ - Move New-IcingaPlugin and all Get-Icinga* providers from Public/ to Private/ so only executable Invoke-IcingaCheck* cmdlets are exported into the user session and internal helpers/providers are comment-stripped in the compiled kernel - Restore Disk (4300-4350), Directory (4400-4450) and Process (4500-4550) provider return-code entries in Set-InternalExitCodes alongside ScheduledTask (4600-4650) - Move Pester test helpers into BeforeAll in Get-IcingaScheduledTask.Tests.ps1 and Invoke-IcingaCheckScheduledTask.Tests.ps1 for Pester 5 Run-phase scope, and run New-IcingaPlugin.Tests.ps1 calls in module scope - Update plugin developer guides with the new src/Plugins/ paths and regenerate API reference documentation
LordHepipud
force-pushed
the
feature/plugins-cpu-service-partition
branch
from
November 13, 2026 12:40
4220021 to
8515dd1
Compare
- Require macros.ifw_api_command via Resolve-IcingaProtocolCommand, expand shorthand check names to Invoke-IcingaCheck* cmdlets, and restrict external binaries and scripts strictly to Get-ModuleBinaryDirectory() without consulting $env:PATH - Parse both ifw-api structured arguments and fallback custom variables in ConvertFrom-IcingaProtocolMacros while preserving case-distinct CLI flags, converting booleans and SecureString secrets safely across Windows PowerShell 5.1 and PowerShell 7+, and masking secrets in rendered command lines - Execute PowerShell checks and external .ps1 scripts in-process via & (relying on worker thread housekeeping for timeouts) and launch native executables/batch scripts via System.Diagnostics.Process with check_timeout enforcement, descendant process-tree termination, and Nagios/Icinga perfdata splitting - Measure full check resolution and execution duration monotonically in Start-IcingaProtocolWorker, omit empty service fields on Host CheckResult payloads, and fix local timezone drift in Get-IcingaUnixTime using UTC epoch timestamps - Register internal return codes 4004 and 50020-50025, add IWKB001000-IWKB001003 Knowledgebase articles, protocol developer documentation, branch task artifacts, regenerated API reference docs, and Pester unit test suites
… harden plugins - Extract reusable dictionary, CommandLineToArgvW quoting, parameter-map/coercion, and in-process PowerShell execution helpers into src/Tools/Private/ alongside focused macro, external-script, binary-process, and process-tree helpers in src/IcingaProtocol/Private/ - Promote New-IcingaPlugin from src/Plugins/Lib/Private/ to src/Plugins/Lib/Public/ as the public plugin SDK entrypoint while keeping Get-Icinga* providers private - Cache Get-PSCallStack command detection in Private.Icinga.ActiveCheckCommand across child nodes and reset deterministically in Compile(), Invoke-ModulePowerShellCommand, and Start-IcingaProtocolWorker - Add Core, OverallOnly, and NodeFilter/SocketFilter support in Invoke-IcingaCheckCPU, multi-status IcingaServiceStatus[] evaluation in Invoke-IcingaCheckService, Windows Scheduler 267009/267011 and 32-bit HRESULT hex handling in Invoke-IcingaCheckScheduledTask, and edge-case guards across PartitionSpace, Memory, Uptime, Disk, Directory, and macros - Harden Start-IcingaPerformanceCounterDaemon timeout response-queue handoff and BOM-less UTF-8 cache persistence, regenerate API and developer documentation, and expand Pester unit test coverage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the CPU, Service, PartitionSpace, Memory, Directory, Uptime and PerfCounter plugins on top of IcingaPlugin, with providers, tools and return codes.
All plugins read every data source once, use no script blocks (JEA, speed) and report failed queries as UNKNOWN with the reason. Counters are declared as literals, so the daemon has them warm from the start.