centos - snmpwalk timing out halfway through query

07
2014-07
  • Recc

    This is on a CentOS Cacti server that has ran for months on end with no problem.

    Now even for snmpwalk -v1 -cpublic localhost .1 results starts streaming through and halfway through results stop being listed for a moment and I get Timeout: No Response from localhost.

    Happens with other hosts that I could successfully query for months. What could this be?

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    Multiple IP interfaces responding to SNMP query in a same router?
  • JavaUser

    How to configure multiple IP address in a router . My requirement is both address should respond to SNMP query


  • Related Answers
  • bubu

    That largely depends on how you configure your router / what your router is running.

    You can e.g. create virtual eth interfaces in linux (eth0, eth0:1, etc.)

    auto eth0:1
    iface eth0:1 inet static
    address [ip]
    netmask [netmask]
    

    Then specify and bind the snmpd address in the snmpd configuration

    OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a -x 127.0.0.1 [ip]"
    
  • Alex

    You can also simply specify udp: to listen on all interfaces. I.e.

    OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a -x udp: "