Date: Thu, 28 Dec 2023 11:28:31 -0500 From: "Dan Langille" <dan@langille.org> To: freebsd-ports <freebsd-ports@freebsd.org> Subject: net-mgmt/net-snmp needs JAIL : off to get Memory usage Message-ID: <95c256b2-ec07-4867-bfa2-32f39ba88504@app.fastmail.com>
next in thread | raw e-mail | index | archive | help
Hello, I've just solved a long-puzzling issue with net-mgmt/net-snmp which was not reporting Memory Usage on my hosts. Tests show it is related to the JAIL build-time configuration option. JAIL=off: Options for running snmpd within a jail(8) If off, the default, Memory Usage is available via snmpd. If on, it is not. One might ask: why have it on if not running in a jail? Simplicity: I build my own packages. I could have one repo specifically for hosts (i.e. non-jails), but until now, it's never been an issue. However, I want to point that that JAIL=off does not seem to affect usage within a jail. It becomes clear what JAIL does when looking at the Makefile: .if ${PORT_OPTIONS:MJAIL} NET_SNMP_WITHOUT_MIB_MODULE_LIST+= host NET_SNMP_WITHOUT_MIB_MODULE_LIST+= ucd-snmp/memory CONFIGURE_ARGS+= --without-kmem-usage .endif Not it's clear. Don't report host-like objects when within a jail. It is time for some flavors on this port? I know I'd like one for my use: one without the above and with. I'll see if I can mangle something up which works. -- Dan Langille dan@langille.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?95c256b2-ec07-4867-bfa2-32f39ba88504>