• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Values SNMP Load and Memory

Scheduled Pinned Locked Moved SNMP
1 Posts 1 Posters 4.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z
    zoomzoom
    last edited by Sep 5, 2013, 3:36 PM

    Hi everybody,

    I'm trying to monitor my pfsense (2.0.1) with snmp but I cant get the correct values of CPU Load and RAM.

    For load I have :

    #snmpwalk -c XXXX -v 1 172.16.50.254 1.3.6.1.2.1.25.3.3.1.2

    HOST-RESOURCES-MIB::hrProcessorLoad.7 = INTEGER: 2
    HOST-RESOURCES-MIB::hrProcessorLoad.11 = INTEGER: 0
    HOST-RESOURCES-MIB::hrProcessorLoad.15 = INTEGER: 1
    HOST-RESOURCES-MIB::hrProcessorLoad.19 = INTEGER: 0
    HOST-RESOURCES-MIB::hrProcessorLoad.23 = INTEGER: 0
    HOST-RESOURCES-MIB::hrProcessorLoad.27 = INTEGER: 0
    HOST-RESOURCES-MIB::hrProcessorLoad.31 = INTEGER: 0
    HOST-RESOURCES-MIB::hrProcessorLoad.35 = INTEGER: 0

    FOR RAM:

    snmpwalk -c XXX -v 1 172.16.50.254 1.3.6.1.2.1.25.2.3.1.5.1

    HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 226431

    snmpwalk -c XXX -v 1 172.16.50.254 1.3.6.1.2.1.25.2.3.1.6.1

    HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 209035

    snmpwalk -c C2SRO -v 1 172.16.50.254 1.3.6.1.2.1.25.2.3.1.4.1

    HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 4096 Bytes

    snmpwalk -c XXX -v 1 172.16.50.254 1.3.6.1.2.1.25.2.2.0

    HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 8358892 KBytes

    For the load, what am I supposed to do with INTEGERS ? And with all those values ?

    For the memory, only hrMemorySize seems correct (8358892 = 8GB Ram) but when I multiply hrStorageSize/hrStorageUsed by hrStorageAllocationUnits It's not correct at all.

    values :

    hrStorageUsed * 4096 = 856207360B = 816,5 MB
    hrStorageSize * 4096 = 927461376B = 884,5 MB (correspond to the total amount of RAM right ?)

    sysctl hw.pagesize = 4096
    sysctl vm.stats.vm.v_page_count *4096 = 8275537920B = 7892,2 MB = 7,7GB (why different from "real" and hrMemorySize ?)
    sysctl vm.stats.vm.v_free_count *4096 = 7038038016B = 6712 MB = 6,6GB

    vm.stats.vm.v_page_count - vm.stats.vm.v_free_count = 1237499904B = 1.2GB (different hrStorageUsed )

    Why different values ???
    Where SNMP get his values for its RAM calculation ?

    Thanks !

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received