Skip to content

Add macOS logs, battery, thermal, storage, smart collectors - #22475

Merged
ktsaou merged 56 commits into
netdata:masterfrom
ktsaou:macos-monitoring
Jul 5, 2026
Merged

Add macOS logs, battery, thermal, storage, smart collectors#22475
ktsaou merged 56 commits into
netdata:masterfrom
ktsaou:macos-monitoring

Conversation

@ktsaou

@ktsaou ktsaou commented May 13, 2026

Copy link
Copy Markdown
Member

Summary

This PR adds native macOS endpoint monitoring coverage and the supporting build, install, documentation, and review-fix work needed to ship it.

  • Add native macOS unified-log collection through OSLog APIs, including Function queries, filters, facets, histograms, search, pagination, tail/play behavior, and a macos-logs.plugin --test path for reproducible local queries.
  • Add macOS battery, UPS, power-source, thermal-pressure, fan, GPU, direct SMC/IOHID sensor, and native IOKit NVMe SMART collection.
  • Enable macOS storage-health support in smartctl, including Apple Silicon Homebrew paths and generated integration documentation.
  • Enable network-viewer.plugin on macOS with a Darwin libproc socket backend, macOS install enablement, permission/TCC warnings, network-connections, topology:network-connections, and network-protocols support.
  • Add privileged macOS helper/install support for macos-logs.plugin, ndsudo powermetrics commands, setuid ownership/mode handling, and build-info/install metadata updates.
  • Update generated integration docs, logs-tab docs, Netdata AI query skills, collector taxonomy opt-outs, and PR-review workflow helper scripts.
  • Fix review and CI findings across OSLog lifetime/thread cleanup, powermetrics polling, CUPS scheduler queries, power-source chart identity, NVMe discovery/temperature handling, SMC/IOHID/GPU sensor recovery, bounded string matching, and network-viewer CMake source-list maintenance.

Validation

  • git diff --check
  • python3 integrations/gen_integrations.py
  • python3 integrations/gen_docs_integrations.py for affected collectors
  • collector taxonomy generation/checks for touched collectors
  • python3 -m py_compile integrations/gen_docs_integrations.py
  • cmake --build build --target netdata -j2
  • cmake --build build --target ndsudo -j2
  • cmake --build build --target macos-logs.plugin -j2
  • cmake --build build --target cups.plugin -j2
  • cmake --build .local/build-network-viewer-macos --target network-viewer.plugin -j 6
  • direct macos-logs.plugin --test Function-protocol query returned HTTP 200 and unified-log rows
  • installed /opt/netdata runtime check: Agent running, /api/v1/info returns macOS
  • installed permission check: macos-logs.plugin and ndsudo are root-owned setuid helpers with mode 4750
  • installed ndsudo powermetrics-thermal-smc --sampleWindowMs 1000 as the Netdata user produced a plist without superuser-permission failure
  • network-viewer macOS smoke checks: network-protocols, network-connections sockets:aggregated, topology:network-connections, and explicit UDP PID/port visibility

Notes

  • Local hardware did not expose NVMe SMART-capable IOKit services, so native NVMe validation covered no-device behavior, API/build checks, and review-driven edge cases.
  • Local powermetrics exposed thermal pressure but returned an empty SMC dictionary, so fan/SMC chart validation is limited by the data available on the test host.
  • At the time of this update, PR checks had no failures; some GitHub Actions checks were still running on the previous head and will restart after the next push.

@CLAassistant

CLAassistant commented May 13, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions Bot added area/packaging Packaging and operating systems support area/docs area/collectors Everything related to data collection area/daemon area/build Build system (autotools and cmake). collectors/macos collectors/go.d area/metadata Integrations metadata area/go labels May 13, 2026
@ktsaou
ktsaou force-pushed the macos-monitoring branch from 2391e2f to 5a65ed9 Compare May 13, 2026 06:02
@ktsaou
ktsaou marked this pull request as draft May 13, 2026 08:09
@ktsaou ktsaou changed the title Add macOS monitoring support Add macOS logs, batter, thermal, storage, smart collectors May 13, 2026
@ktsaou ktsaou changed the title Add macOS logs, batter, thermal, storage, smart collectors Add macOS logs, battery, thermal, storage, smart collectors May 13, 2026
@sonarqubecloud

