INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84272','35257','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84273','35258','1','12','$[\'{#UPSTREAM}\'].peers[?(@.server == \'{#PEER}\')].state.first()','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84274','35258','2','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84275','35259','1','12','$[\'{#UPSTREAM}\'].peers[?(@.server == \'{#PEER}\')].unavail.first()','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84276','35260','1','12','$[\'{#NAME}\'].zombies','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84277','35261','1','12','$[\'{#NAME}\'].zone','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84278','35261','2','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84279','35266','1','12','$.ActiveState.state','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84280','35266','2','20','30m','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84281','35267','1','12','$.LoadState.state','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84282','35267','2','20','30m','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84283','35268','1','12','$.UnitFileState.state','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84284','35268','2','20','30m','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84285','35269','1','21','data = JSON.parse(value)\n  if (data.ActiveEnterTimestamp > data.ActiveExitTimestamp) {\n      return Math.floor(Date.now()/1000)-Number(data.ActiveEnterTimestamp)/1000000;\n    }\n  return null;','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84286','35270','1','12','$.NAccepted','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84287','35270','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84288','35271','1','12','$.NConnections','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84289','35273','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84290','35276','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84291','35278','1','12','$.data.process[\'trigger housekeeper\'].busy.avg','3','Processes trigger housekeeper not started');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84292','35279','1','12','$.data.process[\'service manager\'].busy.avg','3','Processes service manager not started');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84293','35280','1','21','var data = JSON.parse(value);\nfor (var item, i = 0; item = data.data[i++];) {\n    if (!(\'{#JMXIGNITEINSTANCENAME}\' in item)) {\n        Object.assign(item, {\n            \'{#JMXIGNITEINSTANCENAME}\': \'null\'\n        });\n    }\n\n}\n\nreturn JSON.stringify(data)','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84294','35280','2','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84295','35281','1','21','var data = JSON.parse(value);\nfor (var item, i = 0; item = data.data[i++];) {\n    if (!(\'{#JMXIGNITEINSTANCENAME}\' in item)) {\n        Object.assign(item, {\n            \'{#JMXIGNITEINSTANCENAME}\': \'null\'\n        });\n    }\n\n}\n\nreturn JSON.stringify(data)','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84296','35282','1','21','var data = JSON.parse(value);\nfor (var item, i = 0; item = data.data[i++];) {\n    if (!(\'{#JMXIGNITEINSTANCENAME}\' in item)) {\n        Object.assign(item, {\n            \'{#JMXIGNITEINSTANCENAME}\': \'null\'\n        });\n    }\n\n}\n\nreturn JSON.stringify(data)','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84297','35283','1','21','var data = JSON.parse(value);\nfor (var item, i = 0; item = data.data[i++];) {\n    if (!(\'{#JMXIGNITEINSTANCENAME}\' in item)) {\n        Object.assign(item, {\n            \'{#JMXIGNITEINSTANCENAME}\': \'null\'\n        });\n    }\n\n}\n\nreturn JSON.stringify(data)','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84298','35284','1','21','var data = JSON.parse(value);\nfor (var item, i = 0; item = data.data[i++];) {\n    if (!(\'{#JMXIGNITEINSTANCENAME}\' in item)) {\n        Object.assign(item, {\n            \'{#JMXIGNITEINSTANCENAME}\': \'null\'\n        });\n    }\n\n}\n\nreturn JSON.stringify(data)','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84299','35285','1','21','var data = JSON.parse(value);\nfor (var item, i = 0; item = data.data[i++];) {\n    if (!(\'{#JMXIGNITEINSTANCENAME}\' in item)) {\n        Object.assign(item, {\n            \'{#JMXIGNITEINSTANCENAME}\': \'null\'\n        });\n    }\n\n}\n\nreturn JSON.stringify(data)','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84300','35286','1','21','var data = JSON.parse(value);\nfor (var item, i = 0; item = data.data[i++];) {\n    if (!(\'{#JMXIGNITEINSTANCENAME}\' in item)) {\n        Object.assign(item, {\n            \'{#JMXIGNITEINSTANCENAME}\': \'null\'\n        });\n    }\n\n}\n\nreturn JSON.stringify(data)','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84301','35287','1','21','var data = JSON.parse(value);\nfor (var item, i = 0; item = data.data[i++];) {\n    if (!(\'{#JMXIGNITEINSTANCENAME}\' in item)) {\n        Object.assign(item, {\n            \'{#JMXIGNITEINSTANCENAME}\': \'null\'\n        });\n    }\n\n}\n\nreturn JSON.stringify(data)','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84302','35287','2','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84303','35288','1','21','var data = JSON.parse(value);\nfor (var item, i = 0; item = data.data[i++];) {\n    if (!(\'{#JMXIGNITEINSTANCENAME}\' in item)) {\n        Object.assign(item, {\n            \'{#JMXIGNITEINSTANCENAME}\': \'null\'\n        });\n    }\n\n}\n\nreturn JSON.stringify(data)','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84304','35288','2','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84305','35289','1','21','var data = JSON.parse(value);\nfor (var item, i = 0; item = data.data[i++];) {\n    if (!(\'{#JMXIGNITEINSTANCENAME}\' in item)) {\n        Object.assign(item, {\n            \'{#JMXIGNITEINSTANCENAME}\': \'null\'\n        });\n    }\n\n}\n\nreturn JSON.stringify(data)','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84306','35289','2','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84307','35308','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84308','35309','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84309','35310','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84310','35311','1','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84311','35312','1','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84312','35313','1','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84313','35314','1','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84314','35315','1','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84315','35316','1','5','(.*)-\\d+\n\\1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84316','35316','2','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84317','35317','1','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84318','35318','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84319','35320','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84320','35321','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84321','35322','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84322','35323','1','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84323','35328','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84324','35329','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84325','35330','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84326','35337','1','20','3h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84327','35349','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84328','35352','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84329','35353','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84330','35355','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84331','35356','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84332','35357','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84333','35358','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84334','35359','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84335','35360','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84336','35361','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84337','35362','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84338','35363','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84339','35373','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84340','35374','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84341','35375','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84342','35375','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84343','35376','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84344','35377','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84345','35378','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84346','35378','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84347','35379','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84348','35380','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84349','35380','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84350','35381','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84351','35382','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84352','35383','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84353','35384','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84354','35385','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84355','35385','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84356','35386','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84357','35387','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84358','35387','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84359','35388','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84360','35389','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84361','35390','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84362','35391','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84363','35392','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84364','35393','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84365','35394','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84366','35395','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84367','35396','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84368','35397','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84369','35398','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84370','35399','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84371','35400','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84372','35401','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84373','35402','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84374','35403','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84375','35403','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84376','35404','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84377','35404','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84378','35405','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84379','35406','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84380','35408','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84381','35414','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84382','35415','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84383','35416','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84384','35417','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84385','35418','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84386','35419','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84387','35420','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84388','35421','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84389','35422','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84390','35423','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84391','35424','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84392','35425','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84394','35427','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84395','35428','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84396','35429','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84397','35430','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84398','35431','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84399','35432','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84400','35433','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84401','35434','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84402','35435','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84403','35436','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84404','35437','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84405','35438','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84406','35439','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84407','35440','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84408','35441','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84409','35441','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84411','35443','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84412','35444','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84413','35445','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84414','35446','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84415','35474','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84416','35475','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84417','35476','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84423','35482','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84426','35485','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84427','35486','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84428','35487','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84429','35488','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84430','35489','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84431','35490','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84432','35491','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84433','35492','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84434','35493','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84435','35493','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84436','35494','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84437','35495','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84438','35496','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84439','35496','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84440','35497','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84441','35497','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84442','35498','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84443','35498','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84444','35499','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84445','35499','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84446','35500','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84447','35501','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84448','35502','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84449','35502','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84450','35503','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84451','35503','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84452','35504','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84453','35504','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84454','35505','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84455','35506','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84456','35507','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84457','35507','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84458','35508','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84459','35508','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84460','35509','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84461','35509','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84462','35510','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84463','35510','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84464','35511','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84465','35512','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84466','35513','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84467','35514','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84468','35515','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84469','35515','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84470','35516','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84471','35516','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84472','35517','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84473','35517','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84474','35518','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84475','35518','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84476','35519','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84477','35520','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84478','35520','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84479','35521','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84480','35522','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84481','35523','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84482','35523','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84483','35524','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84484','35524','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84485','35525','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84486','35525','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84487','35526','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84488','35526','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84489','35527','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84490','35528','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84491','35529','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84492','35530','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84493','35531','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84494','35532','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84495','35533','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84496','35534','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84497','35535','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84498','35536','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84499','35537','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84500','35538','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84501','35539','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84502','35540','1','21','var valueArray = [\n    \'moduleNoDefect\',\n    \'moduleOverHeat\',\n    \'moduleFanRpmLow\',\n    \'moduleVoltageLow\',\n    \'moduleThermalSensorFailure\',\n    \'modulePullOut\',\n    \'powerDC48VAFailure\',\n    \'powerDC48VBFailure\',\n    \'extAlarmInputTrigger\',\n    \'moduleDown\',\n    \'mscSwitchOverOK\',\n    \'networkTopologyChange\',\n    \'macSpoof\',\n    \'cpuHigh\',\n    \'memoryUsageHigh\',\n    \'packetBufferUsageHigh\',\n    \'loopguardOccurence\'\n];\nvar base2 = parseInt(value).toString(2);\nvar outArray = [];\nfor (var i = 0; i < base2.length; ++i) {\n    if (base2[base2.length - 1 - i] === \'1\') outArray.push(valueArray[i]);\n}\nreturn outArray.join();','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84503','35541','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84504','35545','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[1];\n    item[\'{#ZYXEL.SENSOR.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[2];\n    item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V";\n    item["{#ZYXEL.VOLT.THRESH.LOW}"] /= 1000;\n    item["{#ZYXEL.VOLT.THRESH.HIGH}"] /= 1000;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84505','35546','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84506','35547','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84507','35547','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84508','35548','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84509','35548','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84510','35549','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84511','35549','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84512','35550','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84513','35550','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84514','35551','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84515','35551','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84516','35552','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84517','35552','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84518','35553','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84519','35553','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84520','35554','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84521','35555','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84522','35556','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84523','35556','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84524','35557','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84525','35558','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84526','35558','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84527','35559','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84528','35560','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84529','35561','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84530','35561','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84531','35562','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84532','35563','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84533','35563','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84534','35564','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84535','35565','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84536','35567','1','21','var inArray = JSON.parse(value);\nvar tmpObj = {};\ninArray.forEach(function(item, i, arr) {\n  tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"]\n});\nvar strOut = \'V\' + tmpObj["1.0"] + \'.\' + tmpObj["2.0"]\n  + \'(\' + tmpObj["3.0"] + \'.\' + tmpObj["4.0"] + \')_\'\n  + tmpObj["7.0"] + \'.\' + tmpObj["6.0"] + \'.\' + tmpObj["5.0"];\nreturn strOut;','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84537','35567','2','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84538','35568','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84539','35569','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84540','35570','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84541','35571','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84542','35572','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84543','35573','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84544','35576','1','21','var inArray = JSON.parse(value);\nvar nameMap = {\n    \'Temperature\': \'°C\',\n    \'Voltage\': \'V\',\n    \'TxBias\': \'mA\',\n    \'TxPower\': \'dbm\',\n    \'RxPower\': \'dbm\'\n};\nvar outArr = [];\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SFP.PORT}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[0];\n    item[\'{#ZYXEL.SFP.UNIT}\'] = nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']] === undefined ? "" : nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']];\n    item[\'{#ZYXEL.SFP.WARN.MAX}\'] /= 100;\n    item[\'{#ZYXEL.SFP.WARN.MIN}\'] /= 100;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84545','35578','1','21','var inArray = JSON.parse(value);\nvar nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"};\nvar outArr = [];\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]]\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84546','35579','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V";\nitem["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000;\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84547','35580','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84548','35581','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84549','35582','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84550','35583','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84551','35583','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84552','35584','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84553','35585','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84554','35585','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84555','35586','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84556','35587','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84557','35588','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84558','35589','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84559','35590','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84560','35591','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84561','35591','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84562','35592','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84563','35593','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84564','35593','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84565','35594','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84566','35595','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84567','35596','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84568','35596','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84569','35597','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84570','35598','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84571','35598','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84572','35599','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84573','35600','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84574','35601','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84575','35602','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84576','35603','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84577','35604','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84578','35605','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84579','35606','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84580','35607','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84581','35607','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84582','35608','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84583','35609','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84584','35611','1','21','var inArray = JSON.parse(value);\nvar tmpObj = {};\ninArray.forEach(function(item, i, arr) {\n  tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"]\n});\nvar strOut = \'V\' + tmpObj["1.0"] + \'.\' + tmpObj["2.0"]\n  + \'(\' + tmpObj["3.0"] + \'.\' + tmpObj["4.0"] + \')_\'\n  + tmpObj["7.0"] + \'.\' + tmpObj["6.0"] + \'.\' + tmpObj["5.0"];\nreturn strOut;','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84585','35611','2','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84586','35612','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84587','35613','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84588','35614','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84589','35615','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84590','35616','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84591','35617','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84592','35620','1','21','var inArray = JSON.parse(value);\nvar nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"};\nvar outArr = [];\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]]\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84593','35621','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V";\nitem["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000;\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84594','35622','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84595','35623','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84596','35624','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84597','35625','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84598','35625','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84599','35626','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84600','35627','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84601','35627','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84602','35628','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84603','35629','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84604','35630','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84605','35631','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84606','35632','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84607','35633','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84608','35633','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84609','35634','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84610','35635','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84611','35635','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84612','35636','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84613','35637','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84614','35638','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84615','35638','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84616','35639','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84617','35640','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84618','35641','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84619','35641','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84620','35642','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84621','35643','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84622','35644','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84623','35645','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84624','35646','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84625','35647','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84626','35648','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84627','35649','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[1];\n    item[\'{#ZYXEL.SENSOR.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[2];\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84628','35650','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[1];\n    item[\'{#ZYXEL.SENSOR.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[2];\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84629','35652','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[1];\n    item[\'{#ZYXEL.SENSOR.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[2];\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84630','35653','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = Math.floor(item[\'{#SNMPINDEX}\'] / 100);\n    item[\'{#ZYXEL.PORTID}\'] = item[\'{#SNMPINDEX}\'] % 100;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84631','35656','1','21','var inArray = JSON.parse(value);\nvar outArr = [];\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[1];\n    item[\'{#ZYXEL.TEMP.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[2];\n    outArr.push(item);\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84632','35657','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[1];\n    item[\'{#ZYXEL.SENSOR.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[2];\n    item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V";\n    item["{#ZYXEL.VOLT.THRESH.LOW}"] /= 1000;\n    item["{#ZYXEL.VOLT.THRESH.HIGH}"] /= 1000;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84633','35658','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84634','35659','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84635','35660','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84636','35661','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84637','35662','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84638','35663','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84639','35663','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84640','35664','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84641','35664','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84642','35665','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84643','35666','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84644','35667','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84645','35668','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84646','35669','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84647','35670','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84648','35671','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84649','35671','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84650','35672','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84651','35673','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84652','35674','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84653','35674','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84654','35675','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84655','35675','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84656','35676','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84657','35676','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84658','35677','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84659','35677','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84660','35678','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84661','35678','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84662','35679','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84663','35680','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84664','35681','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84665','35682','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84666','35682','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84667','35683','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84668','35684','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84669','35685','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84670','35685','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84671','35686','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84672','35687','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84673','35687','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84674','35688','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84675','35689','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84676','35690','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84677','35691','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84678','35692','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84679','35692','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84680','35693','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84681','35694','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84682','35694','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84683','35695','1','21','var valueArray = [\n    \'moduleNoDefect\',\n    \'moduleOverHeat\',\n    \'moduleFanRpmLow\',\n    \'moduleVoltageLow\',\n    \'moduleThermalSensorFailure\',\n    \'modulePullOut\',\n    \'powerDC48VAFailure\',\n    \'powerDC48VBFailure\',\n    \'extAlarmInputTrigger\',\n    \'moduleDown\',\n    \'mscSwitchOverOK\',\n    \'networkTopologyChange\',\n    \'macSpoof\',\n    \'cpuHigh\',\n    \'memoryUsageHigh\',\n    \'packetBufferUsageHigh\',\n    \'loopguardOccurence\'\n];\nvar base2 = parseInt(value).toString(2);\nvar outArray = [];\nfor (var i = 0; i < base2.length; ++i) {\n    if (base2[base2.length - 1 - i] === \'1\') outArray.push(valueArray[i]);\n}\nreturn outArray.join();','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84684','35696','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84685','35697','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84686','35698','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84687','35699','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84688','35700','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84689','35701','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84690','35702','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84691','35703','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84692','35704','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84693','35705','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84694','35707','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84695','35708','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84696','35708','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84697','35709','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84698','35710','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84699','35711','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84700','35712','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84701','35713','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84702','35714','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84703','35715','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84704','35716','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[1];\n    item[\'{#ZYXEL.SENSOR.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[2];\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84705','35717','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[1];\n    item[\'{#ZYXEL.SENSOR.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[2];\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84706','35719','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[1];\n    item[\'{#ZYXEL.SENSOR.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[2];\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84707','35720','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = Math.floor(item[\'{#SNMPINDEX}\'] / 100);\n    item[\'{#ZYXEL.PORTID}\'] = item[\'{#SNMPINDEX}\'] % 100;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84708','35723','1','21','var inArray = JSON.parse(value);\nvar outArr = [];\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[1];\n    item[\'{#ZYXEL.TEMP.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[2];\n    outArr.push(item);\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84709','35724','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[1];\n    item[\'{#ZYXEL.SENSOR.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[2];\n    item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V";\n    item["{#ZYXEL.VOLT.THRESH.LOW}"] /= 1000;\n    item["{#ZYXEL.VOLT.THRESH.HIGH}"] /= 1000;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84710','35725','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84711','35726','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84712','35727','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84713','35728','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84714','35729','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84715','35730','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84716','35730','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84717','35731','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84718','35731','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84719','35732','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84720','35733','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84721','35734','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84722','35735','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84723','35736','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84724','35737','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84725','35738','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84726','35738','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84727','35739','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84728','35740','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84729','35741','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84730','35741','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84731','35742','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84732','35742','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84733','35743','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84734','35743','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84735','35744','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84736','35744','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84737','35745','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84738','35745','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84739','35746','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84740','35747','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84741','35748','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84742','35749','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84743','35749','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84744','35750','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84745','35751','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84746','35752','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84747','35752','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84748','35753','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84749','35754','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84750','35754','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84751','35755','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84752','35756','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84753','35757','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84754','35758','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84755','35759','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84756','35759','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84757','35760','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84758','35761','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84759','35761','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84760','35762','1','21','var valueArray = [\n    \'moduleNoDefect\',\n    \'moduleOverHeat\',\n    \'moduleFanRpmLow\',\n    \'moduleVoltageLow\',\n    \'moduleThermalSensorFailure\',\n    \'modulePullOut\',\n    \'powerDC48VAFailure\',\n    \'powerDC48VBFailure\',\n    \'extAlarmInputTrigger\',\n    \'moduleDown\',\n    \'mscSwitchOverOK\',\n    \'networkTopologyChange\',\n    \'macSpoof\',\n    \'cpuHigh\',\n    \'memoryUsageHigh\',\n    \'packetBufferUsageHigh\',\n    \'loopguardOccurence\'\n];\nvar base2 = parseInt(value).toString(2);\nvar outArray = [];\nfor (var i = 0; i < base2.length; ++i) {\n    if (base2[base2.length - 1 - i] === \'1\') outArray.push(valueArray[i]);\n}\nreturn outArray.join();','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84761','35763','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84762','35764','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84763','35765','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84764','35766','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84765','35767','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84766','35768','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84767','35769','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84768','35770','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84769','35771','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84770','35772','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84771','35774','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84772','35775','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84773','35775','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84774','35776','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84775','35777','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84776','35778','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84777','35779','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84778','35780','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84779','35781','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84780','35782','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84781','35783','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84782','35784','1','21','var valueArray = [\n    \'moduleNoDefect\',\n    \'moduleOverHeat\',\n    \'moduleFanRpmLow\',\n    \'moduleVoltageLow\',\n    \'moduleThermalSensorFailure\',\n    \'modulePullOut\',\n    \'powerDC48VAFailure\',\n    \'powerDC48VBFailure\',\n    \'extAlarmInputTrigger\',\n    \'moduleDown\',\n    \'mscSwitchOverOK\',\n    \'networkTopologyChange\',\n    \'macSpoof\',\n    \'cpuHigh\',\n    \'memoryUsageHigh\',\n    \'packetBufferUsageHigh\',\n    \'loopguardOccurence\'\n];\nvar base2 = parseInt(value).toString(2);\nvar outArray = [];\nfor (var i = 0; i < base2.length; ++i) {\n    if (base2[base2.length - 1 - i] === \'1\') outArray.push(valueArray[i]);\n}\nreturn outArray.join();','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84783','35785','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84784','35790','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SLOT.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[1];\n    item[\'{#ZYXEL.SENSOR.ID}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[2];\n    item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V";\n    item["{#ZYXEL.VOLT.THRESH.LOW}"] /= 1000;\n    item["{#ZYXEL.VOLT.THRESH.HIGH}"] /= 1000;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84785','35791','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84786','35792','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84787','35793','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84788','35793','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84789','35794','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84790','35794','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84791','35795','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84792','35795','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84793','35796','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84794','35796','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84795','35797','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84796','35797','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84797','35798','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84798','35798','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84799','35799','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84800','35799','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84801','35800','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84802','35801','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84803','35802','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84804','35802','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84805','35803','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84806','35804','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84807','35804','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84808','35805','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84809','35806','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84810','35807','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84811','35807','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84812','35808','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84813','35809','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84814','35809','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84815','35810','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84816','35811','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84817','35813','1','21','var inArray = JSON.parse(value);\nvar tmpObj = {};\ninArray.forEach(function(item, i, arr) {\n  tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"]\n});\nvar strOut = \'V\' + tmpObj["1.0"] + \'.\' + tmpObj["2.0"]\n  + \'(\' + tmpObj["3.0"] + \'.\' + tmpObj["4.0"] + \')_\'\n  + tmpObj["7.0"] + \'.\' + tmpObj["6.0"] + \'.\' + tmpObj["5.0"];\nreturn strOut;','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84818','35813','2','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84819','35814','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84820','35815','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84821','35816','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84822','35817','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84823','35818','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84824','35819','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84825','35821','1','21','var inArray = JSON.parse(value);\nvar nameMap = {\n    \'Temperature\': \'°C\',\n    \'Voltage\': \'V\',\n    \'TxBias\': \'mA\',\n    \'TxPower\': \'dbm\',\n    \'RxPower\': \'dbm\'\n};\nvar outArr = [];\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SFP.PORT}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[0];\n    item[\'{#ZYXEL.SFP.UNIT}\'] = nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']] === undefined ? "" : nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']];\n    item[\'{#ZYXEL.SFP.WARN.MAX}\'] /= 100;\n    item[\'{#ZYXEL.SFP.WARN.MIN}\'] /= 100;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84826','35823','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84827','35824','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84828','35825','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84829','35825','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84830','35826','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84831','35827','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84832','35827','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84833','35828','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84834','35829','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84835','35830','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84836','35831','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84837','35832','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84838','35833','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84839','35833','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84840','35834','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84841','35835','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84842','35835','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84843','35836','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84844','35837','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84845','35838','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84846','35838','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84847','35839','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84848','35840','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84849','35840','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84850','35841','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84851','35842','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84852','35843','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84853','35844','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84854','35845','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84855','35846','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84856','35847','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84857','35848','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84858','35849','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84859','35851','1','21','var inArray = JSON.parse(value);\nvar tmpObj = {};\ninArray.forEach(function(item, i, arr) {\n  tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"]\n});\nvar strOut = \'V\' + tmpObj["1.0"] + \'.\' + tmpObj["2.0"]\n  + \'(\' + tmpObj["3.0"] + \'.\' + tmpObj["4.0"] + \')_\'\n  + tmpObj["7.0"] + \'.\' + tmpObj["6.0"] + \'.\' + tmpObj["5.0"];\nreturn strOut;','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84860','35851','2','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84861','35852','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84862','35853','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84863','35854','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84864','35855','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84865','35856','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84866','35857','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84867','35860','1','21','var inArray = JSON.parse(value);\nvar nameMap = {\n    \'Temperature\': \'°C\',\n    \'Voltage\': \'V\',\n    \'TxBias\': \'mA\',\n    \'TxPower\': \'dbm\',\n    \'RxPower\': \'dbm\'\n};\nvar outArr = [];\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SFP.PORT}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[0];\n    item[\'{#ZYXEL.SFP.UNIT}\'] = nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']] === undefined ? "" : nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']];\n    item[\'{#ZYXEL.SFP.WARN.MAX}\'] /= 100;\n    item[\'{#ZYXEL.SFP.WARN.MIN}\'] /= 100;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84868','35862','1','21','var inArray = JSON.parse(value);\nvar nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"};\nvar outArr = [];\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]]\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84869','35863','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V";\nitem["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000;\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84870','35864','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84871','35865','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84872','35866','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84873','35867','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84874','35867','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84875','35868','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84876','35869','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84877','35869','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84878','35870','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84879','35871','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84880','35872','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84881','35873','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84882','35874','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84883','35875','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84884','35875','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84885','35876','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84886','35877','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84887','35877','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84888','35878','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84889','35879','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84890','35880','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84891','35880','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84892','35881','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84893','35882','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84894','35882','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84895','35883','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84896','35884','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84897','35885','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84898','35886','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84899','35887','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84900','35888','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84901','35889','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84902','35890','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84903','35891','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84904','35891','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84905','35892','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84906','35893','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84907','35895','1','21','var inArray = JSON.parse(value);\nvar tmpObj = {};\ninArray.forEach(function(item, i, arr) {\n  tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"]\n});\nvar strOut = \'V\' + tmpObj["1.0"] + \'.\' + tmpObj["2.0"]\n  + \'(\' + tmpObj["3.0"] + \'.\' + tmpObj["4.0"] + \')_\'\n  + tmpObj["7.0"] + \'.\' + tmpObj["6.0"] + \'.\' + tmpObj["5.0"];\nreturn strOut;','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84908','35895','2','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84909','35896','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84910','35897','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84911','35898','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84912','35899','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84913','35900','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84914','35901','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84915','35904','1','21','var inArray = JSON.parse(value);\nvar nameMap = {\n    \'Temperature\': \'°C\',\n    \'Voltage\': \'V\',\n    \'TxBias\': \'mA\',\n    \'TxPower\': \'dbm\',\n    \'RxPower\': \'dbm\'\n};\nvar outArr = [];\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SFP.PORT}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[0];\n    item[\'{#ZYXEL.SFP.UNIT}\'] = nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']] === undefined ? "" : nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']];\n    item[\'{#ZYXEL.SFP.WARN.MAX}\'] /= 100;\n    item[\'{#ZYXEL.SFP.WARN.MIN}\'] /= 100;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84916','35906','1','21','var inArray = JSON.parse(value);\nvar nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"};\nvar outArr = [];\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]]\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84917','35907','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V";\nitem["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000;\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84918','35908','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84919','35909','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84920','35910','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84921','35911','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84922','35911','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84923','35912','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84924','35913','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84925','35913','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84926','35914','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84927','35915','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84928','35916','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84929','35917','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84930','35918','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84931','35919','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84932','35919','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84933','35920','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84934','35921','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84935','35921','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84936','35922','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84937','35923','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84938','35924','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84939','35924','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84940','35925','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84941','35926','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84942','35926','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84943','35927','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84944','35928','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84945','35929','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84946','35930','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84947','35931','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84948','35932','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84949','35933','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84950','35934','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84951','35935','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84952','35935','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84953','35936','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84954','35937','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84955','35939','1','21','var inArray = JSON.parse(value);\nvar tmpObj = {};\ninArray.forEach(function(item, i, arr) {\n  tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"]\n});\nvar strOut = \'V\' + tmpObj["1.0"] + \'.\' + tmpObj["2.0"]\n  + \'(\' + tmpObj["3.0"] + \'.\' + tmpObj["4.0"] + \')_\'\n  + tmpObj["7.0"] + \'.\' + tmpObj["6.0"] + \'.\' + tmpObj["5.0"];\nreturn strOut;','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84956','35939','2','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84957','35940','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84958','35941','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84959','35942','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84960','35943','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84961','35944','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84962','35945','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84963','35948','1','21','var inArray = JSON.parse(value);\nvar nameMap = {\n    \'Temperature\': \'°C\',\n    \'Voltage\': \'V\',\n    \'TxBias\': \'mA\',\n    \'TxPower\': \'dbm\',\n    \'RxPower\': \'dbm\'\n};\nvar outArr = [];\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SFP.PORT}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[0];\n    item[\'{#ZYXEL.SFP.UNIT}\'] = nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']] === undefined ? "" : nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']];\n    item[\'{#ZYXEL.SFP.WARN.MAX}\'] /= 100;\n    item[\'{#ZYXEL.SFP.WARN.MIN}\'] /= 100;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84964','35950','1','21','var inArray = JSON.parse(value);\nvar nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"};\nvar outArr = [];\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]]\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84965','35951','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V";\nitem["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000;\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84966','35952','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84967','35953','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84968','35954','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84969','35955','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84970','35955','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84971','35956','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84972','35957','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84973','35957','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84974','35958','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84975','35959','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84976','35960','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84977','35961','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84978','35962','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84979','35963','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84980','35963','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84981','35964','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84982','35965','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84983','35965','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84984','35966','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84985','35967','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84986','35968','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84987','35968','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84988','35969','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84989','35970','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84990','35970','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84991','35971','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84992','35972','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84993','35973','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84994','35974','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84995','35975','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84996','35976','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84997','35977','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84998','35978','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('84999','35979','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85000','35979','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85001','35980','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85002','35981','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85003','35983','1','21','var inArray = JSON.parse(value);\nvar tmpObj = {};\ninArray.forEach(function(item, i, arr) {\n  tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"]\n});\nvar strOut = \'V\' + tmpObj["1.0"] + \'.\' + tmpObj["2.0"]\n  + \'(\' + tmpObj["3.0"] + \'.\' + tmpObj["4.0"] + \')_\'\n  + tmpObj["7.0"] + \'.\' + tmpObj["6.0"] + \'.\' + tmpObj["5.0"];\nreturn strOut;','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85004','35983','2','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85005','35984','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85006','35985','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85007','35986','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85008','35987','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85009','35988','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85010','35989','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85011','35992','1','21','var inArray = JSON.parse(value);\nvar nameMap = {\n    \'Temperature\': \'°C\',\n    \'Voltage\': \'V\',\n    \'TxBias\': \'mA\',\n    \'TxPower\': \'dbm\',\n    \'RxPower\': \'dbm\'\n};\nvar outArr = [];\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SFP.PORT}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[0];\n    item[\'{#ZYXEL.SFP.UNIT}\'] = nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']] === undefined ? "" : nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']];\n    item[\'{#ZYXEL.SFP.WARN.MAX}\'] /= 100;\n    item[\'{#ZYXEL.SFP.WARN.MIN}\'] /= 100;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85012','35994','1','21','var inArray = JSON.parse(value);\nvar nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"};\nvar outArr = [];\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]]\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85013','35995','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V";\nitem["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000;\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85014','35996','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85015','35997','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85016','35998','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85017','35999','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85018','35999','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85019','36000','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85020','36001','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85021','36001','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85022','36002','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85023','36003','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85024','36004','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85025','36005','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85026','36006','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85027','36007','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85028','36007','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85029','36008','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85030','36009','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85031','36009','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85032','36010','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85033','36011','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85034','36012','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85035','36012','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85036','36013','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85037','36014','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85038','36014','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85039','36015','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85040','36016','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85041','36017','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85042','36018','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85043','36019','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85044','36020','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85045','36021','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85046','36022','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85047','36023','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85048','36023','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85049','36024','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85050','36025','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85051','36027','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85052','36028','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85053','36029','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85054','36031','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85055','36032','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85056','36033','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85057','36034','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85058','36037','1','21','var inArray = JSON.parse(value);\nvar nameMap = {\n    \'Temperature\': \'°C\',\n    \'Voltage\': \'V\',\n    \'TxBias\': \'mA\',\n    \'TxPower\': \'dbm\',\n    \'RxPower\': \'dbm\'\n};\nvar outArr = [];\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SFP.PORT}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[0];\n    item[\'{#ZYXEL.SFP.UNIT}\'] = nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']] === undefined ? "" : nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']];\n    item[\'{#ZYXEL.SFP.WARN.MAX}\'] /= 100;\n    item[\'{#ZYXEL.SFP.WARN.MIN}\'] /= 100;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85059','36040','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.VOLT.THRESH.LOW}"] /= 1000;\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85060','36041','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85061','36042','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85062','36043','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85063','36044','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85064','36044','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85065','36045','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85066','36046','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85067','36046','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85068','36047','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85069','36048','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85070','36049','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85071','36050','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85072','36051','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85073','36052','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85074','36052','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85075','36053','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85076','36054','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85077','36054','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85078','36055','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85079','36056','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85080','36057','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85081','36057','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85082','36058','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85083','36059','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85084','36059','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85085','36060','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85086','36061','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85087','36062','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85088','36063','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85089','36064','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85090','36065','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85091','36066','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85092','36067','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85093','36068','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85094','36068','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85095','36069','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85096','36070','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85097','36072','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85098','36073','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85099','36074','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85100','36076','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85101','36077','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85102','36078','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85103','36079','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85104','36082','1','21','var inArray = JSON.parse(value);\nvar nameMap = {\n    \'Temperature\': \'°C\',\n    \'Voltage\': \'V\',\n    \'TxBias\': \'mA\',\n    \'TxPower\': \'dbm\',\n    \'RxPower\': \'dbm\'\n};\nvar outArr = [];\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SFP.PORT}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[0];\n    item[\'{#ZYXEL.SFP.UNIT}\'] = nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']] === undefined ? "" : nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']];\n    item[\'{#ZYXEL.SFP.WARN.MAX}\'] /= 100;\n    item[\'{#ZYXEL.SFP.WARN.MIN}\'] /= 100;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85105','36085','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.VOLT.THRESH.LOW}"] /= 1000;\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85106','36086','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85107','36087','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85108','36088','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85109','36089','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85110','36089','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85111','36090','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85112','36091','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85113','36091','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85114','36092','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85115','36093','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85116','36094','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85117','36095','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85118','36096','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85119','36097','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85120','36097','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85121','36098','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85122','36099','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85123','36099','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85124','36100','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85125','36101','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85126','36102','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85127','36102','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85128','36103','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85129','36104','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85130','36104','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85131','36105','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85132','36106','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85133','36107','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85134','36108','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85135','36109','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85136','36110','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85137','36111','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85138','36112','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85139','36113','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85140','36113','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85141','36114','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85142','36115','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85143','36117','1','21','var inArray = JSON.parse(value);\nvar tmpObj = {};\ninArray.forEach(function(item, i, arr) {\n  tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"]\n});\nvar strOut = \'V\' + tmpObj["1.0"] + \'.\' + tmpObj["2.0"]\n  + \'(\' + tmpObj["3.0"] + \'.\' + tmpObj["4.0"] + \')_\'\n  + tmpObj["7.0"] + \'.\' + tmpObj["6.0"] + \'.\' + tmpObj["5.0"];\nreturn strOut;','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85144','36117','2','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85145','36118','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85146','36119','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85147','36120','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85148','36121','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85149','36122','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85150','36123','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85151','36127','1','21','var inArray = JSON.parse(value);\nvar nameMap = {\n    \'Temperature\': \'°C\',\n    \'Voltage\': \'V\',\n    \'TxBias\': \'mA\',\n    \'TxPower\': \'dbm\',\n    \'RxPower\': \'dbm\'\n};\nvar outArr = [];\ninArray.forEach(function (item, i, arr) {\n    item[\'{#ZYXEL.SFP.PORT}\'] = item[\'{#SNMPINDEX}\'].split(\'.\')[0];\n    item[\'{#ZYXEL.SFP.UNIT}\'] = nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']] === undefined ? "" : nameMap[item[\'{#ZYXEL.SFP.DESCRIPTION}\']];\n    item[\'{#ZYXEL.SFP.WARN.MAX}\'] /= 100;\n    item[\'{#ZYXEL.SFP.WARN.MIN}\'] /= 100;\n    outArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85152','36129','1','21','var inArray = JSON.parse(value);\nvar nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"};\nvar outArr = [];\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]]\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85153','36130','1','21','var inArray = JSON.parse(value);\nvar outArr = []\ninArray.forEach(function(item, i, arr) {\nitem["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V";\nitem["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000;\noutArr.push(item)\n});\nreturn JSON.stringify(outArr);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85154','36131','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85155','36132','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85156','36133','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85157','36134','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85158','36135','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85159','36135','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85160','36136','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85161','36137','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85162','36137','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85163','36138','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85164','36139','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85165','36140','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85166','36141','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85167','36142','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85168','36143','1','13','0\n100','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85169','36143','2','21','return +parseFloat(value).toFixed(0);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85170','36144','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85171','36145','1','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85172','36145','2','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85173','36146','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85174','36147','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85175','36148','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85176','36148','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85177','36149','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85178','36150','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85179','36150','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85180','36151','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85181','36152','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85182','36153','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85183','36154','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85184','36155','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85185','36156','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85186','36157','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85187','36158','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85188','36159','1','1','0.001','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85189','36159','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85190','31422','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85192','31974','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85194','36160','1','20','12h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85195','36161','1','20','12h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85196','36162','1','20','12h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85197','36163','1','20','12h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85198','36164','1','20','12h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85199','36165','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85200','36167','1','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85201','36171','1','21','var result = [];\n\nJSON.parse(value).forEach(function (netif) {\n    if (typeof netif["{#IFNAME}"] === \'undefined\') {\n        netif["{#IFNAME}"] = netif["{#IFDESCR}"];\n    }\n    if (typeof netif["{#IFALIAS}"] === \'undefined\') {\n        netif["{#IFALIAS}"] = "";\n    }\n    result.push(netif);\n});\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85202','36178','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85203','36179','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85204','36180','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85205','36181','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85206','36182','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85207','36183','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85208','36184','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85209','36185','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85210','36186','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85211','36187','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85212','36187','2','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85213','36188','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85214','36189','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85215','36190','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85216','36191','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85217','36192','1','10','','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85218','36192','2','1','8','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85219','36193','1','1','1000000','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85220','36193','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85221','36194','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85222','36195','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85223','36196','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85224','36197','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85225','36198','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85226','36199','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85227','36199','2','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85228','36200','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85229','36201','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85230','36202','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85231','36203','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85232','36204','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85233','36205','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85234','36206','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85235','36207','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85236','36208','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85237','36209','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85238','36210','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85239','36211','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85240','36211','2','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85241','36212','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85242','36213','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    system = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    system = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = {\n    model: \'\',\n    serialnumber: \'\',\n    status: \'\',\n    firmware: \'\'\n};\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nresult.model = getField(system, \'Model\', \'\');\nresult.serialnumber = getField(system, \'Oem.Dell.DellSystem.ChassisServiceTag\', \'\');\nresult.status = getField(system, \'Status.Health\', \'\');\n\nresponse = request(params.url + \'/redfish/v1/Managers/iDRAC.Embedded.1\');\nresult.firmware = getField(response.body, \'FirmwareVersion\', \'\');\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85243','36215','1','12','$.firmware','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85244','36215','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85245','36216','1','12','$.model','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85246','36216','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85247','36217','1','12','$.serialnumber','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85248','36217','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85249','36218','1','12','$.status','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85250','36218','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85251','36219','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"]);\n            controller = response.body;\n            if (getField(controller, \'Id\', \'\').search(\'RAID\') > -1) {\n                result.push({\n                    \'{#BATTERY_NAME}\': getField(response.body, \'Oem.Dell.DellControllerBattery.Name\', \'\'),\n                    \'{#ODATA}\': controller["@odata.id"]\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85252','36219','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85253','36220','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"]);\n            controller = response.body;\n            if (getField(controller, \'Id\', \'\').search(\'RAID\') > -1) {\n                result.push({\n                    \'{#CNTLR_NAME}\': getField(response.body, \'Name\', \'\'),\n                    \'{#SLOT}\': getField(response.body, \'Oem.Dell.DellController.PCISlot\', \'\'),\n                    \'{#ODATA}\': controller["@odata.id"]\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85254','36220','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85255','36221','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\ntry {\n    sensors = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    sensors = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (sensors.Members instanceof Array) {\n    sensors.Members.forEach(function (sensor) {\n        if (typeof sensor["@odata.id"] === \'string\') {\n            response = request(params.url + sensor["@odata.id"]);\n            if (response.body.ReadingType === \'Rotational\') {\n                if (typeof response.body.Name === \'string\') {\n                    result.push({ \'{#SENSOR_NAME}\': response.body.Name, \'{#ODATA}\': sensor["@odata.id"] });\n                }\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85256','36221','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85257','36222','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    adapters = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    adapters = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (adapters.Members instanceof Array) {\n    adapters.Members.forEach(function (adapter) {\n        if (typeof adapter["@odata.id"] === \'string\') {\n            response = request(params.url + adapter["@odata.id"] + "/NetworkPorts");\n            ports = response.body;\n            if (ports.Members instanceof Array) {\n                ports.Members.forEach(function (port) {\n                    if (typeof port["@odata.id"] === \'string\') {\n                        response = request(params.url + port["@odata.id"]);\n                        result.push({ \'{#IFNAME}\': getField(response.body, \'Id\', \'\'), \'{#ODATA}\': port["@odata.id"] });\n                    }\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85258','36222','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85259','36223','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"]);\n            drives = response.body;\n            if (drives.Drives instanceof Array) {\n                drives.Drives.forEach(function (drive) {\n                    if (typeof drive["@odata.id"] === \'string\') {\n                        response = request(params.url + drive["@odata.id"]);\n                        result.push({ \'{#DISK_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': drive["@odata.id"] });\n                    }\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85260','36223','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85261','36224','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    sensors = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    sensors = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (sensors.Members instanceof Array) {\n    sensors.Members.forEach(function (sensor) {\n        if (typeof sensor["@odata.id"] === \'string\') {\n            response = request(params.url + sensor["@odata.id"]);\n            if (getField(response.body, \'ReadingType\', \'\') === \'Voltage\') {\n                result.push({ \'{#SENSOR_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': sensor["@odata.id"] });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85262','36224','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85263','36225','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    sensors = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    sensors = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (sensors.Members instanceof Array) {\n    sensors.Members.forEach(function (sensor) {\n        if (typeof sensor["@odata.id"] === \'string\') {\n            response = request(params.url + sensor["@odata.id"]);\n            if (getField(response.body, \'ReadingType\', \'\') === \'Temperature\') {\n                result.push({ \'{#SENSOR_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': sensor["@odata.id"] });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85264','36225','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85265','36226','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"] + "/Volumes");\n            volumes = response.body;\n            if (volumes.Members instanceof Array) {\n                volumes.Members.forEach(function (volume) {\n                    if (typeof volume["@odata.id"] === \'string\') {\n                        response = request(params.url + volume["@odata.id"]);\n                        result.push({ \'{#DISK_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': volume["@odata.id"] });\n                    }\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85266','36226','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85267','36227','1','12','$.Oem.Dell.DellControllerBattery.PrimaryStatus','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85268','36227','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85269','36228','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85270','36228','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85271','36235','1','12','$.Reading','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85272','36236','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85273','36236','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85274','36237','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85275','36237','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85276','36238','1','12','$.CurrentLinkSpeedMbps','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85277','36238','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85278','36239','1','12','$.Status.State','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85279','36239','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85280','36240','1','12','$.LinkStatus','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85281','36240','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85282','36241','1','12','$.MediaType','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85283','36241','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85284','36242','1','12','$.Model','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85285','36242','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85286','36243','1','12','$.SerialNumber','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85287','36243','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85288','36244','1','12','$.CapacityBytes','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85289','36244','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85290','36245','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85291','36245','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85292','36246','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85293','36246','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85294','36247','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85295','36247','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85296','36248','1','12','$.Reading','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85297','36249','1','12','$.Oem.Dell.DellVirtualDisk.RaidStatus','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85298','36249','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85299','36250','1','12','$.Oem.Dell.DellVirtualDisk.ReadCachePolicy','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85300','36250','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85301','36251','1','12','$.CapacityBytes','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85302','36251','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85303','36252','1','12','$.Status.State','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85304','36252','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85305','36253','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85306','36253','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85307','36254','1','12','$.Oem.Dell.DellVirtualDisk.WriteCachePolicy','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85308','36254','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85309','36255','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85310','36256','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85311','36257','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85312','36258','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85313','36259','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85314','36260','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85315','36261','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85316','36262','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85317','36263','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85318','36264','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85319','36265','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85320','36267','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85321','36268','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85322','36269','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85323','36270','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85324','36271','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85325','36272','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85326','36273','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85327','36274','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85328','36275','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85329','36276','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85330','36277','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85331','36279','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85332','36280','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85333','36281','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85334','36282','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85335','36283','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85336','36283','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85337','36284','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85338','36285','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85339','36286','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85340','36287','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85341','36288','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85342','36288','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85343','36289','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85344','36291','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85345','36291','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85346','36293','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85347','36295','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    system = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    system = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = {\n    model: \'\',\n    serialnumber: \'\',\n    status: \'\',\n    firmware: \'\'\n};\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nresult.model = getField(system, \'Model\', \'\');\nresult.serialnumber = getField(system, \'Oem.Dell.DellSystem.ChassisServiceTag\', \'\');\nresult.status = getField(system, \'Status.Health\', \'\');\n\nresponse = request(params.url + \'/redfish/v1/Managers/iDRAC.Embedded.1\');\nresult.firmware = getField(response.body, \'FirmwareVersion\', \'\');\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85348','36297','1','12','$.firmware','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85349','36297','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85350','36298','1','12','$.model','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85351','36298','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85352','36299','1','12','$.serialnumber','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85353','36299','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85354','36300','1','12','$.status','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85355','36300','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85356','36301','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"]);\n            controller = response.body;\n            if (getField(controller, \'Id\', \'\').search(\'RAID\') > -1) {\n                result.push({\n                    \'{#BATTERY_NAME}\': getField(response.body, \'Oem.Dell.DellControllerBattery.Name\', \'\'),\n                    \'{#ODATA}\': controller["@odata.id"]\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85357','36301','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85358','36302','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"]);\n            controller = response.body;\n            if (getField(controller, \'Id\', \'\').search(\'RAID\') > -1) {\n                result.push({\n                    \'{#CNTLR_NAME}\': getField(response.body, \'Name\', \'\'),\n                    \'{#SLOT}\': getField(response.body, \'Oem.Dell.DellController.PCISlot\', \'\'),\n                    \'{#ODATA}\': controller["@odata.id"]\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85359','36302','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85360','36303','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\ntry {\n    sensors = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    sensors = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (sensors.Members instanceof Array) {\n    sensors.Members.forEach(function (sensor) {\n        if (typeof sensor["@odata.id"] === \'string\') {\n            response = request(params.url + sensor["@odata.id"]);\n            if (response.body.ReadingType === \'Rotational\') {\n                if (typeof response.body.Name === \'string\') {\n                    result.push({ \'{#SENSOR_NAME}\': response.body.Name, \'{#ODATA}\': sensor["@odata.id"] });\n                }\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85361','36303','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85362','36304','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    adapters = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    adapters = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (adapters.Members instanceof Array) {\n    adapters.Members.forEach(function (adapter) {\n        if (typeof adapter["@odata.id"] === \'string\') {\n            response = request(params.url + adapter["@odata.id"] + "/NetworkPorts");\n            ports = response.body;\n            if (ports.Members instanceof Array) {\n                ports.Members.forEach(function (port) {\n                    if (typeof port["@odata.id"] === \'string\') {\n                        response = request(params.url + port["@odata.id"]);\n                        result.push({ \'{#IFNAME}\': getField(response.body, \'Id\', \'\'), \'{#ODATA}\': port["@odata.id"] });\n                    }\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85363','36304','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85364','36305','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"]);\n            drives = response.body;\n            if (drives.Drives instanceof Array) {\n                drives.Drives.forEach(function (drive) {\n                    if (typeof drive["@odata.id"] === \'string\') {\n                        response = request(params.url + drive["@odata.id"]);\n                        result.push({ \'{#DISK_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': drive["@odata.id"] });\n                    }\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85365','36305','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85366','36306','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    sensors = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    sensors = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (sensors.Members instanceof Array) {\n    sensors.Members.forEach(function (sensor) {\n        if (typeof sensor["@odata.id"] === \'string\') {\n            response = request(params.url + sensor["@odata.id"]);\n            if (getField(response.body, \'ReadingType\', \'\') === \'Voltage\') {\n                result.push({ \'{#SENSOR_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': sensor["@odata.id"] });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85367','36306','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85368','36307','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    sensors = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    sensors = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (sensors.Members instanceof Array) {\n    sensors.Members.forEach(function (sensor) {\n        if (typeof sensor["@odata.id"] === \'string\') {\n            response = request(params.url + sensor["@odata.id"]);\n            if (getField(response.body, \'ReadingType\', \'\') === \'Temperature\') {\n                result.push({ \'{#SENSOR_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': sensor["@odata.id"] });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85369','36307','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85370','36308','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"] + "/Volumes");\n            volumes = response.body;\n            if (volumes.Members instanceof Array) {\n                volumes.Members.forEach(function (volume) {\n                    if (typeof volume["@odata.id"] === \'string\') {\n                        response = request(params.url + volume["@odata.id"]);\n                        result.push({ \'{#DISK_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': volume["@odata.id"] });\n                    }\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85371','36308','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85372','36309','1','12','$.Oem.Dell.DellControllerBattery.PrimaryStatus','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85373','36309','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85374','36310','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85375','36310','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85376','36317','1','12','$.Reading','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85377','36318','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85378','36318','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85379','36319','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85380','36319','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85381','36320','1','12','$.CurrentLinkSpeedMbps','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85382','36320','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85383','36321','1','12','$.Status.State','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85384','36321','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85385','36322','1','12','$.LinkStatus','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85386','36322','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85387','36323','1','12','$.MediaType','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85388','36323','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85389','36324','1','12','$.Model','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85390','36324','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85391','36325','1','12','$.SerialNumber','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85392','36325','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85393','36326','1','12','$.CapacityBytes','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85394','36326','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85395','36327','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85396','36327','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85397','36328','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85398','36328','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85399','36329','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85400','36329','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85401','36330','1','12','$.Reading','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85402','36331','1','12','$.Oem.Dell.DellVirtualDisk.RaidStatus','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85403','36331','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85404','36332','1','12','$.Oem.Dell.DellVirtualDisk.ReadCachePolicy','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85405','36332','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85406','36333','1','12','$.CapacityBytes','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85407','36333','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85408','36334','1','12','$.Status.State','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85409','36334','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85410','36335','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85411','36335','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85412','36336','1','12','$.Oem.Dell.DellVirtualDisk.WriteCachePolicy','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85413','36336','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85414','36337','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85415','36338','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85416','36339','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85417','36340','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85418','36341','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85419','36342','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85420','36343','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85421','36344','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85422','36345','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85423','36346','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85424','36347','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85425','36349','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85426','36350','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85427','36351','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85428','36352','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85429','36353','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85430','36354','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85431','36355','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85432','36356','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85433','36357','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85434','36358','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85435','36359','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85436','36361','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85437','36362','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85438','36363','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85439','36364','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85440','36365','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85441','36365','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85442','36366','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85443','36367','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85444','36368','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85445','36369','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85446','36370','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85447','36370','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85448','36371','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85449','36373','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85450','36373','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85451','36375','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85452','36377','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    system = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    system = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = {\n    model: \'\',\n    serialnumber: \'\',\n    status: \'\',\n    firmware: \'\'\n};\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nresult.model = getField(system, \'Model\', \'\');\nresult.serialnumber = getField(system, \'Oem.Dell.DellSystem.ChassisServiceTag\', \'\');\nresult.status = getField(system, \'Status.Health\', \'\');\n\nresponse = request(params.url + \'/redfish/v1/Managers/iDRAC.Embedded.1\');\nresult.firmware = getField(response.body, \'FirmwareVersion\', \'\');\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85453','36379','1','12','$.firmware','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85454','36379','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85455','36380','1','12','$.model','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85456','36380','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85457','36381','1','12','$.serialnumber','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85458','36381','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85459','36382','1','12','$.status','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85460','36382','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85461','36383','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"]);\n            controller = response.body;\n            if (getField(controller, \'Id\', \'\').search(\'RAID\') > -1) {\n                result.push({\n                    \'{#BATTERY_NAME}\': getField(response.body, \'Oem.Dell.DellControllerBattery.Name\', \'\'),\n                    \'{#ODATA}\': controller["@odata.id"]\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85462','36383','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85463','36384','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"]);\n            controller = response.body;\n            if (getField(controller, \'Id\', \'\').search(\'RAID\') > -1) {\n                result.push({\n                    \'{#CNTLR_NAME}\': getField(response.body, \'Name\', \'\'),\n                    \'{#SLOT}\': getField(response.body, \'Oem.Dell.DellController.PCISlot\', \'\'),\n                    \'{#ODATA}\': controller["@odata.id"]\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85464','36384','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85465','36385','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\ntry {\n    sensors = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    sensors = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (sensors.Members instanceof Array) {\n    sensors.Members.forEach(function (sensor) {\n        if (typeof sensor["@odata.id"] === \'string\') {\n            response = request(params.url + sensor["@odata.id"]);\n            if (response.body.ReadingType === \'Rotational\') {\n                if (typeof response.body.Name === \'string\') {\n                    result.push({ \'{#SENSOR_NAME}\': response.body.Name, \'{#ODATA}\': sensor["@odata.id"] });\n                }\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85466','36385','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85467','36386','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    adapters = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    adapters = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (adapters.Members instanceof Array) {\n    adapters.Members.forEach(function (adapter) {\n        if (typeof adapter["@odata.id"] === \'string\') {\n            response = request(params.url + adapter["@odata.id"] + "/NetworkPorts");\n            ports = response.body;\n            if (ports.Members instanceof Array) {\n                ports.Members.forEach(function (port) {\n                    if (typeof port["@odata.id"] === \'string\') {\n                        response = request(params.url + port["@odata.id"]);\n                        result.push({ \'{#IFNAME}\': getField(response.body, \'Id\', \'\'), \'{#ODATA}\': port["@odata.id"] });\n                    }\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85468','36386','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85469','36387','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"]);\n            drives = response.body;\n            if (drives.Drives instanceof Array) {\n                drives.Drives.forEach(function (drive) {\n                    if (typeof drive["@odata.id"] === \'string\') {\n                        response = request(params.url + drive["@odata.id"]);\n                        result.push({ \'{#DISK_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': drive["@odata.id"] });\n                    }\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85470','36387','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85471','36388','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    sensors = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    sensors = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (sensors.Members instanceof Array) {\n    sensors.Members.forEach(function (sensor) {\n        if (typeof sensor["@odata.id"] === \'string\') {\n            response = request(params.url + sensor["@odata.id"]);\n            if (getField(response.body, \'ReadingType\', \'\') === \'Voltage\') {\n                result.push({ \'{#SENSOR_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': sensor["@odata.id"] });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85472','36388','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85473','36389','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    sensors = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    sensors = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (sensors.Members instanceof Array) {\n    sensors.Members.forEach(function (sensor) {\n        if (typeof sensor["@odata.id"] === \'string\') {\n            response = request(params.url + sensor["@odata.id"]);\n            if (getField(response.body, \'ReadingType\', \'\') === \'Temperature\') {\n                result.push({ \'{#SENSOR_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': sensor["@odata.id"] });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85474','36389','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85475','36390','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"] + "/Volumes");\n            volumes = response.body;\n            if (volumes.Members instanceof Array) {\n                volumes.Members.forEach(function (volume) {\n                    if (typeof volume["@odata.id"] === \'string\') {\n                        response = request(params.url + volume["@odata.id"]);\n                        result.push({ \'{#DISK_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': volume["@odata.id"] });\n                    }\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85476','36390','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85477','36391','1','12','$.Oem.Dell.DellControllerBattery.PrimaryStatus','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85478','36391','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85479','36392','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85480','36392','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85481','36399','1','12','$.Reading','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85482','36400','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85483','36400','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85484','36401','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85485','36401','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85486','36402','1','12','$.CurrentLinkSpeedMbps','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85487','36402','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85488','36403','1','12','$.Status.State','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85489','36403','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85490','36404','1','12','$.LinkStatus','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85491','36404','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85492','36405','1','12','$.MediaType','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85493','36405','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85494','36406','1','12','$.Model','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85495','36406','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85496','36407','1','12','$.SerialNumber','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85497','36407','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85498','36408','1','12','$.CapacityBytes','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85499','36408','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85500','36409','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85501','36409','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85502','36410','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85503','36410','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85504','36411','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85505','36411','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85506','36412','1','12','$.Reading','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85507','36413','1','12','$.Oem.Dell.DellVirtualDisk.RaidStatus','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85508','36413','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85509','36414','1','12','$.Oem.Dell.DellVirtualDisk.ReadCachePolicy','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85510','36414','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85511','36415','1','12','$.CapacityBytes','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85512','36415','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85513','36416','1','12','$.Status.State','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85514','36416','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85515','36417','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85516','36417','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85517','36418','1','12','$.Oem.Dell.DellVirtualDisk.WriteCachePolicy','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85518','36418','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85519','36419','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85520','36420','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85521','36421','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85522','36422','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85523','36423','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85524','36424','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85525','36425','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85526','36426','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85527','36427','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85528','36428','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85529','36429','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85530','36431','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85531','36432','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85532','36433','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85533','36434','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85534','36435','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85535','36436','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85536','36437','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85537','36438','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85538','36439','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85539','36440','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85540','36441','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85541','36443','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85542','36444','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85543','36445','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85544','36446','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85545','36447','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85546','36447','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85547','36448','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85548','36449','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85549','36450','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85550','36451','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85551','36452','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85552','36452','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85553','36453','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85554','36455','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85555','36455','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85556','36457','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85557','36459','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    system = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    system = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = {\n    model: \'\',\n    serialnumber: \'\',\n    status: \'\',\n    firmware: \'\'\n};\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nresult.model = getField(system, \'Model\', \'\');\nresult.serialnumber = getField(system, \'Oem.Dell.DellSystem.ChassisServiceTag\', \'\');\nresult.status = getField(system, \'Status.Health\', \'\');\n\nresponse = request(params.url + \'/redfish/v1/Managers/iDRAC.Embedded.1\');\nresult.firmware = getField(response.body, \'FirmwareVersion\', \'\');\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85558','36461','1','12','$.firmware','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85559','36461','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85560','36462','1','12','$.model','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85561','36462','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85562','36463','1','12','$.serialnumber','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85563','36463','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85564','36464','1','12','$.status','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85565','36464','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85566','36465','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"]);\n            controller = response.body;\n            if (getField(controller, \'Id\', \'\').search(\'RAID\') > -1) {\n                result.push({\n                    \'{#BATTERY_NAME}\': getField(response.body, \'Oem.Dell.DellControllerBattery.Name\', \'\'),\n                    \'{#ODATA}\': controller["@odata.id"]\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85567','36465','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85568','36466','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"]);\n            controller = response.body;\n            if (getField(controller, \'Id\', \'\').search(\'RAID\') > -1) {\n                result.push({\n                    \'{#CNTLR_NAME}\': getField(response.body, \'Name\', \'\'),\n                    \'{#SLOT}\': getField(response.body, \'Oem.Dell.DellController.PCISlot\', \'\'),\n                    \'{#ODATA}\': controller["@odata.id"]\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85569','36466','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85570','36467','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\ntry {\n    sensors = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    sensors = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (sensors.Members instanceof Array) {\n    sensors.Members.forEach(function (sensor) {\n        if (typeof sensor["@odata.id"] === \'string\') {\n            response = request(params.url + sensor["@odata.id"]);\n            if (response.body.ReadingType === \'Rotational\') {\n                if (typeof response.body.Name === \'string\') {\n                    result.push({ \'{#SENSOR_NAME}\': response.body.Name, \'{#ODATA}\': sensor["@odata.id"] });\n                }\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85571','36467','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85572','36468','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    adapters = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    adapters = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (adapters.Members instanceof Array) {\n    adapters.Members.forEach(function (adapter) {\n        if (typeof adapter["@odata.id"] === \'string\') {\n            response = request(params.url + adapter["@odata.id"] + "/NetworkPorts");\n            ports = response.body;\n            if (ports.Members instanceof Array) {\n                ports.Members.forEach(function (port) {\n                    if (typeof port["@odata.id"] === \'string\') {\n                        response = request(params.url + port["@odata.id"]);\n                        result.push({ \'{#IFNAME}\': getField(response.body, \'Id\', \'\'), \'{#ODATA}\': port["@odata.id"] });\n                    }\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85573','36468','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85574','36469','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"]);\n            drives = response.body;\n            if (drives.Drives instanceof Array) {\n                drives.Drives.forEach(function (drive) {\n                    if (typeof drive["@odata.id"] === \'string\') {\n                        response = request(params.url + drive["@odata.id"]);\n                        result.push({ \'{#DISK_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': drive["@odata.id"] });\n                    }\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85575','36469','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85576','36470','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    sensors = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    sensors = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (sensors.Members instanceof Array) {\n    sensors.Members.forEach(function (sensor) {\n        if (typeof sensor["@odata.id"] === \'string\') {\n            response = request(params.url + sensor["@odata.id"]);\n            if (getField(response.body, \'ReadingType\', \'\') === \'Voltage\') {\n                result.push({ \'{#SENSOR_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': sensor["@odata.id"] });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85577','36470','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85578','36471','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    sensors = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    sensors = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (sensors.Members instanceof Array) {\n    sensors.Members.forEach(function (sensor) {\n        if (typeof sensor["@odata.id"] === \'string\') {\n            response = request(params.url + sensor["@odata.id"]);\n            if (getField(response.body, \'ReadingType\', \'\') === \'Temperature\') {\n                result.push({ \'{#SENSOR_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': sensor["@odata.id"] });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85579','36471','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85580','36472','1','21','function request(url) {\n    api_request = new HttpRequest();\n    api_request.addHeader(\'Authorization: Basic \' + btoa(params.user + \':\' + params.password));\n    Zabbix.log(4, \'[ DELL ] Sending request: \' + url);\n\n    try {\n        response = api_request.get(url);\n    } catch (error) {\n        Zabbix.log(4, \'[ DELL ] Get request returned error \' + error);\n        throw \'Get request returned error \' + error + \'. Check debug log for more information.\';\n    }\n\n    Zabbix.log(4, \'[ DELL ] Received response with status code \' +\n        api_request.getStatus() + \'\\n\' + response);\n\n    if (api_request.getStatus() !== 200) {\n        var message = \'Request failed with status code \' + api_request.getStatus();\n        if (response !== null) {\n            if (typeof response.message === \'string\') {\n                message += \': \' + response.message;\n            }\n        }\n\n        throw message + \' Check debug log for more information.\';\n    }\n\n    if (response !== null) {\n        try {\n            response = JSON.parse(response);\n        }\n        catch (error) {\n            Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n            response = null;\n        }\n    }\n\n    return {\n        status: api_request.getStatus(),\n        body: response\n    };\n}\n\nfunction getField(object, field, def) {\n    var names = field.split(\'.\');\n    var name = names.shift();\n\n    while (typeof name !== \'undefined\') {\n        if (typeof object === undefined || typeof object[name] === \'undefined\') {\n            return def;\n        }\n\n        object = object[name];\n        name = names.shift();\n    }\n\n    return object;\n}\n\ntry {\n    storages = JSON.parse(value);\n}\ncatch (error) {\n    Zabbix.log(4, \'[ DELL ] Failed to parse response.\');\n    storages = null;\n}\n\nvar params = {\n    url: \'{$API.URL}\',\n    user: \'{$API.USER}\',\n    password: \'{$API.PASSWORD}\'\n};\nvar result = [];\n\nvar index = params.url.indexOf(\'://\');\nindex = params.url.indexOf(\'/\', (index !== -1) ? (index + 3) : 0);\nif (index !== -1) {\n    params.url = params.url.substring(0, index);\n}\n\nif (storages.Members instanceof Array) {\n    storages.Members.forEach(function (storage) {\n        if (typeof storage["@odata.id"] === \'string\') {\n            response = request(params.url + storage["@odata.id"] + "/Volumes");\n            volumes = response.body;\n            if (volumes.Members instanceof Array) {\n                volumes.Members.forEach(function (volume) {\n                    if (typeof volume["@odata.id"] === \'string\') {\n                        response = request(params.url + volume["@odata.id"]);\n                        result.push({ \'{#DISK_NAME}\': getField(response.body, \'Name\', \'\'), \'{#ODATA}\': volume["@odata.id"] });\n                    }\n                });\n            }\n        }\n    });\n}\n\nreturn JSON.stringify(result);','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85581','36472','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85582','36473','1','12','$.Oem.Dell.DellControllerBattery.PrimaryStatus','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85583','36473','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85584','36474','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85585','36474','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85586','36481','1','12','$.Reading','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85587','36482','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85588','36482','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85589','36483','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85590','36483','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85591','36484','1','12','$.CurrentLinkSpeedMbps','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85592','36484','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85593','36485','1','12','$.Status.State','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85594','36485','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85595','36486','1','12','$.LinkStatus','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85596','36486','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85597','36487','1','12','$.MediaType','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85598','36487','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85599','36488','1','12','$.Model','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85600','36488','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85601','36489','1','12','$.SerialNumber','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85602','36489','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85603','36490','1','12','$.CapacityBytes','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85604','36490','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85605','36491','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85606','36491','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85607','36492','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85608','36492','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85609','36493','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85610','36493','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85611','36494','1','12','$.Reading','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85612','36495','1','12','$.Oem.Dell.DellVirtualDisk.RaidStatus','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85613','36495','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85614','36496','1','12','$.Oem.Dell.DellVirtualDisk.ReadCachePolicy','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85615','36496','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85616','36497','1','12','$.CapacityBytes','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85617','36497','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85618','36498','1','12','$.Status.State','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85619','36498','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85620','36499','1','12','$.Status.Health','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85621','36499','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85622','36500','1','12','$.Oem.Dell.DellVirtualDisk.WriteCachePolicy','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85623','36500','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85624','36501','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85625','36502','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85626','36503','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85627','36504','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85628','36505','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85629','36506','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85630','36507','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85631','36508','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85632','36509','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85633','36510','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85634','36511','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85635','36513','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85636','36514','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85637','36515','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85638','36516','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85639','36517','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85640','36518','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85641','36519','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85642','36520','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85643','36521','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85644','36522','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85645','36523','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85646','36525','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85647','36526','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85648','36527','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85649','36528','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85650','36529','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85651','36529','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85652','36530','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85653','36531','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85654','36532','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85655','36533','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85656','36534','1','1','0.1','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85657','36534','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85658','36535','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85659','36537','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85660','36537','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85661','36539','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85662','36541','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85663','36542','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85664','36543','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85665','36544','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85666','36545','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85667','36546','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85668','36547','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85669','36548','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85670','36549','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85671','36550','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85672','36552','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85673','36553','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85674','36554','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85675','36555','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85676','36556','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85677','36557','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85678','36558','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85679','36559','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85680','36560','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85681','36561','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85682','36562','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85683','36563','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85684','36564','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85685','36565','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85686','36566','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85687','36567','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85688','36568','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85689','36569','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85690','36570','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85691','36571','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85692','36572','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85693','36573','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85694','36574','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85695','36575','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85696','36576','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85697','36576','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85698','36577','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85699','36578','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85700','36579','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85701','36580','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85702','36581','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85703','36582','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85704','36583','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85705','36584','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85706','36585','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85707','36586','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85708','36587','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85709','36588','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85710','36589','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85711','36590','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85712','36591','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85713','36592','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85714','36593','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85715','36594','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85716','36595','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85717','36596','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85718','36596','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85719','36597','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85720','36598','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85721','36599','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85722','36600','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85723','36601','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85724','36602','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85725','36603','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85726','36604','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85727','36605','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85728','36606','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85729','36607','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85730','36609','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85731','36610','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85732','36611','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85733','36612','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85734','36613','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85735','36614','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85736','36615','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85737','36616','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85738','36617','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85739','36618','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85740','36619','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85741','36620','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85742','36621','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85743','36622','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85744','36623','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85745','36624','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85746','36625','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85747','36626','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85748','36627','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85749','36628','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85750','36629','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85751','36630','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85752','36631','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85753','36632','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85754','36633','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85755','36633','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85756','36634','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85757','36635','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85758','36636','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85759','36637','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85760','36638','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85761','36639','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85762','36640','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85763','36641','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85764','36642','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85765','36643','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85766','36644','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85767','36645','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85768','36646','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85769','36647','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85770','36648','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85771','36649','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85772','36650','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85773','36651','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85774','36652','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85775','36653','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85776','36653','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85777','36654','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85778','36655','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85779','36656','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85780','36657','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85781','36658','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85782','36659','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85783','36660','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85784','36661','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85785','36662','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85786','36663','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85787','36664','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85788','36666','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85789','36667','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85790','36668','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85791','36669','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85792','36670','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85793','36671','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85794','36672','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85795','36673','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85796','36674','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85797','36675','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85798','36676','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85799','36677','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85800','36678','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85801','36679','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85802','36680','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85803','36681','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85804','36682','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85805','36683','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85806','36684','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85807','36685','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85808','36686','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85809','36687','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85810','36688','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85811','36689','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85812','36690','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85813','36690','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85814','36691','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85815','36692','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85816','36693','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85817','36694','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85818','36695','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85819','36696','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85820','36697','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85821','36698','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85822','36699','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85823','36700','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85824','36701','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85825','36702','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85826','36703','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85827','36704','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85828','36705','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85829','36706','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85830','36707','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85831','36708','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85832','36709','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85833','36710','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85834','36710','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85835','36711','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85836','36712','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85837','36713','1','20','1d','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85838','36714','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85839','36715','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85840','36716','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85841','36717','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85842','36718','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85843','36719','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85844','36720','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85845','36721','1','1','0.01','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85846','36723','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85847','36724','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85848','36725','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85849','36726','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85850','36727','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85851','36728','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85852','36729','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85853','36730','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85854','36731','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85855','36732','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85856','36733','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85857','36734','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85858','36735','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85859','36736','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85860','36737','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85861','36738','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85862','36739','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85863','36740','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85864','36741','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85865','36742','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85866','36743','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85867','36744','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85868','36745','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85869','36746','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85870','36747','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85871','36747','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85872','36748','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85873','36749','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85874','36750','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85875','36751','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85876','36752','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85877','36753','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85878','36754','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85879','36755','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85880','36756','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85881','36757','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85882','36758','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85883','36759','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85884','36760','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85885','36761','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85886','36762','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85887','36763','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85888','36764','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85889','36765','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85890','36766','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85891','36767','1','1','1048576','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85892','36767','2','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85893','36768','1','20','6h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85894','36769','1','12','$.sip.active_channels','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85895','36770','1','12','$.pjsip.active_channels','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85896','36771','1','12','$.iax.active_channels','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85897','36773','0','26','','2','0');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85898','36773','1','21','return JSON.parse(value).config ? 1 : 0','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85899','36776','1','12','$..duration.sum()','1','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85900','36777','1','12','$.builds.length()','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85901','36778','1','12','$.jobs[?(@.state == "started")].length()','2','0');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85902','36779','1','12','$.jobs[?(@.state == "received")].length()','2','0');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85903','36780','1','12','$.jobs.length()','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85904','36781','1','21','var result = [];\n\nJSON.parse(value).repositories.forEach(function (e) {\n    result.push({ \'{#ID}\': e.id, \'{#SLUG}\': e.slug });\n});\n\nreturn JSON.stringify(result)','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85905','36781','2','20','1h','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85906','36785','1','21','return JSON.parse(value).builds.filter(function (e){return e.state !== "passed" && e.state !== "started" }).length','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85907','36786','1','21','return JSON.parse(value).builds.filter(function (e){return e.state == "passed"}).length','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85908','36787','1','12','$.builds.length()','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85909','36788','1','12','$.caches.length()','0','');
INSERT INTO `item_preproc` (`item_preprocid`,`itemid`,`step`,`type`,`params`,`error_handler`,`error_handler_params`) values ('85910','36789','1','12','$.caches..size.sum()','2','0');
