Ad Widget

Collapse

Low-level SNMP discovery for the 1.9.4 release

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jesmit
    Junior Member
    • Feb 2008
    • 20

    #16
    I think I figured out what is going on. It seems like there may be an item limit although I'm not sure how big it is. I'm using RFC1213-MIB::ipRouteIfIndex and pulling over 900 entries and am getting the "is not valid JSON" errors. If I pull from a router with a much smaller routing table (~100) then this works just fine.

    The reason I'm doing this is that I would like to alert when my routing table changes (BGP update, etc).

    Does anyone reading this have any idea what the limit is? My externalscripts timeout is set to 30seconds and the script is not even coming close to taking that long to execute.

    Thanks,

    -j

    Comment

    • ahowell
      Member
      • Jan 2011
      • 66

      #17
      Are you using proxies?

      It's a known issue with proxies, see ZBX-4780

      Comment

      • jesmit
        Junior Member
        • Feb 2008
        • 20

        #18
        I'm not using proxies, but having the same issues. I just installed a new branch yesterday, so I'll check to see if this is now resolved.

        Thanks for the pointer.

        -j

        Comment

        • Palmertree
          Senior Member
          • Sep 2005
          • 746

          #19
          Problem Solved

          Issue is with the Buffer Length which is set in include/common.h. Current value is set to 64K. I increased mine to 1M which fix the issue.

          old value:
          #define MAX_BUFFER_LEN 65536

          new value:
          #define MAX_BUFFER_LEN 1048576

          Comment

          • jesmit
            Junior Member
            • Feb 2008
            • 20

            #20
            Great find..

            Thanks.

            Comment

            Working...