Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update Windows.plugin#21797

Open
thiagoftsm wants to merge 6 commits intonetdata:masterfrom
thiagoftsm:fix_installer
Open

Update Windows.plugin#21797
thiagoftsm wants to merge 6 commits intonetdata:masterfrom
thiagoftsm:fix_installer

Conversation

@thiagoftsm
Copy link
Contributor

@thiagoftsm thiagoftsm commented Feb 21, 2026

Summary

When running installer on Windows, it is possible to find some issues like:

  1. Users do not see cpu.temperature chart.
  2. Users expect something additional in Control Panel.

This PR fixes all these issues.

Test Plan
  1. Compile this branch on Windows.
  2. Copy driver from C:\Windows\System32\netdata_driver.sys to the directory where binaries were built.
  3. Generate package
  4. Install Netdata.

After installation:

  1. Verify after these steps error messages like above are not appearing.
  2. Verify if "cpu.tempereature" is on your dashboard.
  3. If it is not visible, verify you have logs informing the reason.
Additional Information
For users: How does this change affect me?

Summary by cubic

Enables and hardens the Windows hardware info driver to stabilize CPU temperature charts. Also updates the installer and module metadata for a smoother Windows setup.

  • Bug Fixes
    • Installer/docs: only append EDITOR to /opt/netdata/etc/profile when the file is missing; add a Windows Service prerequisite to Windows module metadata.
    • Hardware info: enable GetHardwareInfo by default; keep a persistent MSR device handle; retry IOCTL reads with a short delay; fall back to the last valid CPU temp on errors; close the handle on shutdown; log a clear error when the driver is missing.

Written for commit 4327cb7. Summary will update on new commits.

@thiagoftsm thiagoftsm requested a review from a team as a code owner February 21, 2026 03:27
@github-actions github-actions bot added the area/packaging Packaging and operating systems support label Feb 21, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Confidence score: 4/5

  • This PR looks safe to merge overall; the only concern is a moderate issue around user setup in the Windows packaging script.
  • packaging/windows/package-windows.sh only checks for the passwd file, so a missing nobody entry can persist and keep the original failure mode in some environments.
  • Pay close attention to packaging/windows/package-windows.sh - ensure the nobody entry is added when absent even if the passwd file already exists.
Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="packaging/windows/package-windows.sh">

<violation number="1" location="packaging/windows/package-windows.sh:54">
P2: Only checking for the passwd file’s existence can leave the `nobody` user missing when the file already exists. This keeps the original failure mode. Check for the `nobody` entry instead so it is added when absent.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@ilyam8
Copy link
Member

ilyam8 commented Feb 22, 2026

@thiagoftsm On Windows, we bypass ndexe and execute commands directly. The error shown in the description is no longer present in the latest stable release.

@thiagoftsm
Copy link
Contributor Author

@thiagoftsm On Windows, we bypass ndexe and execute commands directly. The error shown in the description is no longer present in the latest stable release.

Hello @ilyam8 ,

I had a meeting last Friday with a user, and he showed us in his cloud dashboard two errors:

Error
Job check failed: error on quering XML GPU info: RunUnprivileged: C:\Program Files\Netdata\usr\bin\nd-run.exe C:\windows\system32\nvidia-smi.exe -q -x: exit status 1 (stderr: Fallback user 'nobody' not found either)[1:34 PM]ither)
Error
Job initialization failed: init intelgpu top exec: ndsudo executable not found: GetFileAttributesEx C:\Program Files\Netdata\usr\libexec\netdata\plugins.d\ndsudo: The system cannot find the file specified.

According to him, GPU is only showing errors like this and it is not working at all.

@ilyam8
Copy link
Member

ilyam8 commented Feb 23, 2026

Let me repeat: on Windows, we bypass nd-run.exe and execute commands directly. The error shown in the description is no longer present in the latest stable release.

Job initialization failed: init intelgpu top exec: ndsudo executable not found: GetFileAttributesEx C:\Program Files\Netdata\usr\libexec\netdata\plugins.d\ndsudo: The system cannot find the file specified.

Is different and has nothing to do with "missing user", I will check.

@thiagoftsm
Copy link
Contributor Author

Is different and has nothing to do with "missing user", I will check.

This is the reason the PR was made.

@thiagoftsm thiagoftsm changed the title fix_installer: address missing user Improve installer (Windows) Feb 26, 2026
@thiagoftsm thiagoftsm marked this pull request as draft February 26, 2026 02:31
@github-actions github-actions bot added area/collectors Everything related to data collection collectors/windows labels Feb 26, 2026
@github-actions github-actions bot added the area/metadata Integrations metadata label Feb 26, 2026
@thiagoftsm thiagoftsm marked this pull request as ready for review February 26, 2026 15:49
@thiagoftsm thiagoftsm changed the title Improve installer (Windows) Update Driver (Windows.plugin) Feb 26, 2026
@thiagoftsm thiagoftsm changed the title Update Driver (Windows.plugin) Update Windows.plugin Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/collectors Everything related to data collection area/metadata Integrations metadata area/packaging Packaging and operating systems support collectors/windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants