Menu

#34 check_snmp_storage.pl and lots of partitions error (patch)

Snmp plugins
open
nobody
None
5
2010-06-16
2010-06-16
No

Hi,

I have had the same error explain in the ticket #1535960 (http://sourceforge.net/tracker/index.php?func=detail&aid=1535960&group_id=134917&atid=732011).

When I was quering systems with more than 30 partitions, I've got the error message "ERROR: Status table:
Message size exceeded maxMsgSize". When I increased max_msg_size near to 65535, I got fragmentation of UDP packet.

The problem is that the plugin makes only one call of get_request() with lots of OIDS (more than 100 in my case). I've made a patch which call get_request() with maximum 12 OIDS, and gather all data in a for loop.

I will attach with this ticket :
- error.log : which display the full debug trace of the problem described
- check_snmp_storage-1.3.3-get_request_too_big.lng.patch : this is the patch applied on check_snmp_storage.pl script to solve the problem.

The patch has been tested on Solaris and Linux with success.

Best regards,

Discussion

  • Patrick Guiran

    Patrick Guiran - 2010-06-16

    Here is the command line I use during my tests :
    tauop@nagios:/usr/lib/nagios/plugins# ./check_snmp_storage.pl -v -H XXX.XXX.XXX.XXX -C public -m / -w 80 -c 90 -t 60 -o 65535

    I've also added "$session->debug( Net::SNMP->DEBUG_ALL)" at line 392, to have all debug messages.

     
  • Patrick Guiran

    Patrick Guiran - 2010-06-16

    debug messages

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.