18.06.2019, 08:05
This happens because there's no error check for get() calls.
Use this code:
Use this code:
Code:
for _, item in ipairs(OID_NAS) do
vbind, err = ups1:get(item[2])
if vbind then
grp.update(item[1], vbind.value)
else
alert('error reading from snmp: ' .. tostring(err))
end
end