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

Invoke-IcingaCheckEventlog Unable to Monitor Multiple Event IDs

未关闭
#423 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
powershell

调研方向

从 Invoke-IcingaCheckEventlog 入口点开始,使用 IncludeSource AdmPwd、IncludeEntryType Information 以及事件 ID 11 和 15 重现 Application 日志命令。比较单 ID 和多 ID 筛选,然后验证结果仅包含 ID 11 和 15,并排除 ID 14。

由索引模型根据 Issue 内容生成。

描述

I am attempting to monitor Event IDs 11 and 15 in a single command using Invoke-IcingaCheckEventlog for the Application event log (-LogName Application) with the parameters -IncludeSource AdmPwd and -IncludeEntryType Information. However, despite trying multiple combinations with the -IncludeEventId parameter, the desired results are not achieved.

Details:
I want to configure a single service template to capture only these two specific Event IDs (11 and 15). However, with the commands I’ve tried so far, I am experiencing inconsistent results:

  1. Using -IncludeEventId '15','11' or @('15','11') does not return any events, even though log entries for IDs 11 and 15 are present.
  2. Running the command without -IncludeEventId captures additional, unwanted events like ID 14, which I do not need.

Here are some of the commands tested and their outcomes:

Invoke-IcingaCheckEventlog -Warning 0 -Critical 0 -LogName Application -IncludeSource AdmPwd -IncludeEntryType Information -Verbosity 3 -DisableTimeCache -IncludeEventId '15'
Result: Event 15 is successfully captured.

Invoke-IcingaCheckEventlog -Warning 0 -Critical 0 -LogName Application -IncludeSource AdmPwd -IncludeEntryType Information -Verbosity 3 -DisableTimeCache -IncludeEventId '11'
Result: Event 11 is successfully captured.

Invoke-IcingaCheckEventlog -Warning 0 -Critical 0 -LogName Application -IncludeSource AdmPwd -IncludeEntryType Information -Verbosity 3 -DisableTimeCache -IncludeEventId '15','11'
Result: No events are returned, even though log entries for IDs 11 and 15 are present.

I would appreciate support in configuring the command so that it only includes Event IDs 11 and 15, without capturing additional events like ID 14. Please see the attached images for reference.

image

other commands tested

image

主要语言
PowerShell
星标
55
派生
31
平均合并
7 小时 25 分钟
30 天内合并 PR
3

环境准备

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

从这里开始

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

Icinga/icinga-powershell-plugins 的其他 Issue

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

相似的 Issue

更多 Observability & SRE Issue

把新 issue 发到你的邮箱

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