Values SNMP Load and Memory



  • 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 !


Log in to reply