From nobody Sat Jun 01 15:45:26 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 4Vs47q0X0kz5N4d3 for ; Sat, 01 Jun 2024 15:45:27 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vs47p5TlGz4PcD for ; Sat, 1 Jun 2024 15:45:26 +0000 (UTC) (envelope-from markjdb@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-x72c.google.com with SMTP id af79cd13be357-794ab4480beso220780885a.1 for ; Sat, 01 Jun 2024 08:45:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717256725; x=1717861525; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=suKGmWG/ziC4CIZXplPZoNweXtRovuxjZyUFnEaiqkk=; b=igaAYNlOMlHqG4nbt8lxTAKkVGVTdfBDLfhqXgKW335ocdxcTjUg3zZlB1EPACglZM nh19WU7OEoCjUfo2UT1CpLIpx3Cmfs078N0o8nQedqjcmOSrJMfAXaVBYnxS+sy/wBNI gZu3hPshxP269ZQec9phci95SawW0w6U4VFIkzFPQWZPTs1TqMC/KvdWQgssTGiidCHd d3BIHkVsRHDnk1cTMFKOXHgyV0SbipYmh4r1bzRI92CnnyHeyoachaLdsSBP17nxApha tPZGhP+mLKy7e4bzSyxs8gAu8jP10c4detqBxh4zTCY8zSaU3W0V67QkgC6OzZ9hBPOH z1fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717256725; x=1717861525; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=suKGmWG/ziC4CIZXplPZoNweXtRovuxjZyUFnEaiqkk=; b=g+uckg01TVBhzWF0edXeiNebHidBJ56RRZAhVu0le2uu18KEQcnLk8xSz44PKDEg0o dplW8NUjsExDZ2PsPURqBtxrbvbM03Vd2V7cqSF8hqTjrdse/RR4499Jl/KNdI19hUU3 q1UYuugJ2adN+JZw9BN4pXWV8hg27oao9oIdVP2sB0vOj11GcoAf7Cbd1ug1E8PuYb3k DH2BZ7KBOZHWK7yBM2pStl/sZh+x5Kb2OVU4ZQK1F81OzKU8toz+gHCjytJsbG/SEX1H sCLGRVUEQEdY9f/Ne8a6fF4KrA8ZDDtLI6Kjn3r79ETmW8u59FfaZeZba7+/NexcO84R MhEQ== X-Forwarded-Encrypted: i=1; AJvYcCUYqTp8/uJvnUyKbO3+6TOqAutia/PodIr/J3VyqzD7sGYhdMoetFmq583yjHtl+nApJaiDM8Z4KKcXsS5RCL0= X-Gm-Message-State: AOJu0Yxd29aJh+tYNkMEqN98C6PfZA7BOtYvMKbG3EIdksRtfzq7YAvo 8drpGfQ0UnOhK19sU+PwV+vuHMifZ4dAxKEySD3C333ezYHpZns9 X-Google-Smtp-Source: AGHT+IE6bhdERyYxZvK1gfVdpMYk2BCuxax6sGiCHHKXtxrNH9FUGQAAME2ZFKfFrrmx7YHusFW37A== X-Received: by 2002:a05:620a:22b8:b0:789:fb78:5419 with SMTP id af79cd13be357-794f5edf094mr473891085a.69.1717256725397; Sat, 01 Jun 2024 08:45:25 -0700 (PDT) Received: from framework ([137.122.66.15]) by smtp.gmail.com with ESMTPSA id af79cd13be357-794f2f04509sm142162785a.25.2024.06.01.08.45.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 08:45:24 -0700 (PDT) Date: Sat, 1 Jun 2024 11:45:26 -0400 From: Mark Johnston To: Dan Langille Cc: Budi Janto , pkg@freebsd.org Subject: Re: NULL result with net-snmp-5.9.4_1,1 Message-ID: References: <908894bb-9be8-455b-8fee-e7164d2451e9@studiokaraoke.co.id> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Vs47p5TlGz4PcD 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.) > > > > # 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?