SNMP: interface traffic info refresh – make it more frequent

Home Page Forums Network Management ZeroShell SNMP: interface traffic info refresh – make it more frequent

This topic contains 1 reply, has 0 voices, and was last updated by  aviegas 8 years, 7 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #42472

    aviegas
    Member

    It seems that the net-snmp packages for ZeroShell was configured with the cache timeout for the IF-MIB set to the default value of 15 in “agent/mibgroup/if-mib/ifTable/ifTable_data_access.h”

    #define IFTABLE_CACHE_TIMEOUT 15

    This imply that interface InOctets and OutOctets are updated every 15 seconds. This may be good for some operations, but if one if plotting this information in real time, 15 sec interval is useless.

    Although there is no configuration directive to change this at runtime, there is a way to change the value.

    running the following command after snmpd has started (give it 10 secs to start typically) will change the cache time for the IF-MIB and make the in/out byte count update as frequent as 1 sec.

    /Database/opt/x.x/packages/bin/snmpset -c write -v 1 127.0.0.1 NET-SNMP-AGENT-MIB::nsCacheTimeout.1.3.6.1.2.1.2.2 i 1

    This assumes that the RW community is named “write” in the snmpd.conf

    I hope this helps others running net-snmp under ZeroShell

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.