Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Invoke-IcingaCheckCPU Timeouts after Update

未关闭
#474 7 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@LordHepipud 已经在做这个了。

开始于 2026年3月25日。

评估

这个 Issue 还没有评估数据。

描述

bug Investigation

Hello,
since the last Update to the newest Icinga Agent, Icinga Powershell Framework and Powershell PLugins we are experiencing problems with the Invoke-IcingaCheckCPU check.
On some of our servers the service will run into a timeout without any specific reason why.
The plugin output in Icinga is just

<Timeout exceeded.>

Command Executed is the following

'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' '-C' 'try { Use-Icinga -Minimal; } catch { Write-Output '\''The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'\''; Write-Output '\''Error:'\'' $($_.Exception.Message)Components:`r`n$( Get-Module -ListAvailable '\''icinga-powershell-*'\'' )`r`n'\''Module-Path:'\''`r`n$($Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command '\''Invoke-IcingaCheckCPU'\'' ' '-DisableProcessList' '-Warning' '80%' '-Critical' '90%' '-Core' '_Total' '-Verbosity' '2' '-ThresholdInterval' '15m'

No other Service has problems so far, only the CPU one and it worked fine beforehand.
For the 15 Minute Time Index we have this implemented on our hosts:

Register-IcingaServiceCheck -CheckCommand 'Invoke-IcingaCheckCpu' -Interval 300 -TimeIndexes 5m, 15m

In the Event Logs we found these entries on the hosts with the problem:

Image

The Problem itself will manifest mostly at random after some time, directly after installing the Icinga Agent or after a reboot of the server and then will disappear either after some minutes, hours or days.
If you run the command in a local Powershell Session on the host it will just close the terminal after some time.
Forcing Icinga to check again in the WebUI sometimes returns a valid result but the service will then again go Unknown and back into a timeout.
Hosts are mostly Windows Server 2019 or 2022 all on the same patch version.
We can't really find a common thing under those hosts fora root cause of the problem because some hosts have no problems so far and others have the timeout only sometimes or all the time.

Installed Version for Icinga Agent are as following:
Icinga Agent - 2.15.1
Powershell Framwork - 1.14.1
Powershell Plugins - 1.14.0
Icinga Service - 1.3.0

主要语言
PowerShell
星标
55
派生
31
平均合并
4 天 5 小时
30 天内合并 PR
6

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Icinga/icinga-powershell-plugins 的其他 Issue

查看 Icinga/icinga-powershell-plugins 的全部 Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。