summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_mailq.pl
diff options
context:
space:
mode:
authorRobin Sonefors <robin.sonefors@op5.com>2013-01-29 13:18:32 +0100
committerRobin Sonefors <robin.sonefors@op5.com>2013-01-29 15:30:02 +0100
commitd87395ec3d4bec777ab92fc74c8370877171259f (patch)
treef9ff43b14123b51232b6d747af10e6aedba34d2e /plugins-scripts/check_mailq.pl
parentf4bbd88a9f91bfbfbe590b3252043392e7248988 (diff)
downloadmonitoring-plugins-d87395ec3d4bec777ab92fc74c8370877171259f.tar.gz
check_snmp: Dynamically grow all data structures
Before this patch, there was a constant, MAX_OIDS, that determined the amount of slots most (but not all - see labels) array data structures would have. It was set to 8. Some users would like to use more than that, but rather than bumping the constant, let's use the same type of logic we already use for labels - grow the space 8 slots at a time. This will allow us to potentially support an infinite amount of oids - or at least as many as the packetsize on the SNMP server allows, which is usually significantly smaller than infinity, yet often larger than 8. Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Diffstat (limited to 'plugins-scripts/check_mailq.pl')
0 files changed, 0 insertions, 0 deletions