Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Jun 2024 11:35:02 -0400
From:      "Dan Langille" <dan@langille.org>
To:        "Budi Janto" <budijanto@studiokaraoke.co.id>, pkg@freebsd.org, "Mark Johnston" <markj@freebsd.org>
Subject:   Re: NULL result with net-snmp-5.9.4_1,1
Message-ID:  <f4d2e9e6-8c71-4a18-bab4-595adc2a834e@app.fastmail.com>
In-Reply-To: <908894bb-9be8-455b-8fee-e7164d2451e9@studiokaraoke.co.id>
References:  <908894bb-9be8-455b-8fee-e7164d2451e9@studiokaraoke.co.id>

next in thread | previous in thread | raw e-mail | index | archive | help
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
>
> # 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:~] $ 

Same issue here.  Adding markj in here - he has been making recent changes to the port - not that I'm sure this is related to pkg.

-- 
  Dan Langille
  dan@langille.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f4d2e9e6-8c71-4a18-bab4-595adc2a834e>