libsysctl: a C API for sysctl-mib-tree

Ed Schouten ed at nuxi.nl
Mon Dec 24 10:33:05 UTC 2018


Hi Alfonso,

Op za 22 dec. 2018 om 20:26 schreef Alfonso Siciliano <alfix86 at gmail.com>:
> I' m currently working on a library called "libsysctl" which will
> provide a C API to wrap kern_sysctl.c undocumented interface, build
> mib-entry, entries-list and mib-tree in userspace and then to do
> the work that /sbin/sysctl currently does.

Great work! This would have been nice to have when I implemented the
Prometheus metrics exporter for sysctl:

https://svnweb.freebsd.org/base/head/usr.sbin/prometheus_sysctl_exporter/prometheus_sysctl_exporter.c?view=markup

Best regards,
-- 
Ed Schouten <ed at nuxi.nl>


More information about the freebsd-hackers mailing list