Copy link
Copy Markdown

@ktsaou
ktsaou marked this pull request as ready for review May 17, 2026 19:39
@ktsaou
ktsaou force-pushed the macos-monitoring branch from 97477c9 to 2749235 Compare July 3, 2026 14:59

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

6 issues found and verified against the latest diff

Confidence score: 3/5

  • src/collectors/macos-logs.plugin/macos-logs.c has a shutdown race where used_hashes_registry may be freed before worker threads fully unwind, which can trigger a use-after-free crash during plugin exit; add functions_evloop_join_threads(wg) after cancellation before merging.
  • src/collectors/macos.plugin/macos_powermetrics.c can stop reading stdout too early when POLLHUP appears alongside unread data, causing intermittent truncated plist reads and missed samples; only break on HUP when POLLIN is not set so buffered bytes are drained.
  • src/collectors/macos.plugin/macos_nvme.c delays rediscovery after transient read outages because last_discovery_ut still gates probes, so NVMe charts may remain absent for a full interval; reset discovery timing when calls fail to restore charts promptly.
  • src/collectors/macos.plugin/macos_power.c and src/collectors/macos.plugin/plugin_macos.c have power-source lifecycle risks (sanitized ID collisions can merge device metrics, and shutdown misses power-source cleanup), leading to overwritten charts and lingering resources; keep a raw unique key for lookup and add power cleanup in macos_main_cleanup before merge.
