Icinga / Icinga/icinga-powershell-plugins

Invoke-IcingaCheckUpdates: Output is confusing

Open
#344 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
55
Forks
30
PR merge metrics
No merged PRs in 30d

Description

Hello :)

I updated the plugins to v1.10.1 recently and find the short message output of the plugin a bit confusing.
image
image

The output "Windows Updates: 6 OK" leads me to think that there are 6 updates available for this machine, and that that is "OK".

Though by now I figured out that the "6" refers to the 6 categories (summary, reboot, other, security, defender, rollups) I would still not suggest this output.
And (imo) it gets worse/more confusing with threshold breaches
image

Suggestion: Don't display any numbers in the short message. Or add something like "category".
OK: [OK] Windows Updates below thresholds
CRITICAL/WARNING: [CRITICAL/WARNING] Windows Update Categories: 2 CRITICAL, 1 Warning, 5 OK (comma-separation)

Also I would suggest omitting the c unit in the text output.
image

Best
log1c

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Invoke-IcingaCheckUpdates entry point and the code that builds its short message and unit text. Reproduce the examples from the issue, then update the output so category counts and threshold status are unambiguous and the c unit is omitted; done when the resulting messages match the stated suggestions.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
observability-sre
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.