From nobody Thu Dec 28 16:28:31 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T1DTw74T4z5671T for ; Thu, 28 Dec 2023 16:28:52 +0000 (UTC) (envelope-from dan@langille.org) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4T1DTw23nGz3VD7 for ; Thu, 28 Dec 2023 16:28:52 +0000 (UTC) (envelope-from dan@langille.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=langille.org header.s=fm2 header.b=V4f3UW9r; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=hTlkceda; spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 66.111.4.26 as permitted sender) smtp.mailfrom=dan@langille.org; dmarc=pass (policy=none) header.from=langille.org Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 895F35C00F1 for ; Thu, 28 Dec 2023 11:28:51 -0500 (EST) Received: from imap42 ([10.202.2.92]) by compute7.internal (MEProxy); Thu, 28 Dec 2023 11:28:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1703780931; x=1703867331; bh=stHMkTIERy28kD5jy7PUNTOjlyvzEs6a X5ZYyRX0b94=; b=V4f3UW9rnEfxk3H7o0ckHvjuiooKl6qBhGGwfJP8QB3cgEUp 81rNoqfXwRfYWqTrXInnLdYRIzlkPpWUGhKbe0qoojxrdmxxPcWLsXrx5E5kWg0+ XlTKxA2/w7mYP0SeXgG/iX3cuN+FU9Ht1SM2V3wHiiCmGczfd7//3EojoLr1hvCK oMVpkwzWydyVASwkF2gu5aLRwNQwzH6f67cJiCpHG2OIPV8GmoMoFMbQi5OLcnxc mkPQpPaukLsjV5f995WCLK1lWZCKAO+MJFByJ2RTaEC3YEMIQq6/jziRZ3TsN/3K nlbL3xOk0sOumOaQ6p4TMvHurz/3W87adQY9Pg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1703780931; x=1703867331; bh=stHMkTIERy28kD5jy7PUNTOjlyvzEs6aX5Z YyRX0b94=; b=hTlkcedavYo0K0B+8L3JnKq3PsDhqk8N2KYd86FpAMCq0wfWfWM ZX4QPXhVpxTSnmTqwQbU6hsAltEXy/bsEg0/DKLsanUv4pcC4iFoRcFw9L+zpmwP oT6D7DwA7+7wcA6Bz1LNkNb9fxZvUG2dBuWSgXe7cS5+NQHrKi5EMkDe8JsZ7p+l t+fwOgquHcs7tZ25Uy6n6IAgHaVzR5S+Axq/WWyUgo1j5xsySWvc/Ccp3vd46MtK ubGwOeBCYEK/mQmGsA//js9zGg5UlrK/UvbDoWlPhnXP0rER/nMjD3apKf8PpdbD CeowmFZ0zkiVAfqf7dhMXaB/LJ8/7/hO9lQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdefuddgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedfffgrnhcunfgrnhhgihhllhgvfdcuoegurghnsehlrghnghhi lhhlvgdrohhrgheqnecuggftrfgrthhtvghrnhepgeetfeevffdtvedtudfggefgudffgf ffueekudfhleefkeeuhfduieehkeelledunecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepuggrnheslhgrnhhgihhllhgvrdhorhhg X-ME-Proxy: Feedback-ID: ifbf9424e:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4B59ABC007E; Thu, 28 Dec 2023 11:28:51 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1364-ga51d5fd3b7-fm-20231219.001-ga51d5fd3 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Message-Id: <95c256b2-ec07-4867-bfa2-32f39ba88504@app.fastmail.com> Date: Thu, 28 Dec 2023 11:28:31 -0500 From: "Dan Langille" To: freebsd-ports Subject: net-mgmt/net-snmp needs JAIL : off to get Memory usage Content-Type: text/plain X-Spamd-Result: default: False [-5.19 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[langille.org,none]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.26]; R_DKIM_ALLOW(-0.20)[langille.org:s=fm2,messagingengine.com:s=fm2]; RWL_MAILSPIKE_GOOD(-0.10)[66.111.4.26:from]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.26:from]; XM_UA_NO_VERSION(0.01)[]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[dan]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4T1DTw23nGz3VD7 X-Spamd-Bar: ----- 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