Import snmpd_metrics.
authormartijn <martijn@openbsd.org>
Thu, 1 Sep 2022 14:20:32 +0000 (14:20 +0000)
committermartijn <martijn@openbsd.org>
Thu, 1 Sep 2022 14:20:32 +0000 (14:20 +0000)
commit5e39b8099378bf76b55ebe1b7ea3a033c86608c7
treea441d476767c93fe4aab0af9ad23a1f91210b642
parentabb1a4efe9e640e46f9c48fbb1d225647c0f6b22
Import snmpd_metrics.

This contains snmpd's mib.c (and friends) adjusted for libagentx.
This standalone binary is to be used by snmpd to achieve privilege
separation.

If people need net-snmpd, but want some of the base snmpd metrics they can
start this binary as a normal daemon and connect to net-snmpd's agentx
socket.

Tested, Feedback, and OK sthen@
Release build test, and OK tb@
12 files changed:
libexec/snmpd/Makefile [new file with mode: 0644]
libexec/snmpd/snmpd_metrics/Makefile [new file with mode: 0644]
libexec/snmpd/snmpd_metrics/kroute.c [new file with mode: 0644]
libexec/snmpd/snmpd_metrics/log.c [new file with mode: 0644]
libexec/snmpd/snmpd_metrics/log.h [new file with mode: 0644]
libexec/snmpd/snmpd_metrics/mib.c [new file with mode: 0644]
libexec/snmpd/snmpd_metrics/mib.h [new file with mode: 0644]
libexec/snmpd/snmpd_metrics/pf.c [new file with mode: 0644]
libexec/snmpd/snmpd_metrics/snmpd.h [new file with mode: 0644]
libexec/snmpd/snmpd_metrics/snmpd_metrics.8 [new file with mode: 0644]
libexec/snmpd/snmpd_metrics/timer.c [new file with mode: 0644]
libexec/snmpd/snmpd_metrics/util.c [new file with mode: 0644]