Prompt for AI agents (unresolved 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="src/collectors/macos.plugin/macos_power.c">

<violation number="1" location="src/collectors/macos.plugin/macos_power.c:342">
P2: Different power sources can collapse into one chart when their original names differ but sanitize to the same chart ID, so one device’s metrics can overwrite the other. Keeping a raw unique identity for lookup and using a separate sanitized value only for chart IDs avoids this collision path.</violation>
</file>

<file name="src/collectors/macos.plugin/plugin_macos.c">

<violation number="1" location="src/collectors/macos.plugin/plugin_macos.c:38">
P3: Power sources cleanup is missing from the plugin shutdown path. The `macos_main_cleanup` function calls `macos_powermetrics_cleanup()` and `macos_nvme_smart_cleanup()` to free background threads, mark charts obsolete, and release IOKit service references, but there is no equivalent `macos_power_sources_cleanup()` for the `power_sources_root` linked list. On plugin shutdown or dynamic module disable, every `callocz` and `strdupz` call in `macos_power_source_get_or_create` leaks the entire list. The diff adds cleanup calls at this exact location for the other two modules; consider adding a power-sources cleanup that frees the list and marks its charts obsolete before the worker unregisters.</violation>
</file>

Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Re-trigger cubic

Comment thread src/collectors/macos.plugin/macos_powermetrics.c Outdated
Comment thread src/collectors/utils/ndsudo.c Outdated
Comment thread src/collectors/macos.plugin/macos_nvme.c
Comment thread src/collectors/macos-logs.plugin/macos-logs.c
Comment thread src/collectors/macos.plugin/macos_power.c Outdated
Comment thread src/collectors/macos.plugin/plugin_macos.c
@ktsaou
ktsaou force-pushed the macos-monitoring branch from ec9cb9c to 5dc7f9f Compare July 3, 2026 17:30
@ktsaou
ktsaou requested a review from Copilot July 3, 2026 17:31
@ktsaou

ktsaou commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

@cubic-dev-ai please review again

@cubic-dev-ai

cubic-dev-ai Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai please review again

@ktsaou I have started the AI code review. It will take a few minutes to complete.

@ktsaou
ktsaou force-pushed the macos-monitoring branch from 5d4a0f9 to 91b5168 Compare July 5, 2026 19:29
@ktsaou
ktsaou merged commit d42ceed into netdata:master Jul 5, 2026
63 of 86 checks passed
@sonarqubecloud

sonarqubecloud Bot commented Jul 5, 2026

Copy link
Copy Markdown

if(!cmd || cmd[0] != '/' || !dst || !dst_size)
return false;

size_t len = strnlen(cmd, dst_size);
stelfrag added a commit to stelfrag/netdata that referenced this pull request Jul 12, 2026
…#23085)

Backport the macos.plugin sensor collectors (gpu, sensors/SMC, power,
powermetrics, nvme, iohid) and the shared hw-sensors histogram/function
framework to the 2.10.x line. macOS-only paths taken from master tip;
the functions_evloop/logs/network-viewer/status-file changes bundled in
those PRs are excluded (not needed by the in-process macOS collector).
Adds the ndsudo powermetrics whitelist (with <errno.h>) and CMake wiring.
@stelfrag stelfrag mentioned this pull request Jul 12, 2026
Ferroin pushed a commit that referenced this pull request Jul 15, 2026
Backport the macos.plugin sensor collectors (gpu, sensors/SMC, power,
powermetrics, nvme, iohid) and the shared hw-sensors histogram/function
framework to the 2.10.x line. macOS-only paths taken from master tip;
the functions_evloop/logs/network-viewer/status-file changes bundled in
those PRs are excluded (not needed by the in-process macOS collector).
Adds the ndsudo powermetrics whitelist (with <errno.h>) and CMake wiring.
@barracuda156

Copy link
Copy Markdown
Contributor

@ktsaou Apparently everything was added without proper version checks, and now builds break down on macos plugin:

 :info:build [ 94%] Building C object CMakeFiles/netdata.dir/src/collectors/macos.plugin/plugin_macos.c.o
:info:build /opt/local/bin/gcc-mp-16 -DPROTOBUF_USE_DLLS -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build/_deps/dlib-src/dlib/.. -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build/src/aclk/aclk-schemas -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src -I/opt/local/include/json-c -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/libnetdata/libjudy/vendored -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/libnetdata/libjudy/vendored/JudyCommon -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/aclk/helpers -F//System/Library/Frameworks -isystem /opt/local/include -isystem /opt/local/libexec/openssl3/include -pipe -I/opt/local/libexec/openssl3/include -O2 -DNDEBUG -I/opt/local/libexec/openssl3/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -std=gnu11 -flto=auto -flto=auto -arch ppc -mmacosx-version-min=10.6 -fexceptions -fstack-protector-strong -D_FORTIFY_SOURCE=3 -fstack-clash-protection -ffunction-sections -fdata-sections -Wno-builtin-macro-redefined -fno-omit-frame-pointer -funwind-tables -fasynchronous-unwind-tables -DDLIB_NO_GUI_SUPPORT -DMQTT_WSS_CUSTOM_ALLOC -DRBUF_CUSTOM_MALLOC -DMQTT_WSS_CPUSTATS -MD -MT CMakeFiles/netdata.dir/src/collectors/macos.plugin/plugin_macos.c.o -MF CMakeFiles/netdata.dir/src/collectors/macos.plugin/plugin_macos.c.o.d -o CMakeFiles/netdata.dir/src/collectors/macos.plugin/plugin_macos.c.o -c /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/plugin_macos.c
:info:build In file included from /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/database/engine/rrdengine.h:23,
:info:build                  from /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/database/engine/rrdengineapi.h:6,
:info:build                  from /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/database/rrd.h:119,
:info:build                  from /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/profile.plugin/plugin_profile.cc:7:
:info:build /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/daemon/protected-access.h: In function 'void protected_access_end(volatile int*)':
:info:build /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/daemon/protected-access.h:76:32: warning: '--' expression of 'volatile'-qualified type is deprecated [-Wvolatile]
:info:build    76 |         protected_access_state.depth--;
:info:build       |         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
:info:build [ 94%] Building C object CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_sysctl.c.o
:info:build /opt/local/bin/gcc-mp-16 -DPROTOBUF_USE_DLLS -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build/_deps/dlib-src/dlib/.. -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build/src/aclk/aclk-schemas -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src -I/opt/local/include/json-c -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/libnetdata/libjudy/vendored -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/libnetdata/libjudy/vendored/JudyCommon -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/aclk/helpers -F//System/Library/Frameworks -isystem /opt/local/include -isystem /opt/local/libexec/openssl3/include -pipe -I/opt/local/libexec/openssl3/include -O2 -DNDEBUG -I/opt/local/libexec/openssl3/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -std=gnu11 -flto=auto -flto=auto -arch ppc -mmacosx-version-min=10.6 -fexceptions -fstack-protector-strong -D_FORTIFY_SOURCE=3 -fstack-clash-protection -ffunction-sections -fdata-sections -Wno-builtin-macro-redefined -fno-omit-frame-pointer -funwind-tables -fasynchronous-unwind-tables -DDLIB_NO_GUI_SUPPORT -DMQTT_WSS_CUSTOM_ALLOC -DRBUF_CUSTOM_MALLOC -DMQTT_WSS_CPUSTATS -MD -MT CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_sysctl.c.o -MF CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_sysctl.c.o.d -o CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_sysctl.c.o -c /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_sysctl.c
:info:build [ 94%] Building C object CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_mach_smi.c.o
:info:build /opt/local/bin/gcc-mp-16 -DPROTOBUF_USE_DLLS -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build/_deps/dlib-src/dlib/.. -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build/src/aclk/aclk-schemas -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src -I/opt/local/include/json-c -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/libnetdata/libjudy/vendored -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/libnetdata/libjudy/vendored/JudyCommon -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/aclk/helpers -F//System/Library/Frameworks -isystem /opt/local/include -isystem /opt/local/libexec/openssl3/include -pipe -I/opt/local/libexec/openssl3/include -O2 -DNDEBUG -I/opt/local/libexec/openssl3/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -std=gnu11 -flto=auto -flto=auto -arch ppc -mmacosx-version-min=10.6 -fexceptions -fstack-protector-strong -D_FORTIFY_SOURCE=3 -fstack-clash-protection -ffunction-sections -fdata-sections -Wno-builtin-macro-redefined -fno-omit-frame-pointer -funwind-tables -fasynchronous-unwind-tables -DDLIB_NO_GUI_SUPPORT -DMQTT_WSS_CUSTOM_ALLOC -DRBUF_CUSTOM_MALLOC -DMQTT_WSS_CPUSTATS -MD -MT CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_mach_smi.c.o -MF CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_mach_smi.c.o.d -o CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_mach_smi.c.o -c /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_mach_smi.c
:info:build [ 94%] Building C object CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_fw.c.o
:info:build /opt/local/bin/gcc-mp-16 -DPROTOBUF_USE_DLLS -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build/_deps/dlib-src/dlib/.. -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build/src/aclk/aclk-schemas -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src -I/opt/local/include/json-c -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/libnetdata/libjudy/vendored -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/libnetdata/libjudy/vendored/JudyCommon -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/aclk/helpers -F//System/Library/Frameworks -isystem /opt/local/include -isystem /opt/local/libexec/openssl3/include -pipe -I/opt/local/libexec/openssl3/include -O2 -DNDEBUG -I/opt/local/libexec/openssl3/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -std=gnu11 -flto=auto -flto=auto -arch ppc -mmacosx-version-min=10.6 -fexceptions -fstack-protector-strong -D_FORTIFY_SOURCE=3 -fstack-clash-protection -ffunction-sections -fdata-sections -Wno-builtin-macro-redefined -fno-omit-frame-pointer -funwind-tables -fasynchronous-unwind-tables -DDLIB_NO_GUI_SUPPORT -DMQTT_WSS_CUSTOM_ALLOC -DRBUF_CUSTOM_MALLOC -DMQTT_WSS_CPUSTATS -MD -MT CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_fw.c.o -MF CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_fw.c.o.d -o CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_fw.c.o -c /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_fw.c
:info:build [ 94%] Building C object CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_power.c.o
:info:build /opt/local/bin/gcc-mp-16 -DPROTOBUF_USE_DLLS -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build/_deps/dlib-src/dlib/.. -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build/src/aclk/aclk-schemas -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src -I/opt/local/include/json-c -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/libnetdata/libjudy/vendored -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/libnetdata/libjudy/vendored/JudyCommon -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/aclk/helpers -F//System/Library/Frameworks -isystem /opt/local/include -isystem /opt/local/libexec/openssl3/include -pipe -I/opt/local/libexec/openssl3/include -O2 -DNDEBUG -I/opt/local/libexec/openssl3/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -std=gnu11 -flto=auto -flto=auto -arch ppc -mmacosx-version-min=10.6 -fexceptions -fstack-protector-strong -D_FORTIFY_SOURCE=3 -fstack-clash-protection -ffunction-sections -fdata-sections -Wno-builtin-macro-redefined -fno-omit-frame-pointer -funwind-tables -fasynchronous-unwind-tables -DDLIB_NO_GUI_SUPPORT -DMQTT_WSS_CUSTOM_ALLOC -DRBUF_CUSTOM_MALLOC -DMQTT_WSS_CPUSTATS -MD -MT CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_power.c.o -MF CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_power.c.o.d -o CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_power.c.o -c /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_power.c
:info:build /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_fw.c: In function 'do_macos_iokit':
:info:build /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_fw.c:124:22: warning: 'IORegistryEntryGetChildEntry' reading 128 bytes from a region of size 10 [-Wstringop-overread]
:info:build   124 |             status = IORegistryEntryGetChildEntry(drive, kIOServicePlane, &drive_media);
:info:build       |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_fw.c:124:22: note: referencing argument 2 of type 'const char[128]'
:info:build In file included from /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_fw.c:6:
:info:build /System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:1127:1: note: in a call to function 'IORegistryEntryGetChildEntry'
:info:build  1127 | IORegistryEntryGetChildEntry(
:info:build       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build [ 95%] Building C object CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_iohid.c.o
:info:build /opt/local/bin/gcc-mp-16 -DPROTOBUF_USE_DLLS -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build/_deps/dlib-src/dlib/.. -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build/src/aclk/aclk-schemas -I/opt/local/var/macports/build/netdata-07fe1a5d/work/build -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src -I/opt/local/include/json-c -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/libnetdata/libjudy/vendored -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/libnetdata/libjudy/vendored/JudyCommon -I/opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/aclk/helpers -F//System/Library/Frameworks -isystem /opt/local/include -isystem /opt/local/libexec/openssl3/include -pipe -I/opt/local/libexec/openssl3/include -O2 -DNDEBUG -I/opt/local/libexec/openssl3/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -std=gnu11 -flto=auto -flto=auto -arch ppc -mmacosx-version-min=10.6 -fexceptions -fstack-protector-strong -D_FORTIFY_SOURCE=3 -fstack-clash-protection -ffunction-sections -fdata-sections -Wno-builtin-macro-redefined -fno-omit-frame-pointer -funwind-tables -fasynchronous-unwind-tables -DDLIB_NO_GUI_SUPPORT -DMQTT_WSS_CUSTOM_ALLOC -DRBUF_CUSTOM_MALLOC -DMQTT_WSS_CPUSTATS -MD -MT CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_iohid.c.o -MF CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_iohid.c.o.d -o CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_iohid.c.o -c /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_iohid.c
:info:build In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h:33,
:info:build                  from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:11,
:info:build                  from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43,
:info:build                  from /opt/local/include/LegacySupport/CoreFoundation/CoreFoundation.h:27,
:info:build                  from /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_power.c:9:
:info:build /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_power.c: In function 'macos_power_source_update_from_description':
:info:build /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_power.c:343:63: error: expected ')' before 'kIOPSTemperatureKey'
:info:build   343 |     ps->has_temperature = cf_dictionary_get_int64(desc, CFSTR(kIOPSTemperatureKey), &temperature_c);
:info:build       |                                                               ^~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/netdata-07fe1a5d/work/netdata-v2.10.4/src/collectors/macos.plugin/macos_power.c:343:57: note: to match this '('
:info:build   343 |     ps->has_temperature = cf_dictionary_get_int64(desc, CFSTR(kIOPSTemperatureKey), &temperature_c);
:info:build       |                                                         ^~~~~
:info:build make[2]: *** [CMakeFiles/netdata.dir/src/collectors/macos.plugin/macos_power.c.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/netdata-07fe1a5d/work/build'
:info:build make[1]: *** [CMakeFiles/netdata.dir/all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/netdata-07fe1a5d/work/build'
:info:build make: *** [all] Error 2

@stelfrag

stelfrag commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

@barracuda156 #23421 may fix this. If you would be kind enough to check

@barracuda156

Copy link
Copy Markdown
Contributor

@stelfrag Thank you very much, I will try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Build system (autotools and cmake). area/collectors Everything related to data collection area/daemon area/database area/docs area/go area/metadata Integrations metadata area/packaging Packaging and operating systems support collectors/cups collectors/go.d collectors/macos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants