genError in SNMP plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ivzquez
Posts: 1
Joined: Mon Mar 21, 2016 12:19 pm

genError in SNMP plugin

Post by ivzquez »

Hi,
I have made a simple plugin for counting the lines on a dynamic table. The script work nice, but 1 of x time, i have a CRITICAL, the problem is an "Error in packet" with a "genError (general Error)" :x
The recollection command I'm using is the next:

Code: Select all

snmpbulkwalk -r 10 -Ov -v 2c -Cc -c ${comu} ${ip}:${port} ${OID} 
The table can have between 50 and 300 lines.

Any idea?
Best regards
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: genError in SNMP plugin

Post by hsmith »

I'm not entirely sure what is causing the error - but you could add some logic to your script to have it re-run the snmpwalk command if it finds that error.
Former Nagios Employee.
me.
Locked