libsysctl: a C API for sysctl-mib-tree

Alfonso Siciliano alfix86 at gmail.com
Wed Dec 26 14:16:59 UTC 2018


Hi Ed,

> Ed Schouten <ed at nuxi.nl> wrote:
> > 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! 

Thanks

> 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

I thought libsysctl exactly to help to write programs like "prometheus_sysctl_exporter"

Regards,
Alfonso

--- 
Alfonso S. Siciliano 
   http://alfix.gitlab.io


More information about the freebsd-hackers mailing list