28.03.2020, 15:06
A more correct approach of handling counter64 type values:
Code:
if vbind then
value = vbind.value
if type(value) == 'userdata' then
value = tonumber(tostring(value))
end
if value ~= nil then
grp.checkupdate(item[1], value)
end
else
alert('error reading from snmp: ' .. tostring(err))
end