[Bug 278066] net-mgmt/netdata spams error log with sysctl(kstat.zfs.misc.arcstats.p...) failed: No such file or directory (errno 2, No such file or directory)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 31 Mar 2024 13:17:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278066

            Bug ID: 278066
           Summary: net-mgmt/netdata spams error log with
                    sysctl(kstat.zfs.misc.arcstats.p...) failed: No such
                    file or directory (errno 2, No such file or directory)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: lysfjord.daniel@smokepit.net
                CC: nk@nkeor.me
             Flags: maintainer-feedback?(nk@nkeor.me)
                CC: nk@nkeor.me
 Attachment #249590 text/plain
         mime type:

Created attachment 249590
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=249590&action=edit
somewhat of a patch

Ref: https://github.com/netdata/netdata/issues/16644

Many changes was done to arcstats in
https://cgit.freebsd.org/src/commit?id=a8d83e2a24de6419dc58d2a7b8f38904985726cb

This causes the freebsd collector plugin to trigger a log line every second
(every data collection run):

2024-03-31 15:10:58: netdata ERROR : P[freebsd] : FREEBSD:
sysctl(kstat.zfs.misc.arcstats.p...) failed: No such file or directory (errno
2, No such file or directory)

The attached patch is only for systems from after the commit mentioned above,
so I guess some  logic so it's applied based on the avilability of the sysctl
would be nice.

The patch seems to cause no issues, and the lines in the log has stopped.

-- 
You are receiving this mail because:
You are the assignee for the bug.