HomeFreeBSD

prometheus_sysctl_exporter: ignore ENOENT for mibs specified on the CLI

Description

prometheus_sysctl_exporter: ignore ENOENT for mibs specified on the CLI

They might belong to kernel modules not currently loaded, or to other
kernel versions. Ignoring them allows the configuration to be shared
between multiple hosts.

Sponsored by: Axcient
Reviewed by: rew
Differential Revision: https://reviews.freebsd.org/D35540

(cherry picked from commit 982f980b86d6bab4d55452d17bf3f5eb04e5f01e)

Details

Provenance
asomersAuthored on Jun 21 2022, 6:51 PM
Reviewer
rew
Differential Revision
D35540: prometheus_sysctl_exporter: ignore ENOENT for mibs specified on the CLI
Parents
rGf5bbed62172b: pkgbase: split kerberos binaries and libs
Branches
Unknown
Tags
Unknown