Subject: Impossible to get "total memory" value via SNMP
To: None <port-sparc64@netbsd.org>
From: Joel CARNAT <joel@carnat.net>
List: port-sparc64
Date: 10/24/2006 14:29:51
Hi,
Reviewing my snmp/rrdtool installation, I'm diggind the OID for
NetBSD/sparc64. What is weird is replies dealing with memory.
From an /i386 installation, I get the right results:
# snmpget -v 2c -c xxxxx 10.0.0.254 UCD-SNMP-MIB::memTotalReal.0
UCD-SNMP-MIB::memAvailReal.0
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 188876
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 11072
From an /sparc64 installation, the total value is always set to 0:
# snmpget -v 2c -c xxxxx 10.0.0.9 UCD-SNMP-MIB::memTotalReal.0
UCD-SNMP-MIB::memAvailReal.0
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 0
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 408792
The error is still there whether I run the snmpget command from an /i386
machine or a /sparc64. I can't find examples on the Web on how people do
snmp with NetBSD :(
Does anyone know why memTotalReal returns wrong value on /sparc64 ?
Anyone knows where to check/correct things ?
Anyone have links to (public) NetBSD/snmp/rrdtool/mrtg example ?
TIA,
Jo