From nobody Sat Jun 01 15:50:31 2024 X-Original-To: pkg@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 4Vs4G41Clsz5N51t for ; Sat, 01 Jun 2024 15:50:52 +0000 (UTC) (envelope-from dan@langille.org) Received: from fout6-smtp.messagingengine.com (fout6-smtp.messagingengine.com [103.168.172.149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vs4G40nhWz4Q4x; Sat, 1 Jun 2024 15:50:52 +0000 (UTC) (envelope-from dan@langille.org) Authentication-Results: mx1.freebsd.org; none Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.nyi.internal (Postfix) with ESMTP id C7C5613800CE; Sat, 1 Jun 2024 11:50:51 -0400 (EDT) Received: from imap42 ([10.202.2.92]) by compute7.internal (MEProxy); Sat, 01 Jun 2024 11:50:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1717257051; x=1717343451; bh=wAkFC780IZ ksF0UqbatkTNSqo8XHe90zv4oKYw+nAsY=; b=DGiHTK5hNw3u/mfEwJLzxtwjbU Q/EOK889kk+oIuZBMopKOlvstt7/B12bTE55nCOBIkPxO7zQTu6RQBe/uSXPHiYt H1qTn7GyWca0J5ZIEfglZiA9E/zMv9503LfPc+VkBejaVW1Gx7cKcWnvucypf0DH pUnG/cmI0AHs9PI/MHTDTv8tEx4dC8BQOUwfXDDhwQ5l0abbDk67NnvvlzDzneoD k0Yx2RQqhv8fktPnwNIKrFuyfwtuv21XcDutY8GQFiXIoSC4BwzCltesCVrARFBc GEUnNPr1J5JtomMvLSmdXnjtX8RX0aa+CDEOucOFGssG3Jdfugp2bF2WiGgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1717257051; x=1717343451; bh=wAkFC780IZksF0UqbatkTNSqo8XH e90zv4oKYw+nAsY=; b=jP76l1J9ytW8ax7MffHx2uH6z2cQytaAY1ir1WvgpWyS zwBRg44ILQx0QUlwDGRMhWj1e2bR8rkgqF06lySpdJqnvh6SAaXA7y+8Z/3A64WV ot4olLsLMsjU3/u1YftZ/Y4XpIhqtT+g29QYAaWBYl9JjGRQGxga1APTiHiPM1Q9 X68Fh2mAxIZO0T3g3FT4LnMUvDJWGCcKWwxBjVWvLILpUcQWktGQPnjyI+saqKve OMCJFOokcvIk+lQ9G9NEq1vM04bJCUoY2mAxQUZSwFff03wE2lO13RE5hm/OVxUv zckbi3fKe0uc7OajPWtAKsmBLXQPND3E6yJ87w65pg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekkedgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfffgr nhcunfgrnhhgihhllhgvfdcuoegurghnsehlrghnghhilhhlvgdrohhrgheqnecuggftrf grthhtvghrnhepleekuefgvdekgffhvefhuedvvddutdfhuddtgedtffdvheefudehgfeh tdfhgfdtnecuffhomhgrihhnpehunhhigigrthhhohhmvgdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurghnsehlrghnghhilhhl vgdrohhrgh X-ME-Proxy: Feedback-ID: ifbf9424e:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 83FE5BC007D; Sat, 1 Jun 2024 11:50:51 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-491-g033e30d24-fm-20240520.001-g033e30d2 List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@FreeBSD.org MIME-Version: 1.0 Message-Id: In-Reply-To: References: <908894bb-9be8-455b-8fee-e7164d2451e9@studiokaraoke.co.id> Date: Sat, 01 Jun 2024 11:50:31 -0400 From: "Dan Langille" To: "Mark Johnston" Cc: "Budi Janto" , pkg@freebsd.org Subject: Re: NULL result with net-snmp-5.9.4_1,1 Content-Type: text/plain X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:209242, ipnet:103.168.172.0/24, country:US] X-Rspamd-Queue-Id: 4Vs4G40nhWz4Q4x On Sat, Jun 1, 2024, at 11:45 AM, Mark Johnston wrote: > On Sat, Jun 01, 2024 at 11:35:02AM -0400, Dan Langille wrote: >> On Sun, May 26, 2024, at 2:00 AM, Budi Janto wrote: >> > Hi, >> > >> > I need some help with Net-SNMP packages for monitoring CPU temperature. >> > >> > # uname -smr >> > FreeBSD 14.0-RELEASE-p5 amd64 >> > >> > # pkg info | grep net-snmp >> > net-snmp-5.9.4_1,1 Extendable SNMP implementation >> > >> > # sh x/snmp-cpu-temperature.sh >> > 30.0 >> > 29.0 >> > 28.0 >> > 28.0 >> > 29.0 >> > 29.0 >> > 29.0 >> > 29.0 >> > 30.0 >> > 28.0 >> > 28.0 >> > 27.0 >> > >> > # snmpwalk -v2c -c public localhost . | grep >> > 'NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature"' >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".1 = STRING: >> > >> > That's NULL result. >> > >> > But, I changed to net-snmp-5.9.4,1 version. >> > # pkg info | grep net-snmp >> > net-snmp-5.9.4,1 Extendable SNMP implementation > > I believe that in net-snmp-5.9.4_1,1, snmpd is running as the "snmpd" > user rather than as root. Can you confirm this? net-snmp-5.9.4_2,1 > reverts back to running as root. Does that fix the problem for you? > > What is in your snmp-cpu-temperature.sh script? Does it need to run as > root? (I'd be a bit surprised if so.) Budi: My snmpd is running as the snmpd user. >> > # snmpwalk -v2c -c public localhost . | grep >> > 'NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature"' >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".1 = STRING: 35.0 >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".2 = STRING: 35.0 >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".3 = STRING: 38.0 >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".4 = STRING: 38.0 >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".5 = STRING: 38.0 >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".6 = STRING: 38.0 >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".7 = STRING: 36.0 >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".8 = STRING: 36.0 >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".9 = STRING: 39.0 >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".10 = STRING: 39.0 >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".11 = STRING: 35.0 >> > NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpu-temperature".12 = STRING: 36.0 >> >> with net-snmp-5.9.4_2,1 for what it's worth: >> >> [dvl@besser:~] $ snmpwalk -v3 -l authPriv -u roMinion -a SHA -A $AUTHPASS -X $PRIVPASS -x AES dev-nginx01.int.unixathome.org | grep temperature >> [dvl@besser:~] $ > > This is in the extension MIB, so presumably Budi has some configuration > to add these OIDs. Did you add something like that? I thought about that after sending... no I don't, but I'm willing to try if Budi forwards the script / configuration. -- Dan Langille dan@langille.org