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
  d...@langille.org

Reply via email to