Forum Discussion

Stéphane_Deglin's avatar
Stéphane_Deglin
Icon for Nimbostratus rankNimbostratus
Oct 28, 2008

Monitoring stats profile via snmp

Hello,

 

 

I am trying to gather some stats about my traffic with snmp.

 

In fact I wrote a small iRules which classify the request depending on the server response time, and count each request in a time-class.

 

The results are placed in a stats profile. It works well and I got accurate values on the F5.

 

To view how the reponse time are evolving, I used a mrtg poller which request the corresponding F5 MIB. And here comes my problem. The stats are converted in 64 bytes counter in the MIB, and the value returned par SNMP seems to have no link with those I got directly on the F5.

 

Is there any special computation made between the raw profile and its MIB representation ?

 

 

Thanks

1 Reply

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    How are you converting the SNMP value to your system? SNMP uses network byte order (BigEndian - Which is the order you'd write a number out on paper MSb on the left), and x86 store numbers the other way round (LittleEndian - Reversing the Bytes). Plus the number will probably come back as two 32bit values (Rather than a single 64bit value), and you'll have to shift the hi-order longword 32bits and then logically OR it with the low-order longword.