bsnmp a RAM

Miroslav Prýmek m.prymek at gmail.com
Sun Dec 29 13:49:02 CET 2013


Ahoj,

potrebuju na jednom stroji rozjet monitoring - jenom zakladni veci,
zadna veda, tak jsem si rikal, ze by bsnmp mohlo stacit a jednodussi
konfigurace je fajn, ale nejak se nemuzu zorientovat v hodnotach,
ktery vraci ohledne RAM:

sysctl:
hw.physmem: 8533217280
hw.usermem: 7835803648
hw.realmem: 8791257088

top:
Mem: 291M Active, 6420M Inact, 665M Wired, 181M Cache, 823M Buf, 335M Free

# snmpwalk -v2c -c public XXXX hrStorageTable | grep '\.1 '
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Real Memory Metrics
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 159633
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 111831
HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0

# snmpwalk -v2c -c public XXXX hrStorageTable | grep '\.2 '
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: Shared Real Memory Metrics
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 20924
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 8332
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0

Muzete me prosim nekdo nakopnout? Ty cisla mi vubec nedavaji smysl,
chtel bych se dostat k nejak cislum aspon vzdalene pripominajicim
udaje z topu :)

Dalsi problem je, ze se mi to nejak nedari resit ani pomoci
net-mgmt/bsnmp-ucd - v /etc/snmpd.conf mam:
begemotSnmpdModulePath."ucd" = "/usr/local/lib/snmp_ucd.so"
soubor existuje, daemon nastartuje, v syslogu nic a hodnoty tam proste nejsou:

---------
# snmpwalk -On -v2c -c public comenius | grep 2021
.1.3.6.1.2.1.1.9.1.2.11 = OID: .1.3.6.1.4.1.2021
---------

Tak nevim, jsem z toho nejaky zmateny... Jde to nejak rozjet, nebo se
na to vykaslat a nainstalovat klasicky net-snmp?

dik

Mirek


More information about the Users-l mailing list