]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
prometheus_sysctl_exporter: ignore ENOENT for mibs specified on the CLI
authorAlan Somers <asomers@FreeBSD.org>
Tue, 21 Jun 2022 18:51:14 +0000 (12:51 -0600)
committerAlan Somers <asomers@FreeBSD.org>
Sat, 20 Aug 2022 03:01:43 +0000 (21:01 -0600)
commitd58ced88d39f0169a3fa08e8e626870131cee90f
tree9b0f57fc5fb7b0fcd3c83e956078086c1fd8b871
parentf5bbed62172b067cd8a2cf685b3b1314cf883efa
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)
usr.sbin/prometheus_sysctl_exporter/prometheus_sysctl_exporter.c