18.06.2019, 10:00
(18.06.2019, 08:05)admin Wrote: This happens because there's no error check for get() calls.
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
Ok, I´ll try it.
Thanks!!