INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43646','20','1.3.6.1.4.1.12325.1.200.1.5.1.0','10528','OPNsense: States table limit','opnsense.state.table.limit','1m','7d','365d','0','3','','','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: BEGEMOT-PF-MIB
Maximum number of ''keep state'' rules in the ruleset.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','3bd8ea1e2cb44b4cb0f7d16a9339b9e4','OPNSENSE: STATES TABLE LIMIT');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43647','20','1.3.6.1.4.1.12325.1.200.1.3.1.0','10528','OPNsense: States table current','opnsense.state.table.count','1m','7d','365d','0','3','','','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: BEGEMOT-PF-MIB
Number of entries in the state table.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','1c399a2204bc44d4a9b1a4017840fd75','OPNSENSE: STATES TABLE CURRENT');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43648','15','','10528','OPNsense: Source tracking table utilization in %','opnsense.source.tracking.table.pused','1m','7d','365d','0','0','','%','','',NULL,NULL,'last(//opnsense.source.tracking.table.count) * 100 / last(//opnsense.source.tracking.table.limit)','','0','','','','','0',NULL,'Utilization of source tracking table in %.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','1452fc4e67564233b12dc892fde1959a','OPNSENSE: SOURCE TRACKING TABLE UTILIZATION IN %');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43649','20','1.3.6.1.4.1.12325.1.200.1.5.2.0','10528','OPNsense: Source tracking table limit','opnsense.source.tracking.table.limit','1m','7d','365d','0','3','','','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: BEGEMOT-PF-MIB
Maximum number of ''sticky-address'' or ''source-track'' rules in the ruleset.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','a9b848d5c2254efdaf74ff48ce4003c4','OPNSENSE: SOURCE TRACKING TABLE LIMIT');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43650','20','1.3.6.1.4.1.12325.1.200.1.4.1.0','10528','OPNsense: Source tracking table current','opnsense.source.tracking.table.count','1m','7d','365d','0','3','','','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: BEGEMOT-PF-MIB
Number of entries in the source tracking table.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','6e40ddbf15a54b0e8ae2d1c52d5c2eba','OPNSENSE: SOURCE TRACKING TABLE CURRENT');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43651','20','1.3.6.1.4.1.12325.1.200.1.1.1.0','10528','OPNsense: Packet filter running status','opnsense.pf.status','1m','7d','365d','0','3','','','','',NULL,'1030','','','0','','','','','0',NULL,'MIB: BEGEMOT-PF-MIB
True if packet filter is currently enabled.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','f2b82b136ea943909a7b6317bf8b7785','OPNSENSE: PACKET FILTER RUNNING STATUS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43652','20','.1.3.6.1.2.1.25.4.2.1.7["index",".1.3.6.1.2.1.25.4.2.1.2","unbound"]','10528','OPNsense: DNS server status','opnsense.dns.status','1m','7d','365d','0','3','','','','',NULL,'1029','','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The status of DNS server process.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','c52c2b9a3d4e4446a8af02e5a51e9c55','OPNSENSE: DNS SERVER STATUS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43653','20','1.3.6.1.4.1.12325.1.200.1.2.4.0','10528','OPNsense: Short packets','opnsense.packets.short','1m','7d','365d','0','0','','pps','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: BEGEMOT-PF-MIB
True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','7b845d8282ee4c1394c71c22ada31da9','OPNSENSE: SHORT PACKETS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43654','20','1.3.6.1.4.1.12325.1.200.1.2.5.0','10528','OPNsense: Normalized packets','opnsense.packets.normalize','1m','7d','365d','0','0','','pps','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: BEGEMOT-PF-MIB
True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','7c8d4623d2fd4b77b0749caa67530bb2','OPNSENSE: NORMALIZED PACKETS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43655','20','1.3.6.1.4.1.12325.1.200.1.2.6.0','10528','OPNsense: Packets dropped due to memory limitation','opnsense.packets.mem.drop','1m','7d','365d','0','0','','pps','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: BEGEMOT-PF-MIB
True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','3983366c271f4e9896d738c58f2d850f','OPNSENSE: PACKETS DROPPED DUE TO MEMORY LIMITATION');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43656','20','1.3.6.1.4.1.12325.1.200.1.2.1.0','10528','OPNsense: Packets matched a filter rule','opnsense.packets.match','1m','7d','365d','0','0','','pps','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: BEGEMOT-PF-MIB
True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','ae0bfb3bd36e4b05ae490c4b70ba1313','OPNSENSE: PACKETS MATCHED A FILTER RULE');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43657','20','1.3.6.1.4.1.12325.1.200.1.2.3.0','10528','OPNsense: Fragmented packets','opnsense.packets.fragment','1m','7d','365d','0','0','','pps','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: BEGEMOT-PF-MIB
True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','f8503508e3e646c781d637d1aefaf21a','OPNSENSE: FRAGMENTED PACKETS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43658','20','1.3.6.1.4.1.12325.1.200.1.2.2.0','10528','OPNsense: Packets with bad offset','opnsense.packets.bad.offset','1m','7d','365d','0','0','','pps','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: BEGEMOT-PF-MIB
True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','6a77c077e6bb44439ad766de038f71f1','OPNSENSE: PACKETS WITH BAD OFFSET');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43659','20','.1.3.6.1.2.1.25.4.2.1.7["index",".1.3.6.1.2.1.25.4.2.1.2","lighttpd"]','10528','OPNsense: Web server status','opnsense.lighttpd.status','1m','7d','365d','0','3','','','','',NULL,'1029','','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The status of lighttpd process.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','4bc80f5cece045cfa103fa9d4e5db9c6','OPNSENSE: WEB SERVER STATUS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43660','5','','10528','OPNsense: SNMP agent availability','zabbix[host,snmp,available]','1m','7d','365d','0','3','','','','',NULL,'1031','','','0','','','','','0',NULL,'Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list.
Possible value:
0 - not available
1 - available
2 - unknown','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','00f2e8aa55754a7b9063afc1d7749d85','OPNSENSE: SNMP AGENT AVAILABILITY');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43661','20','discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]','10528','Network interfaces discovery','opnsense.net.if.discovery','1h','90d','0','0','4','','','','',NULL,NULL,'','','0','','','','','1',NULL,'Discovering interfaces from IF-MIB.','0','30d','1','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','d7830514425f47eda3ac8ec20a1801b9','NETWORK INTERFACES DISCOVERY');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43662','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.8["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv4 traffic blocked','net.if.in.block.v4.bps[{#SNMPINDEX}]','1m','7d','365d','0','3','','bps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
IPv4 bits per second blocked coming in on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','3a687275a219460c92433bda90be8d59','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: INBOUND IPV4 TRAFFIC BLOCKED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43663','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.22["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv6 packets blocked','net.if.out.block.v6.pps[{#SNMPINDEX}]','1m','7d','365d','0','3','','pps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
The number of IPv6 packets blocked going out on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','a877f2c800874ce9bbf972ef8eb277be','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: OUTBOUND IPV6 PACKETS BLOCKED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43664','20','1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Operational status','net.if.status[{#SNMPINDEX}]','1m','7d','365d','0','3','','','','',NULL,'1027','','','0','','','','','2',NULL,'MIB: IF-MIB
The current operational state of the interface.
- The testing(3) state indicates that no operational packet scan be passed
- If ifAdminStatus is down(2) then ifOperStatus should be down(2)
- If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic
- It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection)
- It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state
- It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','1b352c1f96e84f2fb72c6414c0e15b29','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: OPERATIONAL STATUS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43665','20','1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Speed','net.if.speed[{#SNMPINDEX}]','1m','7d','365d','0','3','','bps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: IF-MIB
An estimate of the interface''s current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n'' then the speed of the interface is somewhere in the range of `n-500,000'' to`n+499,999''.  For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','76c91001f4b64ba99c132c3dd476cb88','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: SPEED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43666','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.6["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Rules references count','net.if.rules.refs[{#SNMPINDEX}]','1m','7d','365d','0','3','','','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
The number of rules referencing this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','bce50f45634d41b6a4ab8616e3a4d804','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: RULES REFERENCES COUNT');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43667','20','1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Bits sent','net.if.out[{#SNMPINDEX}]','1m','7d','365d','0','3','','bps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: IF-MIB
The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','1f6a8e8f3cc746249001293fba59fcf3','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: BITS SENT');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43668','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.21["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv6 packets passed','net.if.out.pass.v6.pps[{#SNMPINDEX}]','1m','7d','365d','0','3','','pps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
The number of IPv6 packets passed going out on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','d4c3d02a4e024d1a881789f9588c05f7','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: OUTBOUND IPV6 PACKETS PASSED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43669','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.17["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv6 traffic passed','net.if.out.pass.v6.bps[{#SNMPINDEX}]','1m','7d','365d','0','3','','bps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
IPv6 bits per second passed going out on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','993af213503d4cf8b921ed630a01e7f9','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: OUTBOUND IPV6 TRAFFIC PASSED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43670','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.13["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv4 packets passed','net.if.out.pass.v4.pps[{#SNMPINDEX}]','1m','7d','365d','0','3','','pps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
The number of IPv4 packets passed going out on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','ec0b70c2c7d8452aaefefb737f567735','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: OUTBOUND IPV4 PACKETS PASSED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43671','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.9["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv4 traffic passed','net.if.out.pass.v4.bps[{#SNMPINDEX}]','1m','7d','365d','0','3','','bps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
IPv4 bits per second passed going out on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','be3ab46dc43d45da88917689e02b9f70','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: OUTBOUND IPV4 TRAFFIC PASSED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43672','20','1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Outbound packets with errors','net.if.out.errors[{#SNMPINDEX}]','1m','7d','365d','0','3','','','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: IF-MIB
For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.  For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','357f0ab9a5814f06a04e5e2983226e26','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: OUTBOUND PACKETS WITH ERRORS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43673','20','1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Outbound packets discarded','net.if.out.discards[{#SNMPINDEX}]','1m','7d','365d','0','3','','','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: IF-MIB
The number of outbound packets which were chosen to be discarded
even though no errors had been detected to prevent their being deliverable to a higher-layer protocol.
One possible reason for discarding such a packet could be to free up buffer space.
Discontinuities in the value of this counter can occur at re-initialization of the management system,
and at other times as indicated by the value of ifCounterDiscontinuityTime.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','d80bb6eac4ab43b58c6c785340b77494','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: OUTBOUND PACKETS DISCARDED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43674','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.18["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv6 traffic blocked','net.if.out.block.v6.bps[{#SNMPINDEX}]','1m','7d','365d','0','3','','bps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
IPv6 bits per second blocked going out on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','dae11126c26543a7afd3c169fbc76cd5','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: OUTBOUND IPV6 TRAFFIC BLOCKED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43675','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.12["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv4 packets blocked','net.if.in.block.v4.pps[{#SNMPINDEX}]','1m','7d','365d','0','3','','pps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
The number of IPv4 packets blocked coming in on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','d34be70208614a599e8706ede8d28f6d','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: INBOUND IPV4 PACKETS BLOCKED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43676','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.14["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv4 packets blocked','net.if.out.block.v4.pps[{#SNMPINDEX}]','1m','7d','365d','0','3','','pps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
The number of IPv4 packets blocked going out on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','7f335123af85457cb5b8c43279f26b27','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: OUTBOUND IPV4 PACKETS BLOCKED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43677','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.10["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv4 traffic blocked','net.if.out.block.v4.bps[{#SNMPINDEX}]','1m','7d','365d','0','3','','bps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
IPv4 bits per second blocked going out on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','0be1b473b51541c38012847e52ae9e1f','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: OUTBOUND IPV4 TRAFFIC BLOCKED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43678','20','1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Bits received','net.if.in[{#SNMPINDEX}]','1m','7d','365d','0','3','','bps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: IF-MIB
The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','df19df9d63604ec294a49478a0963da2','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: BITS RECEIVED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43679','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.19["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv6 packets passed','net.if.in.pass.v6.pps[{#SNMPINDEX}]','1m','7d','365d','0','3','','pps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
The number of IPv6 packets passed coming in on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','23daac718d7743248b4e9e5dd9d537bf','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: INBOUND IPV6 PACKETS PASSED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43680','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.15["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv6 traffic passed','net.if.in.pass.v6.bps[{#SNMPINDEX}]','1m','7d','365d','0','3','','bps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
IPv6 bits per second passed coming in on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','a21b0c97af544225971a6d0a2ddeaf2c','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: INBOUND IPV6 TRAFFIC PASSED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43681','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.11["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv4 packets passed','net.if.in.pass.v4.pps[{#SNMPINDEX}]','1m','7d','365d','0','3','','pps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
The number of IPv4 packets passed coming in on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','367629501e4248e0b6de19e7123b0df6','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: INBOUND IPV4 PACKETS PASSED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43682','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.7["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv4 traffic passed','net.if.in.pass.v4.bps[{#SNMPINDEX}]','1m','7d','365d','0','3','','bps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
IPv4 bits per second passed coming in on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','da65b40184d84a2a98dd595e17794875','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: INBOUND IPV4 TRAFFIC PASSED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43683','20','1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Inbound packets with errors','net.if.in.errors[{#SNMPINDEX}]','1m','7d','365d','0','3','','','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: IF-MIB
For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.  For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','c6f650d534c94a1bb0bf1faca829c538','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: INBOUND PACKETS WITH ERRORS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43684','20','1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Inbound packets discarded','net.if.in.discards[{#SNMPINDEX}]','1m','7d','365d','0','3','','','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: IF-MIB
The number of inbound packets which were chosen to be discarded
even though no errors had been detected to prevent their being deliverable to a higher-layer protocol.
One possible reason for discarding such a packet could be to free up buffer space.
Discontinuities in the value of this counter can occur at re-initialization of the management system,
and at other times as indicated by the value of ifCounterDiscontinuityTime.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','77ad7ea9f85d419a81d99531ba71ef1d','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: INBOUND PACKETS DISCARDED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43685','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.20["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv6 packets blocked','net.if.in.block.v6.pps[{#SNMPINDEX}]','1m','7d','365d','0','3','','pps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
The number of IPv6 packets blocked coming in on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','b9335034e4f94bb1b15f5b74a6467f89','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: INBOUND IPV6 PACKETS BLOCKED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43686','20','.1.3.6.1.4.1.12325.1.200.1.8.2.1.16["index",".1.3.6.1.4.1.12325.1.200.1.8.2.1.2","{#IFDESCR}"]','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv6 traffic blocked','net.if.in.block.v6.bps[{#SNMPINDEX}]','1m','7d','365d','0','3','','bps','','',NULL,NULL,'','','0','','','','','2',NULL,'MIB: BEGEMOT-PF-MIB
IPv6 bits per second blocked coming in on this interface.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','e6bc104196ad44f8abf8b7609b464f07','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: INBOUND IPV6 TRAFFIC BLOCKED');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43687','20','1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}','10528','OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Interface type','net.if.type[{#SNMPINDEX}]','1m','7d','365d','0','3','','','','',NULL,'1028','','','0','','','','','2',NULL,'MIB: IF-MIB
The type of interface.
Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA),
through updating the syntax of the IANAifType textual convention.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','2874d024da724dc687d0d8fa940fcf87','OPNSENSE: INTERFACE [{#IFNAME}({#IFALIAS})]: INTERFACE TYPE');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43688','20','1.3.6.1.2.1.25.1.1.0','10204','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','b12afb0277494024b1638ce620c4f2d4','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43689','20','1.3.6.1.2.1.25.1.1.0','10207','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','3ea3106277c64428950b4a5b6c4aedd0','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43690','20','1.3.6.1.2.1.25.1.1.0','10254','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','5bf4c90019ae41688336f83bcbb481bb','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43691','20','1.3.6.1.2.1.25.1.1.0','10208','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','a988240abba8442da83fdbcb789d0138','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43692','20','1.3.6.1.2.1.25.1.1.0','10210','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','78b57ca2787948cb8b92604f2a0fdccc','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43693','20','1.3.6.1.2.1.25.1.1.0','10211','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','09265047c03b4c7397d0b526d47e5a8e','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43694','20','1.3.6.1.2.1.25.1.1.0','10390','Uptime (hardware)','system.hw.uptime','1m','7d','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','64e59aaf9a4c4dd28e591c96075c183b','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43695','20','1.3.6.1.2.1.25.1.1.0','10391','Uptime (hardware)','system.hw.uptime','1m','7d','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','24df0110b0d541118d6609c3f3922fe5','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43696','20','1.3.6.1.2.1.25.1.1.0','10392','Uptime (hardware)','system.hw.uptime','1m','7d','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','6fd05b29760a4b10bf9b1125e8747cd1','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43697','20','1.3.6.1.2.1.25.1.1.0','10393','Uptime (hardware)','system.hw.uptime','1m','7d','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','b81c8fccadb94cd4bd7c798906d881ef','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43698','20','1.3.6.1.2.1.25.1.1.0','10394','Uptime (hardware)','system.hw.uptime','1m','7d','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','f00b81685e5d41f49561b62d710e247f','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43699','20','1.3.6.1.2.1.25.1.1.0','10220','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','732ccfd809b44d7fa923c54e6577851d','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43700','20','1.3.6.1.2.1.25.1.1.0','10218','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','f2173cd0262d4a60b5e134e00fed78e6','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43701','20','1.3.6.1.2.1.25.1.1.0','10253','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','927d85dbb82f4b9a9edf4fb6194e7427','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43702','20','1.3.6.1.2.1.25.1.1.0','10221','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','5297253edb09463e8fdb6f1905e4f494','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43703','20','1.3.6.1.2.1.25.1.1.0','10222','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','68631d04f4a94b83901bad116fe68198','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43704','20','1.3.6.1.2.1.25.1.1.0','10223','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','e4706d07b0824ccb8f4ee7ccec10a388','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43705','20','1.3.6.1.2.1.25.1.1.0','10224','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','9e9db5d7fe5f4f4e8fc6581813699c1e','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43706','20','1.3.6.1.2.1.25.1.1.0','10226','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','76f954f8d7fd41109919ccbbb6151164','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43707','20','1.3.6.1.2.1.25.1.1.0','10227','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','b476c099f8f64aa89cd5f61fc8b47dfa','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43708','20','1.3.6.1.2.1.25.1.1.0','10250','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','a0659dadbef14fb1ac9be45d47388aa2','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43709','20','1.3.6.1.2.1.25.1.1.0','10229','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','202c91a61d644285a0d74d88ae1b1a79','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43710','20','1.3.6.1.2.1.25.1.1.0','10230','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','f0fece305afd4ef9b7e9e6e9dd297e21','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43711','20','1.3.6.1.2.1.25.1.1.0','10231','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','833dd7b3b4e94dc89b4e7098cec3fce2','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43712','20','1.3.6.1.2.1.25.1.1.0','10251','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','f867fb976e0b49a895129865e95096c2','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43713','20','1.3.6.1.2.1.25.1.1.0','10449','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','da2967c30d774681af4b7007bfbd01c5','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43714','20','1.3.6.1.2.1.25.1.1.0','10450','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','87ed039a5c7d4d5f8e6459ad8f5bfa0f','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43715','20','1.3.6.1.2.1.25.1.1.0','10451','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','466b42bafcaf4a9a891a1d554cfd688c','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43716','20','1.3.6.1.2.1.25.1.1.0','10452','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','6625f426dcc949559a35ddfb3aed43d3','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43717','20','1.3.6.1.2.1.25.1.1.0','10453','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','094dba661554421087ef6454e6e899f6','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43718','20','1.3.6.1.2.1.25.1.1.0','10454','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','7f1bc41c42fc410881b45972129ccf15','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43719','20','1.3.6.1.2.1.25.1.1.0','10455','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','e8aeeb3ddfe6405ba5c02cbcf50681f4','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43720','20','1.3.6.1.2.1.25.1.1.0','10456','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','6ba9b468dd2143a4a816c4bec1cee079','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43721','20','1.3.6.1.2.1.25.1.1.0','10457','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','af308a3e3ff14620a683f09d935887a7','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43722','20','1.3.6.1.2.1.25.1.1.0','10458','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','c86226f9db8e4eda9216c0e5f96bf826','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43723','20','1.3.6.1.2.1.25.1.1.0','10459','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','7b849a56812d4ceda43c4c3c96c09911','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43724','20','1.3.6.1.2.1.25.1.1.0','10460','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','b4d7b0ae4b874f41afc1d2bb18444f59','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43725','20','1.3.6.1.2.1.25.1.1.0','10461','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','cb05d9fcd5f04045b38b2653aa3f054f','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43726','20','1.3.6.1.2.1.25.1.1.0','10462','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','d2825ec79526468bae315bcf4271c3bf','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43727','20','1.3.6.1.2.1.25.1.1.0','10463','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','730caedb1aba4e2bb914a9ac5e45bee0','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43728','20','1.3.6.1.2.1.25.1.1.0','10464','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','41c7402ad2354e5e8e5395b3e86d291c','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43729','20','1.3.6.1.2.1.25.1.1.0','10465','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','d226673194c84ee7968632b06060d905','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43730','20','1.3.6.1.2.1.25.1.1.0','10466','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','76f9415c139b4c78bb5e77e094ced5e4','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43731','20','1.3.6.1.2.1.25.1.1.0','10467','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','43da9de2e9b949ea9844ac7e8991aa51','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43732','20','1.3.6.1.2.1.25.1.1.0','10468','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','6e5f3a092d7f44f98f9f72ec7b65a412','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43733','20','1.3.6.1.2.1.25.1.1.0','10469','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','59bd59afea7c430ab9b87036d6f68d80','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43734','20','1.3.6.1.2.1.25.1.1.0','10470','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','c36c9dba589944d4bc4253019663831e','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43735','20','1.3.6.1.2.1.25.1.1.0','10471','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','9a3c0d8062f9470faeb350b3f025dc93','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43736','20','1.3.6.1.2.1.25.1.1.0','10472','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','bccedf8a6d434ee19ef03ae4b15db6e6','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43737','20','1.3.6.1.2.1.25.1.1.0','10473','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','7052c7bbeffe4dbbbbc08f70c8d2679f','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43738','20','1.3.6.1.2.1.25.1.1.0','10474','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','093f8cdde4514b3cb81233a59eec8277','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43739','20','1.3.6.1.2.1.25.1.1.0','10475','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','2521a17fcdb048c3ac5b3e425eb48ad6','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43740','20','1.3.6.1.2.1.25.1.1.0','10476','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','b2fa99d8602342358690da734fc553a5','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43741','20','1.3.6.1.2.1.25.1.1.0','10477','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','7b93e987a3e442e39e2f822a0c271678','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43742','20','1.3.6.1.2.1.25.1.1.0','10478','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','90e82de3b7b043269947a13acaf0eae3','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43743','20','1.3.6.1.2.1.25.1.1.0','10479','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','96f11f9c23434a68b82d075f85af3c31','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43744','20','1.3.6.1.2.1.25.1.1.0','10480','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','1634bc47137b4de9942b33ca99eb4541','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43745','20','1.3.6.1.2.1.25.1.1.0','10481','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','e589fb99827e4e8197f6ecb8872b4f10','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43746','20','1.3.6.1.2.1.25.1.1.0','10482','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','218903c6b9c04999ab58583dfc22d42d','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43747','20','1.3.6.1.2.1.25.1.1.0','10483','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','424081b2ac3f453f84c7c0cf0d6270e5','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43748','20','1.3.6.1.2.1.25.1.1.0','10484','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','31874dc23f0046f98c978300e74ced72','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43749','20','1.3.6.1.2.1.25.1.1.0','10485','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','d88eae8b609e42d68219e2b6d68422d1','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43750','20','1.3.6.1.2.1.25.1.1.0','10486','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','c8f1e09b30a84047ac6a98bcc70b15a7','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43751','20','1.3.6.1.2.1.25.1.1.0','10487','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','96372468281d4b0e866a3aa4db1839be','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43752','20','1.3.6.1.2.1.25.1.1.0','10488','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','68f23663d1da4e12b259bc6f2689de9b','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43753','20','1.3.6.1.2.1.25.1.1.0','10489','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','806003915aa24c368a822a424f123d45','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43754','20','1.3.6.1.2.1.25.1.1.0','10490','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','4cb64b20e3c84697b744db08b605c5b0','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43755','20','1.3.6.1.2.1.25.1.1.0','10491','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','012230315f3548d9948d1ad7ddc8d005','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43756','20','1.3.6.1.2.1.25.1.1.0','10492','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','074b83202e714d7d9bf63bf331f4f284','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43757','20','1.3.6.1.2.1.25.1.1.0','10493','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','437fe5b12b2d478fb69c1047b6421d96','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43758','20','1.3.6.1.2.1.25.1.1.0','10494','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','f5f8ed93998a4b5799d1f6b2e1984006','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43759','20','1.3.6.1.2.1.25.1.1.0','10495','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','b2fb7a55ee1b4030b4f621e73a730749','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43760','20','1.3.6.1.2.1.25.1.1.0','10496','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','971d14b46bad442499d7aea95c067dc7','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43761','20','1.3.6.1.2.1.25.1.1.0','10497','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','42eee310a68844deb422d5ff3a715efa','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43762','20','1.3.6.1.2.1.25.1.1.0','10498','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','691b2eadbe314570841aafbe2ad2afb1','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43763','20','1.3.6.1.2.1.25.1.1.0','10499','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','32d6b1147607490287da049b08140f0b','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43764','20','1.3.6.1.2.1.25.1.1.0','10500','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','c30a010e7f134bc88fc47708d02a0a31','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43765','20','1.3.6.1.2.1.25.1.1.0','10501','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','f0ff722acc544222bac0a51456515570','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43766','20','1.3.6.1.2.1.25.1.1.0','10502','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','850f16c89c1a44c585852784dc32bb1b','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43767','20','1.3.6.1.2.1.25.1.1.0','10233','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','94f4af679dba4d3e9047ebcf8c1bc419','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43768','20','1.3.6.1.2.1.25.1.1.0','10371','Status: Uptime (hardware)','status.hw.uptime','1m','7d','365d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','712a9b442bec4e89acf4ee5d5bf26fb8','STATUS: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43769','20','1.3.6.1.2.1.25.1.1.0','10372','Status: Uptime (hardware)','status.hw.uptime','1m','7d','365d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','2c9f864ac33b4c2d992459c6519d045a','STATUS: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43770','20','1.3.6.1.2.1.25.1.1.0','10373','Status: Uptime (hardware)','status.hw.uptime','1m','7d','365d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','76a660b88bb74e90971bdaec703d3c17','STATUS: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43771','20','1.3.6.1.2.1.25.1.1.0','10374','Status: Uptime (hardware)','status.hw.uptime','1m','7d','365d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','d1e50f16fab54a8e97372b52cebae18d','STATUS: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43772','20','1.3.6.1.2.1.25.1.1.0','10375','Status: Uptime (hardware)','status.hw.uptime','1m','7d','365d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','d61bd2d5717740518867bfbf734914c9','STATUS: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43773','20','1.3.6.1.2.1.25.1.1.0','10376','Status: Uptime (hardware)','status.hw.uptime','1m','7d','365d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','5e2aebe0ce2044588636be62cde6b6a3','STATUS: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43774','20','1.3.6.1.2.1.25.1.1.0','10377','Status: Uptime (hardware)','status.hw.uptime','1m','7d','365d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','6903297e21e14aa8b5eed4eb0f7e1e01','STATUS: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43775','20','1.3.6.1.2.1.25.1.1.0','10234','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','d0e66c64c0b2449a9c5ffbbdaf176963','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43776','20','1.3.6.1.2.1.25.1.1.0','10235','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','94671639676f476f8b7c37a884d32ed0','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43777','20','1.3.6.1.2.1.25.1.1.0','10236','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','964e73aa4e534b50bd1d93e137ca41f1','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43778','20','1.3.6.1.2.1.25.1.1.0','10237','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','0d47c914219e4da0a7d67631d8171244','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43779','20','.1.3.6.1.2.1.25.1.1.0','10420','ZYXEL AAM1212-51 / IES-612: Uptime (hardware)','zyxel.aam1212.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','5197238bef51468c80e6a4180babee5b','ZYXEL AAM1212-51 / IES-612: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43780','20','.1.3.6.1.2.1.25.1.1.0','10421','ZYXEL ES3500-8PD: Uptime (hardware)','zyxel.3500_8pd.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','ef45d91672ea43c3aa24cbc21f37d391','ZYXEL ES3500-8PD: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43781','20','.1.3.6.1.2.1.25.1.1.0','10422','ZYXEL GS-4012F: Uptime (hardware)','zyxel.4012f.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','1f979fc1f31c4766949cfc343d3c231a','ZYXEL GS-4012F: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43782','20','.1.3.6.1.2.1.25.1.1.0','10423','ZYXEL IES-500x: Uptime (hardware)','zyxel.ies500x.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','5fa56229a8854d62bb6c516da873d63b','ZYXEL IES-500X: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43783','20','.1.3.6.1.2.1.25.1.1.0','10424','ZYXEL IES-6000: Uptime (hardware)','zyxel.ies6000.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','006a65489cfc4231acad12cdb501a55c','ZYXEL IES-6000: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43784','20','.1.3.6.1.2.1.25.1.1.0','10425','ZYXEL IES1248-51: Uptime (hardware)','zyxel.ies1248.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','4b55d1aaee3b441bab6edaaf738065e4','ZYXEL IES1248-51: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43785','20','.1.3.6.1.2.1.25.1.1.0','10426','ZYXEL MES-3528: Uptime (hardware)','zyxel.3528.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','9293989c2bd14bc4a12cdd40a9c7f229','ZYXEL MES-3528: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43786','20','.1.3.6.1.2.1.25.1.1.0','10427','ZYXEL MES3500-10: Uptime (hardware)','zyxel.3500_10.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','d0d33209ea1249e588f2e81807ae6403','ZYXEL MES3500-10: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43787','20','.1.3.6.1.2.1.25.1.1.0','10428','ZYXEL MES3500-24: Uptime (hardware)','zyxel.3500_24.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','fb480642cad3440a8637d871add07b8f','ZYXEL MES3500-24: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43788','20','.1.3.6.1.2.1.25.1.1.0','10429','ZYXEL MGS-3712: Uptime (hardware)','zyxel.3712.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','801ba0a2d20f440d822eb042146b8d16','ZYXEL MGS-3712: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43789','20','.1.3.6.1.2.1.25.1.1.0','10430','ZYXEL MGS-3712F: Uptime (hardware)','zyxel.3712f.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','29bc66a7a2c949549fc2e4c6fa841ab0','ZYXEL MGS-3712F: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43790','20','.1.3.6.1.2.1.25.1.1.0','10431','ZYXEL ES3500-8PD: Uptime (hardware)','zyxel.3500_24s.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','feff31efc5b04b14bf19ec256a6660fb','ZYXEL ES3500-8PD: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43791','20','.1.3.6.1.2.1.25.1.1.0','10432','ZYXEL MGS3520-28x: Uptime (hardware)','zyxel.3520_28.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','8f050b29d1eb43e4a150383c9edd2467','ZYXEL MGS3520-28X: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43792','20','.1.3.6.1.2.1.25.1.1.0','10433','ZYXEL XGS-4728F: Uptime (hardware)','zyxel.4728f.hw.uptime','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','17bdc70663744ede94d7b94602eb881c','ZYXEL XGS-4728F: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43793','20','1.3.6.1.2.1.25.1.1.0','10248','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','d1a9af129dbb4fed8e67efcca383aeae','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43794','20','1.3.6.1.2.1.25.1.1.0','10249','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','422d9e4a985347959d5ef07278a6a12c','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43795','20','1.3.6.1.2.1.25.1.1.0','10400','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','b73fb48b4da84a53b7a4b7e81d6037aa','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43796','20','1.3.6.1.2.1.25.1.1.0','10401','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','4dbad4f0de7f47fd996fd4b8de048d46','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43797','20','1.3.6.1.2.1.25.1.1.0','10402','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','ed6ad4e7036548c09b9a61d875aca9e1','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43798','20','1.3.6.1.2.1.25.1.1.0','10403','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','60bef30ff568425eb5e4c5e6dc861e79','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43799','20','1.3.6.1.2.1.25.1.1.0','10404','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','4def354a520e42d78d67b2e8b1cd8eb4','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43800','20','1.3.6.1.2.1.25.1.1.0','10412','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','9d1f4a038ee447639a07f3549ad68840','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43801','20','1.3.6.1.2.1.25.1.1.0','10406','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','4e8b6d6a5aa24159b048d1cf28e9418a','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43802','20','1.3.6.1.2.1.25.1.1.0','10395','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','b3d5eea37f934efdac4885bcadc73b9b','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43803','20','1.3.6.1.2.1.25.1.1.0','10407','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','e5a92d45430b4bd6bdef42870141d141','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43804','20','1.3.6.1.2.1.25.1.1.0','10408','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','b3021bc8a0324d4d9683f676131bf136','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43805','20','1.3.6.1.2.1.25.1.1.0','10409','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','c7522be948bd4f97a47d59cf1e281c56','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43806','20','1.3.6.1.2.1.25.1.1.0','10385','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','f54aca2b926e4d4d980f980acb0aefac','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43807','20','1.3.6.1.2.1.25.1.1.0','10378','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','76483f37faf8485b922640a6ef8bb672','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43808','20','1.3.6.1.2.1.25.1.1.0','10434','Uptime (hardware)','cisco.ucs.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized.
Note that this is different from sysUpTime in the SNMPv2-MIB
[RFC1907] because sysUpTime is the uptime of the
network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','5af56ed99d09489aafc2d08d4bd4903a','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43809','20','1.3.6.1.2.1.25.1.1.0','10304','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','a6d61b21f9f044a6912759e02787cb3f','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43810','20','1.3.6.1.2.1.25.1.1.0','10436','Dell R720: Uptime (hardware)','dell.server.hw.uptime[hrSystemUptime]','1m','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','cd2c68b05b67404c8305e13ebe54e63a','DELL R720: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43811','20','1.3.6.1.2.1.25.1.1.0','10438','Dell R740: Uptime (hardware)','dell.server.hw.uptime[hrSystemUptime]','1m','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','cce427167ddc49499ce415a6da8b9efb','DELL R740: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43812','20','1.3.6.1.2.1.25.1.1.0','10440','Dell R820: Uptime (hardware)','dell.server.hw.uptime[hrSystemUptime]','1m','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','c6bd338df31b428c8994664654ddb384','DELL R820: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43813','20','1.3.6.1.2.1.25.1.1.0','10442','Dell R840: Uptime (hardware)','dell.server.hw.uptime[hrSystemUptime]','1m','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','def89c137aaa489bb7ab44f642248e15','DELL R840: UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43814','20','1.3.6.1.2.1.25.1.1.0','10255','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','935e3509834844d38a3a8df4d5f698d8','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43815','20','1.3.6.1.2.1.25.1.1.0','10443','Uptime (hardware)','hp.server.hw.uptime[hrSystemUptime]','1m','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','22f0b65d03d44ae0be7133eb19ecc920','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43816','20','1.3.6.1.2.1.25.1.1.0','10444','Uptime (hardware)','hp.server.hw.uptime[hrSystemUptime]','1m','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','5cd1e01b10f3482e9ec5907bd2e55c26','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43817','20','1.3.6.1.2.1.25.1.1.0','10445','Uptime (hardware)','hp.server.hw.uptime[hrSystemUptime]','1m','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','8026a919077f4373adf774a18beb95eb','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43818','20','1.3.6.1.2.1.25.1.1.0','10446','Uptime (hardware)','hp.server.hw.uptime[hrSystemUptime]','1m','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','437a251079a44869ba9b11b2184d85e7','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43819','20','1.3.6.1.2.1.25.1.1.0','10256','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','02e21fa19e814d529ae24f89e3bbf947','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43820','20','1.3.6.1.2.1.25.1.1.0','10258','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','81e5ed7d945d40f780eb9bd872ea1832','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43821','20','1.3.6.1.2.1.25.1.1.0','10259','Uptime (hardware)','system.hw.uptime[hrSystemUptime.0]','30s','2w','0d','0','3','','uptime','','',NULL,NULL,'','','0','','','','','0',NULL,'MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','8b0320157a0144a0b2f1d7df7cbbe08a','UPTIME (HARDWARE)');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43925','21','','10529','Meraki: Get data','meraki.get.data','1h','0','0','0','4','','','','',NULL,NULL,'var params = JSON.parse(value);

var request = new HttpRequest();

request.addHeader(''X-Cisco-Meraki-API-Key:'' + params.token);

var response,
    error_msg = '''',
    organizations = [],
    devices = [];

function getHttpData(url) {
    response = request.get(url);
    Zabbix.log(4, ''[ Meraki API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

    if (response !== null) {
        try {
            response = JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from Meraki API. Check debug log for more information.'';
        }
    }

    if (request.getStatus() !== 200) {
        if (response.errors) {
            throw response.errors.join('', '');
        } else {
            throw ''Failed to receive data: invalid response status code.'';
        }
    }

    if (typeof (response) !== ''object'' || response === null) {
        throw ''Cannot process response data: received data is not an object.'';
    }

    return response;
};

try {

    if (params.token === ''{'' + ''$MERAKI.TOKEN}'') {
        throw ''Please change {'' + ''$MERAKI.TOKEN} macro with the proper value.'';
    }

    if (params.url.indexOf(''http://'') === -1 && params.url.indexOf(''https://'') === -1) {
        params.url = ''https://'' + params.url;
    }

    if (!params.url.endsWith(''/'')) {
        params.url += ''/'';
    }

    if (typeof params.httpproxy !==  ''undefined'' && params.httpproxy !== '''') {
        request.setProxy(params.httpproxy);
    }

    organizations = getHttpData(params.url + ''organizations'');

    if (Array.isArray(organizations) && organizations.length > 0) {
        for (i in organizations) {
            if (''id'' in organizations[i]) {
                organization_devices = getHttpData(params.url + ''organizations/'' + encodeURIComponent(organizations[i].id) + ''/devices'');

                if (Array.isArray(organization_devices) && organization_devices.length > 0) {
                    for (j in organization_devices) {
                        organization_devices[j].organizationId = organizations[i].id;

                        devices.push(organization_devices[j]);
                    }
                }
            }
        }
    }

} catch (error) {
    error_msg = error;
};

return JSON.stringify({
  ''organizations'': organizations,
  ''devices'': devices,
  ''error'': error_msg.toString()
});','','0','','','','','0',NULL,'Item for gathering all the organizations and devices from Meraki API.','0','30d','0','',NULL,'60s','','','','200','1','0','','0','0','0','0','0','0','0','d1a5f3c79a604bae98c314d2aed64ff4','MERAKI: GET DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43926','21','','10530','Meraki: Get device data','meraki.get.device','3m','0','0','0','4','','','','',NULL,NULL,'var params = JSON.parse(value);

var request = new HttpRequest();

request.addHeader(''X-Cisco-Meraki-API-Key:'' + params.token);

var response,
    error_msg = '''',
    device = [],
    uplinksLL = [];

function getHttpData(url) {
    response = request.get(url);
    Zabbix.log(4, ''[ Meraki API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

    if (response !== null) {
        try {
            response = JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from Meraki API. Check debug log for more information.'';
        }
    }

    if (request.getStatus() !== 200) {
        if (response.errors) {
            throw response.errors.join('', '');
        } else {
            throw ''Failed to receive data: invalid response status code.'';
        }
    }

    if (typeof (response) !== ''object'' || response === null) {
        throw ''Cannot process response data: received data is not an object.'';
    }

    return response;
};

try {

    if (params.token === ''{'' + ''$MERAKI.TOKEN}'') {
        throw ''Please change {'' + ''$MERAKI.TOKEN} macro with the proper value.'';
    }

    if (params.url.indexOf(''http://'') === -1 && params.url.indexOf(''https://'') === -1) {
        params.url = ''https://'' + params.url;
    }

    if (!params.url.endsWith(''/'')) {
        params.url += ''/'';
    }

    if (typeof params.httpproxy !==  ''undefined'' && params.httpproxy !== '''') {
        request.setProxy(params.httpproxy);
    }

    device = getHttpData(params.url + ''organizations/'' + encodeURIComponent(params.organizationId) + ''/devices/statuses?serials[]='' + encodeURIComponent(params.serial));
    uplinksLL = getHttpData(params.url + ''organizations/'' + encodeURIComponent(params.organizationId) + ''/devices/uplinksLossAndLatency?timespan=60'');

    if (uplinksLL.length > 0) {
        uplinks = uplinksLL.filter(function(device) {
            return device.serial == params.serial;
        });
    }

} catch (error) {
    error_msg = error;
};

return JSON.stringify({
    ''device'': device,
    ''uplinksLL'': uplinks,
    ''error'': error_msg.toString()
});','','0','','','','','0',NULL,'Item for gathering device data from Meraki API.','0','30d','0','',NULL,'60s','','','','200','1','0','','0','0','0','0','0','0','0','e4963b68cdde453f91767ff9e3a31d16','MERAKI: GET DEVICE DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43927','19','','10531','Meraki: Get list of adaptive policy aggregate statistics','meraki.get.adaptive.policy','20m','0','0','0','4','','','','',NULL,NULL,'','','0','','','','','0',NULL,'Item for adaptive policy aggregate statistics for an organization.','0','30d','0','',NULL,'30s','https://{$MERAKI.API.URL}/organizations/{$ID}/adaptivePolicy/overview','','','200','1','0','X-Cisco-Meraki-API-Key: {$MERAKI.TOKEN}','0','0','0','0','0','0','0','25f8f61ddf964f39b39cc38b23b017b9','MERAKI: GET LIST OF ADAPTIVE POLICY AGGREGATE STATISTICS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43928','19','','10531','Meraki: Get list of configuration changes','meraki.get.configuration.changes','{$MERAKI.CONFIG.CHANGE.TIMESPAN}','7d','0','0','4','','','','',NULL,NULL,'','','0','','','','','0',NULL,E'Item for viewing the Change Log for your organization.\\nGathering once per 20m by default.','0','30d','0','',NULL,'30s','https://{$MERAKI.API.URL}/organizations/{$ID}/configurationChanges?timespan={$MERAKI.CONFIG.CHANGE.TIMESPAN}','','','200','1','0','X-Cisco-Meraki-API-Key: {$MERAKI.TOKEN}','0','0','0','0','0','0','0','f2a65bce3adf4511a3f37ed4caa66b3d','MERAKI: GET LIST OF CONFIGURATION CHANGES');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43929','19','','10531','Meraki: Get licenses info','meraki.get.licenses','12h','0','0','0','4','','','','',NULL,NULL,'','','0','','','','','0',NULL,'Return an overview of the license state for an organization.','0','30d','0','',NULL,'30s','https://{$MERAKI.API.URL}/organizations/{$ID}/licenses/overview','','','200','1','0','X-Cisco-Meraki-API-Key: {$MERAKI.TOKEN}','0','0','0','0','0','0','0','3306da0ec0d749829db2f5f42e4e7876','MERAKI: GET LICENSES INFO');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43930','21','','10531','Meraki: Get list of the networks','meraki.get.networks','3m','0','0','0','4','','','','',NULL,NULL,'var params = JSON.parse(value);

var request = new HttpRequest();

request.addHeader(''X-Cisco-Meraki-API-Key:'' + params.token);

var response,
    error_msg = '''',
    networks = [],
    uplinks = [];

function getHttpData(url) {
    response = request.get(url);
    Zabbix.log(4, ''[ Meraki API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

    if (response !== null) {
        try {
            response = JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from Meraki API. Check debug log for more information.'';
        }
    }

    if (request.getStatus() !== 200) {
        if (response.errors) {
            throw response.errors.join('', '');
        } else {
            throw ''Failed to receive data: invalid response status code.'';
        }
    }

    if (typeof (response) !== ''object'' || response === null) {
        throw ''Cannot process response data: received data is not an object.'';
    }

    return response;
};

try {

    if (params.token === ''{'' + ''$MERAKI.TOKEN}'') {
        throw ''Please change {'' + ''$MERAKI.TOKEN} macro with the proper value.'';
    }

    if (params.url.indexOf(''http://'') === -1 && params.url.indexOf(''https://'') === -1) {
        params.url = ''https://'' + params.url;
    }

    if (!params.url.endsWith(''/'')) {
        params.url += ''/'';
    }

    if (typeof params.httpproxy !==  ''undefined'' && params.httpproxy !== '''') {
        request.setProxy(params.httpproxy);
    }

    networks = getHttpData(params.url + ''organizations/'' + encodeURIComponent(params.organizationId) + ''/networks'');

    responseUplinks = getHttpData(params.url + ''organizations/'' + encodeURIComponent(params.organizationId) + ''/appliance/uplink/statuses'');

    if (typeof responseUplinks !== ''undefined'' && Array.isArray(responseUplinks)) {
        for (var i in responseUplinks) {
            if (''networkId'' in responseUplinks[i] && typeof networks !== ''undefined'' && Array.isArray(networks)) {
                network = networks.filter(function (x) { return x.id == responseUplinks[i].networkId; });
            }

            if (typeof responseUplinks[i].uplinks !== ''undefined'' && Array.isArray(responseUplinks[i].uplinks)) {
                for (var p in responseUplinks[i].uplinks) {
                    if (typeof network[0].name !== ''undefined'') {
                        responseUplinks[i].uplinks[p].networkName = network[0].name;
                    }
                    if (typeof network[0].timeZone !== ''undefined'') {
                        responseUplinks[i].uplinks[p].timeZone = network[0].timeZone;
                    }
                    if (''highAvailability'' in responseUplinks[i] && ''role'' in responseUplinks[i].highAvailability) {
                        responseUplinks[i].uplinks[p].role = responseUplinks[i].highAvailability.role;
                    }
                    if (''serial'' in responseUplinks[i]) {
                        responseUplinks[i].uplinks[p].serial = responseUplinks[i].serial;
                    }

                    uplinks.push(responseUplinks[i].uplinks[p]);
                }
            }
        }
    }


} catch (error) {
    error_msg = error;
};

return JSON.stringify({
    ''uplinks'': uplinks,
    ''networks'': networks,
    ''error'': error_msg.toString()
});','','0','','','','','0',NULL,'Item for gathering all the networks of organization from Meraki API.','0','30d','0','',NULL,'30s','','','','200','1','0','','0','0','0','0','0','0','0','efe8853443d44eed8daeecee5ab9e481','MERAKI: GET LIST OF THE NETWORKS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43931','21','','10531','Meraki: Get list of the vpn stats','meraki.get.vpn.stats','3m','0','0','0','4','','','','',NULL,NULL,'var params = JSON.parse(value);

var request = new HttpRequest();

request.addHeader(''X-Cisco-Meraki-API-Key:'' + params.token);

var response,
    error_msg = '''',
    vpnStats = [],
    result = [];

function getHttpData(url) {
    response = request.get(url);
    Zabbix.log(4, ''[ Meraki API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

    if (response !== null) {
        try {
            response = JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from Meraki API. Check debug log for more information.'';
        }
    }

    if (request.getStatus() !== 200) {
        if (response.errors) {
            throw response.errors.join('', '');
        } else {
            throw ''Failed to receive data: invalid response status code.'';
        }
    }

    if (typeof (response) !== ''object'' || response === null) {
        throw ''Cannot process response data: received data is not an object.'';
    }

    return response;
};

try {

    if (params.token === ''{'' + ''$MERAKI.TOKEN}'') {
        throw ''Please change {'' + ''$MERAKI.TOKEN} macro with the proper value.'';
    }

    if (params.url.indexOf(''http://'') === -1 && params.url.indexOf(''https://'') === -1) {
        params.url = ''https://'' + params.url;
    }

    if (!params.url.endsWith(''/'')) {
        params.url += ''/'';
    }

    if (typeof params.httpproxy !==  ''undefined'' && params.httpproxy !== '''') {
        request.setProxy(params.httpproxy);
    }

    vpnStats = getHttpData(params.url + ''organizations/'' + encodeURIComponent(params.organizationId) + ''/appliance/vpn/stats'');

    for (i in vpnStats) {
        if (typeof vpnStats[i].merakiVpnPeers !== ''undefined'' && Array.isArray(vpnStats[i].merakiVpnPeers)) {
            for (u in vpnStats[i].merakiVpnPeers) {
                if (typeof vpnStats[i].merakiVpnPeers[u].latencySummaries !== ''undefined'' && Array.isArray(vpnStats[i].merakiVpnPeers[u].latencySummaries)) {
                    for (l in vpnStats[i].merakiVpnPeers[u].latencySummaries) {
                        result = vpnStats[i].merakiVpnPeers[u].latencySummaries.map(function (x) {

                            lps = vpnStats[i].merakiVpnPeers[u].lossPercentageSummaries.filter(function (y) { return y.senderUplink == x.senderUplink && y.receiverUplink == x.receiverUplink; });
                            js = vpnStats[i].merakiVpnPeers[u].jitterSummaries.filter(function (y) { return y.senderUplink == x.senderUplink && y.receiverUplink == x.receiverUplink; });
                            ms = vpnStats[i].merakiVpnPeers[u].mosSummaries.filter(function (y) { return y.senderUplink == x.senderUplink && y.receiverUplink == x.receiverUplink; });
                            Object.assign(x, lps[0], js[0], ms[0]);

                            if (''networkId'' in vpnStats[i]) {
                                x.networkId = vpnStats[i].networkId;
                            }
                            if (''networkName'' in vpnStats[i]) {
                                x.networkName = vpnStats[i].networkName;
                            }

                            if (''networkId'' in vpnStats[i].merakiVpnPeers[u]) {
                                x.peerNetworkId = vpnStats[i].merakiVpnPeers[u].networkId;
                            }
                            if (''networkName'' in vpnStats[i].merakiVpnPeers[u]) {
                                x.peerNetworkName = vpnStats[i].merakiVpnPeers[u].networkName;
                            }

                            return x;
                        });
                    }
                }
            }
        }
    }


} catch (error) {
    error_msg = error;
};

return JSON.stringify({
    ''vpnStats'': result,
    ''error'': error_msg.toString()
});','','0','','','','','0',NULL,'Item for gathering all the vpn stats of the organization.','0','30d','0','',NULL,'30s','','','','200','1','0','','0','0','0','0','0','0','0','bb653e6dba3f489494a7143b74fe8f4f','MERAKI: GET LIST OF THE VPN STATS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43971','21','','10534','AWS CloudWatch: Get instance alarms data','aws.ec2.get_alarms','0s;m/1','0','0','0','4','','','','',NULL,NULL,E'var AwsEc2 = {
   params: {},

   setParams: function (params) {
       [''access_key'', ''secret_key'', ''region'', ''instance_id''].forEach(function (field) {
           if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
               throw ''Required param is not set: "'' + field + ''".'';
           }
       });

       AwsEc2.params = params;
   },

   sign: function (key, message) {
       var hex = hmac(''sha256'', key, message);

       if ((hex.length % 2) === 1) {
           throw ''Invalid length of a hex string!'';
       }

       var result = new Int8Array(hex.length / 2);
       for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
           result[b] = parseInt(hex.substring(i, i + 2), 16);
       }

       return result;
   },

   prepareParams: function (params) {
       var result = [];

       Object.keys(params).sort().forEach(function (key) {
           if (typeof params[key] !== ''object'') {
               result.push(key + ''='' + encodeURIComponent(params[key]));
           }
           else {
               result.push(prepareObject(key, params[key]));
           }
       });

       return result.join(''&'');
   },

   request: function (method, region, service, params, data) {
       if (typeof data === ''undefined'' || data === null) {
           data = '''';
       }

       var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
           date = amzdate.replace(/T\\d+Z/, ''''),
           host = service + ''.'' + region + ''.amazonaws.com'',
           canonical_uri = ''/'',
           canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
           signed_headers = ''content-encoding;host;x-amz-date'',
           canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + params + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(data),
           credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
           request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
           key = AwsEc2.sign(''AWS4'' + AwsEc2.params.secret_key, date);

       key = AwsEc2.sign(key, region);
       key = AwsEc2.sign(key, service);
       key = AwsEc2.sign(key, ''aws4_request'');

       var request = new HttpRequest(),
           url = ''https://'' + host + canonical_uri + ''?'' + params;

       if (typeof AwsEc2.params.proxy !== ''undefined'' && AwsEc2.params.proxy !== '''') {
           request.setProxy(AwsEc2.params.proxy);
       }
       request.addHeader(''x-amz-date: '' + amzdate);
       request.addHeader(''Accept: application/json'');
       request.addHeader(''Content-Type: application/json'');
       request.addHeader(''Content-Encoding: amz-1.0'');
       request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsEc2.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

       Zabbix.log(4, ''[ AWS EC2  ] Sending request: '' + url);

       response = request.get(url);

       Zabbix.log(4, ''[ AWS EC2 ] Received response with status code '' + request.getStatus() + '': '' + response);

       if (request.getStatus() !== 200) {
           throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
       }

       if (response[0] === ''<'') {
           try {
               response = XML.toJson(response);
           }
           catch (error) {
               throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
           }
       }

       if (response !== null) {
           try {
               response = JSON.parse(response);
           }
           catch (error) {
               throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
           }
       }

       return response;
   },
   getVolumes: function () {
       var payload = {},
           result = [];

       payload[''Action''] = ''DescribeVolumes'',
           payload[''MaxResults''] = 100,
           payload[''Version''] = ''2016-11-15'',
           payload[''Filter.1.Name''] = ''attachment.instance-id'',
           payload[''Filter.1.Value''] = AwsEc2.params.instance_id;

       while (payload.NextToken !== '''') {
           var volumes = AwsEc2.request(''GET'', AwsEc2.params.region, ''ec2'', AwsEc2.prepareParams(payload));
           if (typeof volumes !== ''object''
               || typeof volumes.DescribeVolumesResponse !== ''object''
               || typeof volumes.DescribeVolumesResponse.volumeSet !== ''object''
               || typeof volumes.DescribeVolumesResponse.volumeSet.item !== ''object'') {
               throw ''Cannot get metrics data from AWS EC2 API. Check debug log for more information.'';
           }
           payload.NextToken = volumes.DescribeVolumesResponse.NextToken || '''';
           if (!Array.isArray(volumes.DescribeVolumesResponse.volumeSet.item))
               volumes.DescribeVolumesResponse.volumeSet.item = [volumes.DescribeVolumesResponse.volumeSet.item]
           volumes.DescribeVolumesResponse.volumeSet.item.forEach(function (volume) {
               result.push(volume.volumeId)
           });
       }

       return result;
   },
   getAlarms: function () {
       var payload = {},
           result = [],
           volumes = AwsEc2.getVolumes()

       payload[''Action''] = ''DescribeAlarms'';
       payload[''MaxRecords''] = 100;
       payload[''Version''] = ''2010-08-01'';

       while (payload.NextToken !== '''') {
           var alarms = AwsEc2.request(''GET'', AwsEc2.params.region, ''monitoring'', AwsEc2.prepareParams(payload));

           if (typeof alarms !== ''object''
               || typeof alarms.DescribeAlarmsResponse !== ''object''
               || typeof alarms.DescribeAlarmsResponse.DescribeAlarmsResult !== ''object''
               || typeof alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms !== ''object'') {
               throw ''Cannot get alarms from AWS CloudWatch API. Check debug log for more information.'';
           }

           payload.NextToken = alarms.DescribeAlarmsResponse.DescribeAlarmsResult.NextToken || '''';

           if (!Array.isArray(alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms))
               alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms = [alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms]
           alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms.forEach(function (alarm) {
               var dimensions = alarm.Dimensions;

               if (Array.isArray(alarm.Metrics)) {
                   alarm.Metrics.forEach(function (metric) {
                       if (typeof metric.MetricStat === ''object'' && metric.MetricStat !== null
                           && typeof metric.MetricStat.Metric === ''object'' && metric.MetricStat.Metric !== null
                           && Array.isArray(metric.MetricStat.Metric.Dimensions)) {
                           dimensions = dimensions.concat(metric.MetricStat.Metric.Dimensions);
                       }
                   });
               }
               for (var i in dimensions) {
                   if (dimensions[i].Name === ''InstanceId'' && dimensions[i].Value === AwsEc2.params.instance_id) {
                       result.push(alarm);
                       break;
                   }
                   if (dimensions[i].Name === ''VolumeId'' && volumes.indexOf(dimensions[i].Value)) {
                       result.push(alarm);
                       break;
                   }
               }
           });
       }

       return result;
   }
 }

 try {
     AwsEc2.setParams(JSON.parse(value));

     return JSON.stringify(AwsEc2.getAlarms());
 }
 catch (error) {
     error += (String(error).endsWith(''.'')) ? '''' : ''.'';
     Zabbix.log(3, ''[ AWS EC2 ] ERROR: '' + error);

     return JSON.stringify({ ''error'': error });
 }','','0','','','','','0',NULL,'DescribeAlarms API method: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html','0','30d','0','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','4e0b2ed29500487092148b14245839d4','AWS CLOUDWATCH: GET INSTANCE ALARMS DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43972','21','','10534','AWS EC2: Get metrics data','aws.ec2.get_metrics','0s;m/5','0','0','0','4','','','','',NULL,NULL,E'var AwsEc2 = {
      params: {},
      request_period: 600,

      setParams: function (params) {
          [''access_key'', ''secret_key'', ''region'', ''instance_id''].forEach(function (field) {
              if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                  throw ''Required param is not set: "'' + field + ''".'';
              }
          });

          AwsEc2.params = params;
      },

      sign: function (key, message) {
          var hex = hmac(''sha256'', key, message);

          if ((hex.length % 2) === 1) {
              throw ''Invalid length of a hex string!'';
          }

          var result = new Int8Array(hex.length / 2);
          for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
              result[b] = parseInt(hex.substring(i, i + 2), 16);
          }

          return result;
      },

      prepareRecursive: function (prefix, param) {
          var result = {};

          if (typeof param === ''object'') {
              if (Array.isArray(param)) {
                  param.forEach(function (value, index) {
                      var nested = AwsEc2.prepareRecursive(prefix + ''.member.'' + (index + 1), value);
                      Object.keys(nested).forEach(function (key) {
                          result[key] = nested[key];
                      });
                  });
              }
              else {
                  Object.keys(param).forEach(function (k) {
                      var nested = AwsEc2.prepareRecursive(prefix + ''.'' + k, param[k]);
                      Object.keys(nested).forEach(function (key) {
                          result[key] = nested[key];
                      });
                  });
              }
          }
          else {
              result[prefix] = param;
          }

          return result;
      },

      renderPayload: function (period, instance_id) {
          var metrics_list = [
              ''StatusCheckFailed:Count'',
              ''StatusCheckFailed_Instance:Count'',
              ''StatusCheckFailed_System:Count'',
              ''CPUUtilization:Percent'',
              ''NetworkIn:Bytes'',
              ''NetworkOut:Bytes'',
              ''NetworkPacketsIn:Count'',
              ''NetworkPacketsOut:Count'',
              ''DiskReadOps:Count'',
              ''DiskWriteOps:Count'',
              ''DiskReadBytes:Bytes'',
              ''DiskWriteBytes:Bytes'',
              ''MetadataNoToken:Count'',
              ''CPUCreditUsage:Count'',
              ''CPUCreditBalance:Count'',
              ''CPUSurplusCreditBalance:Count'',
              ''CPUSurplusCreditsCharged:Count'',
              ''EBSReadOps:Count'',
              ''EBSWriteOps:Count'',
              ''EBSReadBytes:Bytes'',
              ''EBSWriteBytes:Bytes'',
              ''EBSIOBalance %:Percent'',
              ''EBSByteBalance %:Percent''
          ];

          var metric_payload = [];
          metrics_list.forEach(function (metric) {
              var parts = metric.split('':'', 2);
              var name = parts[0].replace(/[^a-zA-Z0-9]/g, '''');
              metric_payload.push({
                  ''Id'': name.charAt(0).toLowerCase() + name.slice(1),
                  ''MetricStat'': {
                      ''Metric'': {
                          ''MetricName'': parts[0],
                          ''Namespace'': ''AWS/EC2'',
                          ''Dimensions'': [
                              {
                                  ''Name'': ''InstanceId'',
                                  ''Value'': instance_id
                              }
                          ]
                      },
                      ''Period'': period,
                      ''Stat'': ''Average'',
                      ''Unit'': parts[1]
                  }
              });
          });

          return metric_payload;
      },

      prepareParams: function (params) {
          var result = [];

          Object.keys(params).sort().forEach(function (key) {
              if (typeof params[key] !== ''object'') {
                  result.push(key + ''='' + encodeURIComponent(params[key]));
              }
              else {
                  result.push(prepareObject(key, params[key]));
              }
          });

          return result.join(''&'');
      },

      request: function (method, region, service, params, data) {
          if (typeof data === ''undefined'' || data === null) {
              data = '''';
          }

          var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
              date = amzdate.replace(/T\\d+Z/, ''''),
              host = service + ''.'' + region + ''.amazonaws.com'',
              canonical_uri = ''/'',
              canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
              signed_headers = ''content-encoding;host;x-amz-date'',
              canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + params + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(data),
              credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
              request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
              key = AwsEc2.sign(''AWS4'' + AwsEc2.params.secret_key, date);

          key = AwsEc2.sign(key, region);
          key = AwsEc2.sign(key, service);
          key = AwsEc2.sign(key, ''aws4_request'');

          var request = new HttpRequest(),
              url = ''https://'' + host + canonical_uri + ''?'' + params;

          if (typeof AwsEc2.params.proxy !== ''undefined'' && AwsEc2.params.proxy !== '''') {
              request.setProxy(AwsEc2.params.proxy);
          }
          request.addHeader(''x-amz-date: '' + amzdate);
          request.addHeader(''Accept: application/json'');
          request.addHeader(''Content-Type: application/json'');
          request.addHeader(''Content-Encoding: amz-1.0'');
          request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsEc2.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

          Zabbix.log(4, ''[ AWS EC2  ] Sending request: '' + url);

          response = request.get(url);

          Zabbix.log(4, ''[ AWS EC2 ] Received response with status code '' + request.getStatus() + '': '' + response);

          if (request.getStatus() !== 200) {
              throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
          }

          if (response !== null) {
              try {
                  response = JSON.parse(response);
              }
              catch (error) {
                  throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
              }
          }

          return response;
      },

      getMetricsData: function () {
          var timestamp = new Date().getTime(),
              end_time = new Date(timestamp).toISOString().replace(/\\.\\d+Z/, ''Z''),
              start_time = new Date(timestamp - AwsEc2.request_period * 1000).toISOString().replace(/\\.\\d+Z/, ''Z''),
              payload = AwsEc2.prepareRecursive(''MetricDataQueries'', AwsEc2.renderPayload(AwsEc2.request_period, AwsEc2.params.instance_id));

          payload[''Action''] = ''GetMetricData'';
          payload[''Version''] = ''2010-08-01'';
          payload[''StartTime''] = start_time;
          payload[''EndTime''] = end_time;
          payload[''ScanBy''] = ''TimestampDescending'';

          result = AwsEc2.request(''GET'', AwsEc2.params.region, ''monitoring'', AwsEc2.prepareParams(payload));

          if (typeof result !== ''object''
                  || typeof result.GetMetricDataResponse !== ''object''
                  || typeof result.GetMetricDataResponse.GetMetricDataResult !== ''object''
                  || typeof result.GetMetricDataResponse.GetMetricDataResult.MetricDataResults !== ''object'') {
              throw ''Cannot get metrics data from AWS CloudWatch API. Check debug log for more information.'';
          }

          return result.GetMetricDataResponse.GetMetricDataResult.MetricDataResults;
      }
  };

  try {
      AwsEc2.setParams(JSON.parse(value));

      return JSON.stringify(AwsEc2.getMetricsData());
  }
  catch (error) {
      error += (String(error).endsWith(''.'')) ? '''' : ''.'';
      Zabbix.log(3, ''[ AWS EC2 ] ERROR: '' + error);

      return JSON.stringify({''error'': error});
  }','','0','','','','','0',NULL,'Get instance metrics.
Full metrics list related to EC2: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/viewing_metrics_with_cloudwatch.html','0','30d','0','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','63ab011505f24885b843a9ac48b36a84','AWS EC2: GET METRICS DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('43973','21','','10534','AWS EBS: Get volumes data','aws.ec2.get_volumes','5m','0','0','0','4','','','','',NULL,NULL,E'var AwsEbs = {
    params: {},
    request_period: 600,

    setParams: function (params) {
        [''access_key'', ''secret_key'', ''region'', ''instance_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: "'' + field + ''".'';
            }
        });

        AwsEbs.params = params;
    },

    sign: function (key, message) {
        var hex = hmac(''sha256'', key, message);

        if ((hex.length % 2) === 1) {
            throw ''Invalid length of a hex string!'';
        }

        var result = new Int8Array(hex.length / 2);
        for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
            result[b] = parseInt(hex.substring(i, i + 2), 16);
        }

        return result;
    },

    prepareParams: function (params) {
        var result = [];

        Object.keys(params).sort().forEach(function (key) {
            if (typeof params[key] !== ''object'') {
                result.push(key + ''='' + encodeURIComponent(params[key]));
            }
            else {
                result.push(prepareObject(key, params[key]));
            }
        });

        return result.join(''&'');
    },

    request: function (method, region, service, params, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
            date = amzdate.replace(/T\\d+Z/, ''''),
            host = service + ''.'' + region + ''.amazonaws.com'',
            canonical_uri = ''/'',
            canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
            signed_headers = ''content-encoding;host;x-amz-date'',
            canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + params + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(data),
            credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
            request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
            key = AwsEbs.sign(''AWS4'' + AwsEbs.params.secret_key, date);

        key = AwsEbs.sign(key, region);
        key = AwsEbs.sign(key, service);
        key = AwsEbs.sign(key, ''aws4_request'');

        var request = new HttpRequest(),
            url = ''https://'' + host + canonical_uri + ''?'' + params;

        if (typeof AwsEbs.params.proxy !== ''undefined'' && AwsEbs.params.proxy !== '''') {
            request.setProxy(AwsEbs.params.proxy);
        }
        request.addHeader(''x-amz-date: '' + amzdate);
        request.addHeader(''Accept: application/json'');
        request.addHeader(''Content-Type: application/json'');
        request.addHeader(''Content-Encoding: amz-1.0'');
        request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsEbs.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

        Zabbix.log(4, ''[ AWS EBS ] Sending request: '' + url);

        response = request.get(url);

        Zabbix.log(4, ''[ AWS EBS ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        if (response !== null) {
            try {
                response = XML.toJson(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
            }
        }
        response = JSON.parse(response)

        return response;
    },


    getVolumesData: function () {
          var payload = {},
              volumes_list = [],
              result = [];

          payload[''Action''] = ''DescribeVolumes'',
              payload[''MaxResults''] = 100,
              payload[''Version''] = ''2016-11-15'',
              payload[''Filter.1.Name''] = ''attachment.instance-id'',
              payload[''Filter.1.Value''] = AwsEbs.params.instance_id;

          while (payload.NextToken !== '''') {
              var volumes = AwsEbs.request(''GET'', AwsEbs.params.region, ''ec2'', AwsEbs.prepareParams(payload));
              if (typeof result !== ''object''
                  || typeof volumes.DescribeVolumesResponse !== ''object''
                  || typeof volumes.DescribeVolumesResponse.volumeSet !== ''object''
                  || typeof volumes.DescribeVolumesResponse.volumeSet.item !== ''object'') {
                  throw ''Cannot get metrics data from AWS EC2 API. Check debug log for more information.'';
              }
              payload.NextToken = volumes.DescribeVolumesResponse.NextToken || '''';
              volumes_list = volumes.DescribeVolumesResponse.volumeSet.item

              if (typeof volumes_list === ''object''
                  && volumes_list !== null
                  && !Array.isArray(volumes_list)) {
                  volumes_list = [volumes_list];
              }

          }

          return volumes_list;
      }
  };

try {
    AwsEbs.setParams(JSON.parse(value));

    return JSON.stringify(AwsEbs.getVolumesData());
}
catch (error) {
    error += (String(error).endsWith(''.'')) ? '''' : ''.'';
    Zabbix.log(3, ''[ AWS EBS ] ERROR: '' + error);

    return JSON.stringify({ ''error'': error });
}','','0','','','','','0',NULL,'Get volumes attached to instance.
DescribeVolumes API method: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVolumes.html','0','30d','0','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','9ec4650b564c41bca9893eca279a8cc7','AWS EBS: GET VOLUMES DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44002','21','','10534','AWS EBS: ["{#VOLUME_ID}"]: Get metrics','aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]','0s;m/5','0','0','0','4','','','','',NULL,NULL,E'var AwsEbs = {
    params: {},
    request_period: 600,

    setParams: function (params) {
        [''access_key'', ''secret_key'', ''region'', ''volume_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: "'' + field + ''".'';
            }
        });

        AwsEbs.params = params;
    },

    sign: function (key, message) {
        var hex = hmac(''sha256'', key, message);

        if ((hex.length % 2) === 1) {
            throw ''Invalid length of a hex string!'';
        }

        var result = new Int8Array(hex.length / 2);
        for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
            result[b] = parseInt(hex.substring(i, i + 2), 16);
        }

        return result;
    },

    prepareRecursive: function (prefix, param) {
        var result = {};

        if (typeof param === ''object'') {
            if (Array.isArray(param)) {
                param.forEach(function (value, index) {
                    var nested = AwsEbs.prepareRecursive(prefix + ''.member.'' + (index + 1), value);
                    Object.keys(nested).forEach(function (key) {
                        result[key] = nested[key];
                    });
                });
            }
            else {
                Object.keys(param).forEach(function (k) {
                    var nested = AwsEbs.prepareRecursive(prefix + ''.'' + k, param[k]);
                    Object.keys(nested).forEach(function (key) {
                        result[key] = nested[key];
                    });
                });
            }
        }
        else {
            result[prefix] = param;
        }

        return result;
    },

    renderPayload: function (period, volume_id) {
        var metrics_list = [
            ''VolumeReadBytes:Bytes'',
            ''VolumeWriteBytes:Bytes'',
            ''VolumeReadOps:Count'',
            ''VolumeWriteOps:Count'',
            ''VolumeTotalReadTime:Seconds'',
            ''VolumeTotalWriteTime:Seconds'',
            ''VolumeIdleTime:Seconds'',
            ''VolumeQueueLength:Count'',
            ''VolumeThroughputPercentage:Percent'',
            ''VolumeConsumedReadWriteOps:Count'',
            ''BurstBalance:Percent''
        ];

        var metric_payload = [];
        metrics_list.forEach(function (metric) {
            var parts = metric.split('':'', 2);
            var name = parts[0].replace(/[^a-zA-Z0-9]/g, '''');
            metric_payload.push({
                ''Id'': name.charAt(0).toLowerCase() + name.slice(1),
                ''MetricStat'': {
                    ''Metric'': {
                        ''MetricName'': parts[0],
                        ''Namespace'': ''AWS/EBS'',
                        ''Dimensions'': [
                            {
                                ''Name'': ''VolumeId'',
                                ''Value'': volume_id
                            }
                        ]
                    },
                    ''Period'': period,
                    ''Stat'': ''Average'',
                    ''Unit'': parts[1]
                }
            });
        });

        return metric_payload;
    },

    prepareParams: function (params) {
        var result = [];

        Object.keys(params).sort().forEach(function (key) {
            if (typeof params[key] !== ''object'') {
                result.push(key + ''='' + encodeURIComponent(params[key]));
            }
            else {
                result.push(prepareObject(key, params[key]));
            }
        });

        return result.join(''&'');
    },

    request: function (method, region, service, params, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
            date = amzdate.replace(/T\\d+Z/, ''''),
            host = service + ''.'' + region + ''.amazonaws.com'',
            canonical_uri = ''/'',
            canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
            signed_headers = ''content-encoding;host;x-amz-date'',
            canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + params + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(data),
            credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
            request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
            key = AwsEbs.sign(''AWS4'' + AwsEbs.params.secret_key, date);

        key = AwsEbs.sign(key, region);
        key = AwsEbs.sign(key, service);
        key = AwsEbs.sign(key, ''aws4_request'');

        var request = new HttpRequest(),
            url = ''https://'' + host + canonical_uri + ''?'' + params;

        if (typeof AwsEbs.params.proxy !== ''undefined'' && AwsEbs.params.proxy !== '''') {
            request.setProxy(AwsEbs.params.proxy);
        }
        request.addHeader(''x-amz-date: '' + amzdate);
        request.addHeader(''Accept: application/json'');
        request.addHeader(''Content-Type: application/json'');
        request.addHeader(''Content-Encoding: amz-1.0'');
        request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsEbs.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

        Zabbix.log(4, ''[ AWS EBS ] Sending request: '' + url);

        response = request.get(url);

        Zabbix.log(4, ''[ AWS EBS ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        if (response !== null) {
            try {
                response = JSON.parse(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
            }
        }

        return response;
    },

    getMetricsData: function () {
        var timestamp = new Date().getTime(),
            end_time = new Date(timestamp).toISOString().replace(/\\.\\d+Z/, ''Z''),
            start_time = new Date(timestamp - AwsEbs.request_period * 1000).toISOString().replace(/\\.\\d+Z/, ''Z''),
            payload = AwsEbs.prepareRecursive(''MetricDataQueries'', AwsEbs.renderPayload(AwsEbs.request_period, AwsEbs.params.volume_id));

        payload[''Action''] = ''GetMetricData'';
        payload[''Version''] = ''2010-08-01'';
        payload[''StartTime''] = start_time;
        payload[''EndTime''] = end_time;
        payload[''ScanBy''] = ''TimestampDescending'';

        result = AwsEbs.request(''GET'', AwsEbs.params.region, ''monitoring'', AwsEbs.prepareParams(payload));

        if (typeof result !== ''object''
                || typeof result.GetMetricDataResponse !== ''object''
                || typeof result.GetMetricDataResponse.GetMetricDataResult !== ''object''
                || typeof result.GetMetricDataResponse.GetMetricDataResult.MetricDataResults !== ''object'') {
            throw ''Cannot get metrics data from AWS CloudWatch API. Check debug log for more information.'';
        }

        return result.GetMetricDataResponse.GetMetricDataResult.MetricDataResults;
    }
};

try {
    AwsEbs.setParams(JSON.parse(value));

    return JSON.stringify(AwsEbs.getMetricsData());
}
catch (error) {
    error += (String(error).endsWith(''.'')) ? '''' : ''.'';
    Zabbix.log(3, ''[ AWS EBS ] ERROR: '' + error);

    return JSON.stringify({''error'': error});
}','','0','','','','','2',NULL,'Get metrics of EBS volume.
Full metrics list related to EBS: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cloudwatch_ebs.html','0','30d','0','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','8b3b008f7f65408fbd49e46186b01cfb','AWS EBS: ["{#VOLUME_ID}"]: GET METRICS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44021','21','','10535','AWS CloudWatch: Get instance alarms data','aws.rds.get_alarms','0s;m/1','0','0','0','4','','','','',NULL,NULL,E'var AwsRds = {
    params: {},

    setParams: function (params) {
        [''access_key'', ''secret_key'', ''region'', ''db_instance_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: "'' + field + ''".'';
            }
        });

        AwsRds.params = params;
    },

    sign: function (key, message) {
        var hex = hmac(''sha256'', key, message);

        if ((hex.length % 2) === 1) {
            throw ''Invalid length of a hex string!'';
        }

        var result = new Int8Array(hex.length / 2);
        for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
            result[b] = parseInt(hex.substring(i, i + 2), 16);
        }

        return result;
    },

    prepareParams: function (params) {
        var result = [];

        Object.keys(params).sort().forEach(function (key) {
            if (typeof params[key] !== ''object'') {
                result.push(key + ''='' + encodeURIComponent(params[key]));
            }
            else {
                result.push(prepareObject(key, params[key]));
            }
        });

        return result.join(''&'');
    },

    request: function (method, region, service, params, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
            date = amzdate.replace(/T\\d+Z/, ''''),
            host = service + ''.'' + region + ''.amazonaws.com'',
            canonical_uri = ''/'',
            canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
            signed_headers = ''content-encoding;host;x-amz-date'',
            canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + params + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(data),
            credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
            request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
            key = AwsRds.sign(''AWS4'' + AwsRds.params.secret_key, date);

        key = AwsRds.sign(key, region);
        key = AwsRds.sign(key, service);
        key = AwsRds.sign(key, ''aws4_request'');

        var request = new HttpRequest(),
            url = ''https://'' + host + canonical_uri + ''?'' + params;

        if (typeof AwsRds.params.proxy !== ''undefined'' && AwsRds.params.proxy !== '''') {
            request.setProxy(AwsRds.params.proxy);
        }
        request.addHeader(''x-amz-date: '' + amzdate);
        request.addHeader(''Accept: application/json'');
        request.addHeader(''Content-Type: application/json'');
        request.addHeader(''Content-Encoding: amz-1.0'');
        request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsRds.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

        Zabbix.log(4, ''[ AWS RDS ] Sending request: '' + url);

        response = request.get(url);

        Zabbix.log(4, ''[ AWS RDS ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        if (response[0] === ''<'') {
            try {
                response = XML.toJson(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
            }
        }

        if (response !== null) {
            try {
                response = JSON.parse(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
            }
        }

        return response;
    },

    getAlarms: function () {
        var payload = {},
            result = [];

        payload[''Action''] = ''DescribeAlarms'';
        payload[''MaxRecords''] = 100;
        payload[''Version''] = ''2010-08-01'';

        while (payload.NextToken !== '''') {
            var alarms = AwsRds.request(''GET'', AwsRds.params.region, ''monitoring'', AwsRds.prepareParams(payload));

            if (typeof alarms !== ''object''
                || typeof alarms.DescribeAlarmsResponse !== ''object''
                || typeof alarms.DescribeAlarmsResponse.DescribeAlarmsResult !== ''object''
                || typeof alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms !== ''object'') {
                throw ''Cannot get alarms from AWS CloudWatch API. Check debug log for more information.'';
            }

            payload.NextToken = alarms.DescribeAlarmsResponse.DescribeAlarmsResult.NextToken || '''';

            if (!Array.isArray(alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms))
                alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms = [alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms]
            alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms.forEach(function (alarm) {
                var dimensions = alarm.Dimensions;

                if (Array.isArray(alarm.Metrics)) {
                    alarm.Metrics.forEach(function (metric) {
                        if (typeof metric.MetricStat === ''object'' && metric.MetricStat !== null
                            && typeof metric.MetricStat.Metric === ''object'' && metric.MetricStat.Metric !== null
                            && Array.isArray(metric.MetricStat.Metric.Dimensions)) {
                            dimensions = dimensions.concat(metric.MetricStat.Metric.Dimensions);
                        }
                    });
                }
                for (var i in dimensions) {
                    if (dimensions[i].Name === ''DBInstanceIdentifier'' && dimensions[i].Value === AwsRds.params.db_instance_id) {
                        result.push(alarm);
                        break;
                    }
                }
            });
        }

        return result;
    }
}

try {
    AwsRds.setParams(JSON.parse(value));

    return JSON.stringify(AwsRds.getAlarms());
}
catch (error) {
    error += (String(error).endsWith(''.'')) ? '''' : ''.'';
    Zabbix.log(3, ''[ AWS RDS ] ERROR: '' + error);

    return JSON.stringify({ ''error'': error });
}','','0','','','','','0',NULL,'DescribeAlarms API method: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html','0','30d','0','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','a2f85e777eae4fe789446de21136c510','AWS CLOUDWATCH: GET INSTANCE ALARMS DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44022','21','','10535','AWS RDS: Get instance events data','aws.rds.get_events','0s;m/10','0','0','0','4','','','','',NULL,NULL,E'var AwsRds = {
    params: {},

    setParams: function (params) {
        [''access_key'', ''secret_key'', ''region'', ''db_instance_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: "'' + field + ''".'';
            }
        });

        AwsRds.params = params;
    },

    sign: function (key, message) {
        var hex = hmac(''sha256'', key, message);

        if ((hex.length % 2) === 1) {
            throw ''Invalid length of a hex string!'';
        }

        var result = new Int8Array(hex.length / 2);
        for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
            result[b] = parseInt(hex.substring(i, i + 2), 16);
        }

        return result;
    },

    prepareParams: function (params) {
        var result = [];

        Object.keys(params).sort().forEach(function (key) {
            if (typeof params[key] !== ''object'') {
                result.push(key + ''='' + encodeURIComponent(params[key]));
            }
            else {
                result.push(prepareObject(key, params[key]));
            }
        });

        return result.join(''&'');
    },

    request: function (method, region, service, params, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
            date = amzdate.replace(/T\\d+Z/, ''''),
            host = service + ''.'' + region + ''.amazonaws.com'',
            canonical_uri = ''/'',
            canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
            signed_headers = ''content-encoding;host;x-amz-date'',
            canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + params + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(data),
            credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
            request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
            key = AwsRds.sign(''AWS4'' + AwsRds.params.secret_key, date);

        key = AwsRds.sign(key, region);
        key = AwsRds.sign(key, service);
        key = AwsRds.sign(key, ''aws4_request'');

        var request = new HttpRequest(),
            url = ''https://'' + host + canonical_uri + ''?'' + params;

        if (typeof AwsRds.params.proxy !== ''undefined'' && AwsRds.params.proxy !== '''') {
            request.setProxy(AwsRds.params.proxy);
        }
        request.addHeader(''x-amz-date: '' + amzdate);
        request.addHeader(''Accept: application/json'');
        request.addHeader(''Content-Type: application/json'');
        request.addHeader(''Content-Encoding: amz-1.0'');
        request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsRds.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

        Zabbix.log(4, ''[ AWS RDS ] Sending request: '' + url);

        response = request.get(url);

        Zabbix.log(4, ''[ AWS RDS ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        if (response[0] === ''<'') {
            try {
                response = XML.toJson(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS RDS API. Check debug log for more information.'';
            }
        }

        if (response !== null) {
            try {
                response = JSON.parse(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS RDS API. Check debug log for more information.'';
            }
        }

        return response;
    },

    getEvents: function () {
        var payload = {},
            result = [];

        payload[''Action''] = ''DescribeEvents'';
        payload[''MaxRecords''] = 100;
        payload[''Version''] = ''2014-09-01'';
        payload[''Duration''] = 30;
        payload[''SourceType''] = ''db-instance'';
        payload[''SourceIdentifier''] = AwsRds.params.db_instance_id;

        while (payload.NextToken !== '''') {
            var events = AwsRds.request(''GET'', AwsRds.params.region, ''rds'', AwsRds.prepareParams(payload));

            if (typeof events !== ''object''
                || typeof events.DescribeEventsResponse !== ''object''
                || typeof events.DescribeEventsResponse.DescribeEventsResult !== ''object''
                || typeof events.DescribeEventsResponse.DescribeEventsResult.Events !== ''object'') {
                throw ''Cannot get events from AWS RDS API. Check debug log for more information.'';
            }

            if (!Array.isArray(events.DescribeEventsResponse.DescribeEventsResult.Events))
                events.DescribeEventsResponse.DescribeEventsResult.Events = [events.DescribeEventsResponse.DescribeEventsResult.Events]
            events.DescribeEventsResponse.DescribeEventsResult.Events.forEach(function (event) {
                event.EventCategories = event.EventCategories.toString()
                result.push(event)
            });
            payload.NextToken = events.DescribeEventsResponse.DescribeEventsResult.NextToken || '''';

        };

        return result;
        }
      }

    try {
        AwsRds.setParams(JSON.parse(value));

        return JSON.stringify(AwsRds.getEvents());
      }
    catch (error) {
        error += (String(error).endsWith(''.'')) ? '''' : ''.'';
        Zabbix.log(3, ''[ AWS RDS ] ERROR: '' + error);

        return JSON.stringify({ ''error'': error });
    }','','0','','','','','0',NULL,'DescribeEvents API method: https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeEvents.html','0','30d','0','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','f0d1041fa09d4ba38c9d0b39c4b76b0b','AWS RDS: GET INSTANCE EVENTS DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44023','21','','10535','AWS RDS: Get instance info','aws.rds.get_instance_info','5m','0','0','0','4','','','','',NULL,NULL,E'var AwsRds = {
    params: {},
    request_period: 600,

    setParams: function (params) {
        [''access_key'', ''secret_key'', ''region'', ''db_instance_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: "'' + field + ''".'';
            }
        });

        AwsRds.params = params;
    },

    sign: function (key, message) {
        var hex = hmac(''sha256'', key, message);

        if ((hex.length % 2) === 1) {
            throw ''Invalid length of a hex string!'';
        }

        var result = new Int8Array(hex.length / 2);
        for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
            result[b] = parseInt(hex.substring(i, i + 2), 16);
        }

        return result;
    },

    prepareParams: function (params) {
        var result = [];

        Object.keys(params).sort().forEach(function (key) {
            if (typeof params[key] !== ''object'') {
                result.push(key + ''='' + encodeURIComponent(params[key]));
            }
            else {
                result.push(prepareObject(key, params[key]));
            }
        });

        return result.join(''&'');
    },

    request: function (method, region, service, params, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
            date = amzdate.replace(/T\\d+Z/, ''''),
            host = service + ''.'' + region + ''.amazonaws.com'',
            canonical_uri = ''/'',
            canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
            signed_headers = ''content-encoding;host;x-amz-date'',
            canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + params + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(data),
            credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
            request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
            key = AwsRds.sign(''AWS4'' + AwsRds.params.secret_key, date);

        key = AwsRds.sign(key, region);
        key = AwsRds.sign(key, service);
        key = AwsRds.sign(key, ''aws4_request'');

        var request = new HttpRequest(),
            url = ''https://'' + host + canonical_uri + ''?'' + params;

        if (typeof AwsRds.params.proxy !== ''undefined'' && AwsRds.params.proxy !== '''') {
            request.setProxy(AwsRds.params.proxy);
        }
        request.addHeader(''x-amz-date: '' + amzdate);
        request.addHeader(''Accept: application/json'');
        request.addHeader(''Content-Type: application/json'');
        request.addHeader(''Content-Encoding: amz-1.0'');
        request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsRds.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

        Zabbix.log(4, ''[ AWS RDS ] Sending request: '' + url);

        response = request.get(url);

        Zabbix.log(4, ''[ AWS RDS ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        if (response !== null) {
            try {
                response = JSON.parse(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS RDS API. Check debug log for more information.'';
            }
        }
        return response;
    },

    getInstanceData: function () {
        var payload = {};

        payload[''Action''] = ''DescribeDBInstances'',
            payload[''Version''] = ''2014-10-31'',
            payload[''DBInstanceIdentifier''] = AwsRds.params.db_instance_id;

        result = AwsRds.request(''GET'', AwsRds.params.region, ''rds'', AwsRds.prepareParams(payload));
        if (typeof result !== ''object''
            || typeof result.DescribeDBInstancesResponse !== ''object''
            || typeof result.DescribeDBInstancesResponse.DescribeDBInstancesResult !== ''object''
            || typeof result.DescribeDBInstancesResponse.DescribeDBInstancesResult.DBInstances !== ''object'') {
            throw ''Cannot get metrics data from AWS RDS API. Check debug log for more information.'';
        }

        return result.DescribeDBInstancesResponse.DescribeDBInstancesResult.DBInstances;
    }
};

try {
    AwsRds.setParams(JSON.parse(value));

    return JSON.stringify(AwsRds.getInstanceData());
}
catch (error) {
    error += (String(error).endsWith(''.'')) ? '''' : ''.'';
    Zabbix.log(3, ''[ AWS RDS ] ERROR: '' + error);
    return JSON.stringify({ ''error'': error });
}','','0','','','','','0',NULL,'Get instance info.
DescribeDBInstances API method: https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBInstances.html','0','30d','0','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','85ac4a5313994e0f94fe6480d3c85193','AWS RDS: GET INSTANCE INFO');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44024','21','','10535','AWS RDS: Get metrics data','aws.rds.get_metrics','0s;m/5','0','0','0','4','','','','',NULL,NULL,E'var AwsRds = {
    params: {},
    request_period: 600,

    setParams: function (params) {
        [''access_key'', ''secret_key'', ''region'', ''db_instance_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: "'' + field + ''".'';
            }
        });

        AwsRds.params = params;
    },

    sign: function (key, message) {
        var hex = hmac(''sha256'', key, message);

        if ((hex.length % 2) === 1) {
            throw ''Invalid length of a hex string!'';
        }

        var result = new Int8Array(hex.length / 2);
        for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
            result[b] = parseInt(hex.substring(i, i + 2), 16);
        }

        return result;
    },

    renderMetricQuery: function (period, db_instance_id) {
        var metrics_list = [
          ''AbortedClients:Count'',
          ''ActiveTransactions:Count/Second'',
          ''AuroraBinlogReplicaLag:Seconds'',
          ''AuroraReplicaLag:Milliseconds'',
          ''AuroraReplicaLagMaximum:Milliseconds'',
          ''AuroraReplicaLagMinimum:Milliseconds'',
          ''BacktrackWindowActual:Count'',
          ''BacktrackWindowAlert:Count'',
          ''BinLogDiskUsage:Bytes'',
          ''BlockedTransactions:Count/Second'',
          ''BufferCacheHitRatio:Percent'',
          ''CheckpointLag:Seconds'',
          ''CommitLatency:Milliseconds'',
          ''CommitThroughput:Count/Second'',
          ''CPUCreditBalance:Count'',
          ''CPUCreditUsage:Count'',
          ''CPUUtilization:Percent'',
          ''DatabaseConnections:Count'',
          ''DDLLatency:Milliseconds'',
          ''DDLThroughput:Count/Second'',
          ''Deadlocks:Count/Second'',
          ''DeleteLatency:Milliseconds'',
          ''DeleteThroughput:Count/Second'',
          ''DiskQueueDepth:Count'',
          ''DMLLatency:Milliseconds'',
          ''DMLThroughput:Count/Second'',
          ''EBSByteBalance%:Percent'',
          ''EBSIOBalance%:Percent'',
          ''EngineUptime:Seconds'',
          ''FailedSQLServerAgentJobsCount:Count/Second'',
          ''FreeableMemory:Bytes'',
          ''FreeLocalStorage:Bytes'',
          ''InsertLatency:Milliseconds'',
          ''InsertThroughput:Count/Second'',
          ''LoginFailures:Count/Second'',
          ''MaximumUsedTransactionIDs:Count'',
          ''NetworkReceiveThroughput:Bytes/Second'',
          ''NetworkThroughput:Bytes/Second'',
          ''NetworkTransmitThroughput:Bytes/Second'',
          ''NumBinaryLogFiles:Count'',
          ''Queries:Count/Second'',
          ''RDSToAuroraPostgreSQLReplicaLag:Seconds'',
          ''ReadIOPS:Count/Second'',
          ''ReadLatency:Seconds'',
          ''ReadLatencyLocalStorage:Seconds'',
          ''ReadThroughput:Bytes/Second'',
          ''ReadThroughputLocalStorage:Bytes/Second'',
          ''ReplicationSlotDiskUsage:Bytes'',
          ''ResultSetCacheHitRatio:Percent'',
          ''RollbackSegmentHistoryListLength:Count'',
          ''RowLockTime:Milliseconds'',
          ''SelectLatency:Milliseconds'',
          ''SelectThroughput:Count/Second'',
          ''StorageNetworkReceiveThroughput:Bytes/Second'',
          ''StorageNetworkThroughput:Bytes/Second'',
          ''StorageNetworkTransmitThroughput:Bytes/Second'',
          ''SumBinaryLogSize:Bytes'',
          ''SwapUsage:Bytes'',
          ''TransactionLogsDiskUsage:Bytes'',
          ''UpdateLatency:Milliseconds'',
          ''UpdateThroughput:Count/Second'',
          ''WriteIOPS:Count/Second'',
          ''WriteLatency:Seconds'',
          ''WriteThroughput:Bytes/Second'',
          ''BurstBalance:Percent'',
          ''FreeStorageSpace:Percent'',
          ''OldestReplicationSlotLag:Bytes'',
          ''ReplicaLag:Seconds'',
          ''TransactionLogsGeneration:Bytes/Second''
        ];

        var metric_payload = [];
        metrics_list.forEach(function (metric) {
            var parts = metric.split('':'', 2);
            var name = parts[0].replace(/[^a-zA-Z0-9]/g, '''');
            metric_payload.push({
                ''Id'': name.charAt(0).toLowerCase() + name.slice(1),
                ''MetricStat'': {
                    ''Metric'': {
                        ''MetricName'': parts[0],
                        ''Namespace'': ''AWS/RDS'',
                        ''Dimensions'': [
                            {
                                ''Name'': ''DBInstanceIdentifier'',
                                ''Value'': db_instance_id
                            }
                        ]
                    },
                    ''Period'': period,
                    ''Stat'': ''Average'',
                    ''Unit'': parts[1]
                }
            });
        });

        return metric_payload;

    },
    prepareParams: function (params) {
        var result = [];

        Object.keys(params).sort().forEach(function (key) {
            if (typeof params[key] !== ''object'') {
                result.push(key + ''='' + encodeURIComponent(params[key]));
            }
            else {
                result.push(prepareObject(key, params[key]));
            }
        });

        return result.join(''&'');
    },

    request: function (method, region, service, request_data) {
        if (typeof request_data === ''undefined'' || request_data === null) {
            request_data = '''';
        }
        else {
            request_data=  JSON.stringify(request_data)
        }

        var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
            date = amzdate.replace(/T\\d+Z/, ''''),
            host = service + ''.'' + region + ''.amazonaws.com'',
            canonical_uri = ''/'',
            canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
            signed_headers = ''content-encoding;host;x-amz-date'',
            canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(request_data),
            credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
            request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
            key = AwsRds.sign(''AWS4'' + AwsRds.params.secret_key, date);

        key = AwsRds.sign(key, region);
        key = AwsRds.sign(key, service);
        key = AwsRds.sign(key, ''aws4_request'');

        var request = new HttpRequest(),
            url = ''https://'' + host + canonical_uri;

        if (typeof AwsRds.params.proxy !== ''undefined'' && AwsRds.params.proxy !== '''') {
            request.setProxy(AwsRds.params.proxy);
        }
        request.addHeader(''x-amz-date: '' + amzdate);
        request.addHeader(''X-Amz-Target: GraniteServiceVersion20100801.GetMetricData'')
        request.addHeader(''Accept: application/json'');
        request.addHeader(''Content-Type: application/json'');
        request.addHeader(''Content-Encoding: amz-1.0'');
        request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsRds.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

        Zabbix.log(4, ''[ AWS RDS ] Sending request: '' + url);

        response = request.post(url,request_data);
        Zabbix.log(4, ''[ AWS RDS ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        if (response !== null) {
            try {
                response = JSON.parse(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
            }
        }

        return response;
    },

    getMetricsData: function () {
        var payload={},
            end_time = Math.floor((new Date().getTime())/1000),
            start_time = end_time - AwsRds.request_period;

        payload[''StartTime''] = start_time;
        payload[''EndTime''] = end_time;
        payload[''ScanBy''] = ''TimestampDescending'';
        payload[''MetricDataQueries''] = AwsRds.renderMetricQuery(AwsRds.request_period, AwsRds.params.db_instance_id);
        result = AwsRds.request(''POST'', AwsRds.params.region, ''monitoring'', payload);
        if (typeof result !== ''object'' || typeof result.MetricDataResults !== ''object'') {
            throw ''Cannot get metrics data from AWS CloudWatch API. Check debug log for more information.'';
        }

        return result.MetricDataResults;
    }
};

try {
    AwsRds.setParams(JSON.parse(value));

    return JSON.stringify(AwsRds.getMetricsData());
}
catch (error) {
    error += (String(error).endsWith(''.'')) ? '''' : ''.'';
    Zabbix.log(3, ''[ AWS RDS ] ERROR: '' + error);

    return JSON.stringify({''error'': error});
}','','0','','','','','0',NULL,'Get instance metrics.
Full metrics list related to RDS: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-metrics.html
Full metrics list related to Amazon Aurora: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.AuroraMySQL.Monitoring.Metrics.html#Aurora.AuroraMySQL.Monitoring.Metrics.instances','0','30d','0','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','b22171fe7de44ac3952468ceb0c1a9b0','AWS RDS: GET METRICS DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44113','21','','10536','AWS S3: Get alarms data','aws.s3.get_alarms','0s;m/1','0','0','0','4','','','','',NULL,NULL,E'var AwsS3 = {
    params: {},

    setParams: function (params) {
        [''access_key'', ''secret_key'', ''region'', ''bucket_name''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: "'' + field + ''".'';
            }
        });

        AwsS3.params = params;
    },

    sign: function (key, message) {
        var hex = hmac(''sha256'', key, message);

        if ((hex.length % 2) === 1) {
            throw ''Invalid length of a hex string!'';
        }

        var result = new Int8Array(hex.length / 2);
        for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
            result[b] = parseInt(hex.substring(i, i + 2), 16);
        }

        return result;
    },

    prepareParams: function (params) {
        var result = [];

        Object.keys(params).sort().forEach(function (key) {
            if (typeof params[key] !== ''object'') {
                result.push(key + ''='' + encodeURIComponent(params[key]));
            }
            else {
                result.push(prepareObject(key, params[key]));
            }
        });

        return result.join(''&'');
    },

    request: function (method, region, service, params, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
            date = amzdate.replace(/T\\d+Z/, ''''),
            host = service + ''.'' + region + ''.amazonaws.com'',
            canonical_uri = ''/'',
            canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
            signed_headers = ''content-encoding;host;x-amz-date'',
            canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + params + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(data),
            credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
            request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
            key = AwsS3.sign(''AWS4'' + AwsS3.params.secret_key, date);

        key = AwsS3.sign(key, region);
        key = AwsS3.sign(key, service);
        key = AwsS3.sign(key, ''aws4_request'');

        var request = new HttpRequest(),
            url = ''https://'' + host + canonical_uri + ''?'' + params;

        if (typeof AwsS3.params.proxy !== ''undefined'' && AwsS3.params.proxy !== '''') {
            request.setProxy(AwsS3.params.proxy);
        }
        request.addHeader(''x-amz-date: '' + amzdate);
        request.addHeader(''Accept: application/json'');
        request.addHeader(''Content-Type: application/json'');
        request.addHeader(''Content-Encoding: amz-1.0'');
        request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsS3.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

        Zabbix.log(4, ''[ AWS S3 ] Sending request: '' + url);

        response = request.get(url);

        Zabbix.log(4, ''[ AWS S3 ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        if (response[0] === ''<'') {
            try {
                response = XML.toJson(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
            }
        }

        if (response !== null) {
            try {
                response = JSON.parse(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
            }
        }

        return response;
    },

    getAlarms: function () {
        var payload = {},
            result = [];

        payload[''Action''] = ''DescribeAlarms'';
        payload[''MaxRecords''] = 100;
        payload[''Version''] = ''2010-08-01'';

        while (payload.NextToken !== '''') {
            var alarms = AwsS3.request(''GET'', AwsS3.params.region, ''monitoring'', AwsS3.prepareParams(payload));

            if (typeof alarms !== ''object''
                || typeof alarms.DescribeAlarmsResponse !== ''object''
                || typeof alarms.DescribeAlarmsResponse.DescribeAlarmsResult !== ''object''
                || typeof alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms !== ''object'') {
                throw ''Cannot get alarms from AWS CloudWatch API. Check debug log for more information.'';
            }

            payload.NextToken = alarms.DescribeAlarmsResponse.DescribeAlarmsResult.NextToken || '''';

            if (!Array.isArray(alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms))
                alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms = [alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms]
            alarms.DescribeAlarmsResponse.DescribeAlarmsResult.MetricAlarms.forEach(function (alarm) {
                var dimensions = alarm.Dimensions;

                if (Array.isArray(alarm.Metrics)) {
                    alarm.Metrics.forEach(function (metric) {
                        if (typeof metric.MetricStat === ''object'' && metric.MetricStat !== null
                            && typeof metric.MetricStat.Metric === ''object'' && metric.MetricStat.Metric !== null
                            && Array.isArray(metric.MetricStat.Metric.Dimensions)) {
                            dimensions = dimensions.concat(metric.MetricStat.Metric.Dimensions);
                        }
                    });
                }
                for (var i in dimensions) {
                    if (dimensions[i].Name === ''BucketName'' && dimensions[i].Value === AwsS3.params.bucket_name) {
                        result.push(alarm);
                        break;
                    }
                }
            });
        }

        return result;
    }
}

try {
    AwsS3.setParams(JSON.parse(value));

    return JSON.stringify(AwsS3.getAlarms());
}
catch (error) {
    error += (String(error).endsWith(''.'')) ? '''' : ''.'';
    Zabbix.log(3, ''[ AWS S3 ] ERROR: '' + error);

    return JSON.stringify({ ''error'': error });
}','','0','','','','','0',NULL,'Get alarms data.
DescribeAlarms API method: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html','0','30d','0','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','6da0ea7130e64a7fb8ae32ee02290cbf','AWS S3: GET ALARMS DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44114','21','','10536','AWS S3: Get metrics data','aws.s3.get_metrics','0s;m/1','0','0','0','4','','','','',NULL,NULL,E'var AwsS3 = {
    params: {},
    request_period: 180,

    setParams: function (params) {
        [''access_key'', ''secret_key'', ''region'', ''bucket_name'', ''filter_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: "'' + field + ''".'';
            }
        });

        AwsS3.params = params;
    },

    sign: function (key, message) {
        var hex = hmac(''sha256'', key, message);

        if ((hex.length % 2) === 1) {
            throw ''Invalid length of a hex string!'';
        }

        var result = new Int8Array(hex.length / 2);
        for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
            result[b] = parseInt(hex.substring(i, i + 2), 16);
        }

        return result;
    },

    renderMetricQuery: function (period, bucket_name, filter_id) {
        var metrics_list = [
            ''BucketSizeBytes:Bytes:Average'',
            ''NumberOfObjects:Count:Average'',
            ''AllRequests:Count:Sum'',
            ''GetRequests:Count:Sum'',
            ''PutRequests:Count:Sum'',
            ''DeleteRequests:Count:Sum'',
            ''HeadRequests:Count:Sum'',
            ''PostRequests:Count:Sum'',
            ''SelectRequests:Count:Sum'',
            ''SelectBytesScanned:Bytes:Average'',
            ''SelectBytesReturned:Bytes:Average'',
            ''ListRequests:Count:Sum'',
            ''BytesDownloaded:Bytes:Average'',
            ''BytesUploaded:Bytes:Average'',
            ''4xxErrors:Count:Average'',
            ''5xxErrors:Count:Average'',
            ''FirstByteLatency:Milliseconds:p90'',
            ''TotalRequestLatency:Milliseconds:p90'',
            ''FirstByteLatency:Milliseconds:p90'',
            ''ReplicationLatency:Seconds:Average'',
            ''BytesPendingReplication:Bytes:Average'',
            ''OperationsPendingReplication:Count:Average'',

        ];

        var metric_payload = [];
        metrics_list.forEach(function (metric, index) {
            var parts = metric.split('':'', 3);
            metric_payload.push({
                ''Id'': ''m'' + index,
                ''MetricStat'': {
                    ''Metric'': {
                        ''MetricName'': parts[0],
                        ''Namespace'': ''AWS/S3'',
                        ''Dimensions'': [
                            {
                                ''Name'': ''BucketName'',
                                ''Value'': bucket_name
                            },
                            {
                                ''Name'': ''FilterId'',
                                ''Value'': filter_id
                            }
                        ]
                    },
                    ''Period'': period,
                    ''Stat'': parts[2],
                    ''Unit'': parts[1]
                }
            });
        });

        return metric_payload;

    },
    prepareParams: function (params) {
        var result = [];

        Object.keys(params).sort().forEach(function (key) {
            if (typeof params[key] !== ''object'') {
                result.push(key + ''='' + encodeURIComponent(params[key]));
            }
            else {
                result.push(prepareObject(key, params[key]));
            }
        });

        return result.join(''&'');
    },

    request: function (method, region, service, request_data) {
        if (typeof request_data === ''undefined'' || request_data === null) {
            request_data = '''';
        }
        else {
            request_data = JSON.stringify(request_data)
        }

        var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
            date = amzdate.replace(/T\\d+Z/, ''''),
            host = service + ''.'' + region + ''.amazonaws.com'',
            canonical_uri = ''/'',
            canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
            signed_headers = ''content-encoding;host;x-amz-date'',
            canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(request_data),
            credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
            request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
            key = AwsS3.sign(''AWS4'' + AwsS3.params.secret_key, date);

        key = AwsS3.sign(key, region);
        key = AwsS3.sign(key, service);
        key = AwsS3.sign(key, ''aws4_request'');

        var request = new HttpRequest(),
            url = ''https://'' + host + canonical_uri;

        if (typeof AwsS3.params.proxy !== ''undefined'' && AwsS3.params.proxy !== '''') {
            request.setProxy(AwsS3.params.proxy);
        }
        request.addHeader(''x-amz-date: '' + amzdate);
        request.addHeader(''X-Amz-Target: GraniteServiceVersion20100801.GetMetricData'')
        request.addHeader(''Accept: application/json'');
        request.addHeader(''Content-Type: application/json'');
        request.addHeader(''Content-Encoding: amz-1.0'');
        request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsS3.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

        Zabbix.log(4, ''[ AWS S3 ] Sending request: '' + url);

        response = request.post(url, request_data);
        Zabbix.log(4, ''[ AWS S3 ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        if (response !== null) {
            try {
                response = JSON.parse(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
            }
        }

        return response;
    },

    getMetricsData: function () {
        var payload = {},
            end_time = Math.floor((new Date().getTime()) / 1000),
            start_time = end_time - AwsS3.request_period;

        payload[''StartTime''] = start_time;
        payload[''EndTime''] = end_time;
        payload[''ScanBy''] = ''TimestampDescending'';
        payload[''MetricDataQueries''] = AwsS3.renderMetricQuery(60, AwsS3.params.bucket_name, AwsS3.params.filter_id);
        result = AwsS3.request(''POST'', AwsS3.params.region, ''monitoring'', payload);
        if (typeof result !== ''object'' || typeof result.MetricDataResults !== ''object'') {
            throw ''Cannot get metrics data from AWS CloudWatch API. Check debug log for more information.'';
        }

        return result.MetricDataResults;
    }
};

try {
    AwsS3.setParams(JSON.parse(value));

    return JSON.stringify(AwsS3.getMetricsData());
}
catch (error) {
    return error
    // error += (String(error).endsWith(''.'')) ? '''' : ''.'';
    // Zabbix.log(3, ''[ AWS S3 ] ERROR: '' + error);

    // return JSON.stringify({''error'': error});
}','','0','','','','','0',NULL,'Get bucket metrics.
Full metrics list related to S3: https://docs.aws.amazon.com/AmazonS3/latest/userguide/metrics-dimensions.html','0','30d','0','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','598e9dc563334ad6b1d72245a6f8679f','AWS S3: GET METRICS DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44143','21','','10537','EC2 instances discovery','aws.ec2.discovery','12h','90d','0','0','4','','','','',NULL,NULL,E'var AwsEC2 = {
    params: {},

    setParams: function (params) {
        [''access_key'', ''region'', ''secret_key''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: "'' + field + ''".'';
            }
        });

        AwsEC2.params = params;
    },

    sign: function (key, message) {
        var hex = hmac(''sha256'', key, message);

        if ((hex.length % 2) === 1) {
            throw ''Invalid length of a hex string!'';
        }

        var result = new Int8Array(hex.length / 2);
        for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
            result[b] = parseInt(hex.substring(i, i + 2), 16);
        }

        return result;
    },

    prepareParams: function (params) {
        var result = [];

        Object.keys(params).sort().forEach(function (key) {
            if (typeof params[key] !== ''object'') {
                result.push(key + ''='' + encodeURIComponent(params[key]));
            }
            else {
                result.push(prepareObject(key, params[key]));
            }
        });

        return result.join(''&'');
    },

    request: function (method, region, service, host, params, data, uri) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
            date = amzdate.replace(/T\\d+Z/, ''''),

            canonical_uri = ''/'' + uri,
            canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
            signed_headers = ''content-encoding;host;x-amz-date'',
            canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + params + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(data),
            credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
            request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
            key = AwsEC2.sign(''AWS4'' + AwsEC2.params.secret_key, date);

        key = AwsEC2.sign(key, region);
        key = AwsEC2.sign(key, service);
        key = AwsEC2.sign(key, ''aws4_request'');

        var request = new HttpRequest(),
            url = ''https://'' + host + canonical_uri + ''?'' + params;

        if (typeof AwsEC2.params.proxy !== ''undefined'' && AwsEC2.params.proxy !== '''') {
            request.setProxy(AwsEC2.params.proxy);
        }
        request.addHeader(''x-amz-date: '' + amzdate);
        request.addHeader(''x-amz-content-sha256:'' + sha256(data));
        request.addHeader(''Accept: application/json'');
        request.addHeader(''Content-Type: application/json'');
        request.addHeader(''Content-Encoding: amz-1.0'');
        request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsEC2.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

        Zabbix.log(4, ''[ AWS EC2 ] Sending request: '' + url);

        response = request.post(url, data);

        Zabbix.log(4, ''[ AWS EC2 ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }
        if (response !== null) {
            try {
                response = XML.toJson(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
            }
        }

        return JSON.parse(response);
    },

    tagToNameInstances: function (instance) {
        if (!Array.isArray(instance))
            instance = [instance];
        instance.forEach(function (item, index, instance_array) {
            if (typeof item !== ''object''
                || typeof item.instancesSet !== ''object''
                || typeof item.instancesSet.item !== ''object''
                || item.instancesSet.item.hasOwnProperty(''instanceId'') === false)
                throw ''Failed response parse. Check debug log for more information.'';
            var instanceName = item.instancesSet.item.instanceId
            if (typeof item.instancesSet.item.tagSet === ''object''
                && typeof item.instancesSet.item.tagSet.item === ''object'') {
                if (!Array.isArray(item.instancesSet.item.tagSet.item))
                  item.instancesSet.item.tagSet.item = [item.instancesSet.item.tagSet.item];
                item.instancesSet.item.tagSet.item.forEach(
                    function (tag) {
                        if (tag.hasOwnProperty(''key'') && tag.key === ''Name'') {
                            instanceName = tag.value;
                        }
                    }
                );
            }
            instance_array[index][''instanceName''] = instanceName;
        });

        return instance;
    },

    listInstances: function () {
        var payload = {};

        payload[''Action''] = ''DescribeInstances'',
            payload[''Version''] = ''2016-11-15''

        result = AwsEC2.request(''POST'', AwsEC2.params.region, ''ec2'', ''ec2.'' + AwsEC2.params.region + ''.amazonaws.com'', AwsEC2.prepareParams(payload), '''', '''');

        if (typeof result !== ''object''
            || typeof result.DescribeInstancesResponse !== ''object''
            || typeof result.DescribeInstancesResponse.reservationSet !== ''object'') {
            throw ''Cannot get EC2 instance list from AWS API. Check debug log for more information.'';
        }

        if (result.DescribeInstancesResponse.reservationSet === null)
            return [];

        if (typeof result.DescribeInstancesResponse.reservationSet.item !== ''object'')
            throw ''Cannot get EC2 instance list from AWS API. Check debug log for more information.'';

        return AwsEC2.tagToNameInstances(result.DescribeInstancesResponse.reservationSet.item);
    }
};

try {
    AwsEC2.setParams(JSON.parse(value));

    return JSON.stringify(AwsEC2.listInstances());
}
catch (error) {
    error += (String(error).endsWith(''.'')) ? '''' : ''.'';
    Zabbix.log(3, ''[ AWS EC2 ] ERROR: '' + error);
    return JSON.stringify({ ''error'': error });
}','','0','','','','','1',NULL,'Get EC2 instances.','0','30d','1','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','c651911bad9244ad9c8d2dad5b0d70e4','EC2 INSTANCES DISCOVERY');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44144','21','','10537','RDS instances discovery','aws.rds.discovery','12h','90d','0','0','4','','','','',NULL,NULL,E'var AwsRDS = {
    params: {},

    setParams: function (params) {
        [''access_key'', ''region'', ''secret_key''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: "'' + field + ''".'';
            }
        });

        AwsRDS.params = params;
    },

    sign: function (key, message) {
        var hex = hmac(''sha256'', key, message);

        if ((hex.length % 2) === 1) {
            throw ''Invalid length of a hex string!'';
        }

        var result = new Int8Array(hex.length / 2);
        for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
            result[b] = parseInt(hex.substring(i, i + 2), 16);
        }

        return result;
    },

    prepareParams: function (params) {
        var result = [];

        Object.keys(params).sort().forEach(function (key) {
            if (typeof params[key] !== ''object'') {
                result.push(key + ''='' + encodeURIComponent(params[key]));
            }
            else {
                result.push(prepareObject(key, params[key]));
            }
        });

        return result.join(''&'');
    },

    request: function (method, region, service, host, params, data, uri) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
            date = amzdate.replace(/T\\d+Z/, ''''),

            canonical_uri = ''/'' + uri,
            canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
            signed_headers = ''content-encoding;host;x-amz-date'',
            canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + params + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(data),
            credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
            request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
            key = AwsRDS.sign(''AWS4'' + AwsRDS.params.secret_key, date);

        key = AwsRDS.sign(key, region);
        key = AwsRDS.sign(key, service);
        key = AwsRDS.sign(key, ''aws4_request'');

        var request = new HttpRequest(),
            url = ''https://'' + host + canonical_uri + ''?'' + params;

        if (typeof AwsRDS.params.proxy !== ''undefined'' && AwsRDS.params.proxy !== '''') {
            request.setProxy(AwsRDS.params.proxy);
        }
        request.addHeader(''x-amz-date: '' + amzdate);
        request.addHeader(''x-amz-content-sha256:'' + sha256(data));
        request.addHeader(''Accept: application/json'');
        request.addHeader(''Content-Type: application/json'');
        request.addHeader(''Content-Encoding: amz-1.0'');
        request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsRDS.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

        Zabbix.log(4, ''[ AWS RDS ] Sending request: '' + url);

        response = request.post(url, data);

        Zabbix.log(4, ''[ AWS RDS ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        try {
            response = JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from AWS API. Check debug log for more information.'';
        }

        return response;
    },

    listInstances: function () {
        var payload = {};

        payload[''Action''] = ''DescribeDBInstances'',
            payload[''Version''] = ''2014-10-31''

        result = AwsRDS.request(''POST'', AwsRDS.params.region, ''rds'', ''rds.'' + AwsRDS.params.region + ''.amazonaws.com'', AwsRDS.prepareParams(payload), '''', '''');

        if (typeof result !== ''object''
            || typeof result.DescribeDBInstancesResponse !== ''object''
            || typeof result.DescribeDBInstancesResponse.DescribeDBInstancesResult !== ''object''
            || typeof result.DescribeDBInstancesResponse.DescribeDBInstancesResult.DBInstances !== ''object'') {
            throw ''Cannot get DB instance list from AWS RDS API. Check debug log for more information.'';
        }
        if (Array.isArray(result.DescribeDBInstancesResponse.DescribeDBInstancesResult.DBInstances))
            return result.DescribeDBInstancesResponse.DescribeDBInstancesResult.DBInstances;
        else
            return [result.DescribeDBInstancesResponse.DescribeDBInstancesResult.DBInstances];

    }
};

try {
    AwsRDS.setParams(JSON.parse(value));

    return JSON.stringify(AwsRDS.listInstances());
}
catch (error) {
    error += (String(error).endsWith(''.'')) ? '''' : ''.'';
    Zabbix.log(3, ''[ AWS RDS ] ERROR: '' + error);
    return JSON.stringify({ ''error'': error });
}','','0','','','','','1',NULL,'Get RDS instances.','0','30d','1','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','c1127e674b7548b2802cd8771f3a4768','RDS INSTANCES DISCOVERY');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44145','21','','10537','S3 buckets discovery','aws.s3.discovery','12h','90d','0','0','4','','','','',NULL,NULL,E'var AwsS3 = {
    params: {},

    setParams: function (params) {
        [''access_key'', ''secret_key''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: "'' + field + ''".'';
            }
        });

        AwsS3.params = params;
    },

    sign: function (key, message) {
        var hex = hmac(''sha256'', key, message);

        if ((hex.length % 2) === 1) {
            throw ''Invalid length of a hex string!'';
        }

        var result = new Int8Array(hex.length / 2);
        for (var i = 0, b = 0; i < hex.length; i += 2, b++) {
            result[b] = parseInt(hex.substring(i, i + 2), 16);
        }

        return result;
    },

    prepareParams: function (params) {
        var result = [];

        Object.keys(params).sort().forEach(function (key) {
            if (typeof params[key] !== ''object'') {
                result.push(key + ''='' + encodeURIComponent(params[key]));
            }
            else {
                result.push(prepareObject(key, params[key]));
            }
        });

        return result.join(''&'');
    },

    request: function (method, region, service, host, params, data, uri) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var amzdate = (new Date()).toISOString().replace(/\\.\\d+Z/, ''Z'').replace(/[-:]/g, ''''),
            date = amzdate.replace(/T\\d+Z/, ''''),

            canonical_uri = ''/'' + uri,
            canonical_headers = ''content-encoding:amz-1.0\\n'' + ''host:'' + host + ''\\n'' + ''x-amz-date:'' + amzdate + ''\\n'',
            signed_headers = ''content-encoding;host;x-amz-date'',
            canonical_request = method + ''\\n'' + canonical_uri + ''\\n'' + params + ''\\n'' + canonical_headers + ''\\n'' + signed_headers + ''\\n'' + sha256(data),
            credential_scope = date + ''/'' + region + ''/'' + service + ''/'' + ''aws4_request'',
            request_string = ''AWS4-HMAC-SHA256'' + ''\\n'' + amzdate + ''\\n'' + credential_scope + ''\\n'' + sha256(canonical_request),
            key = AwsS3.sign(''AWS4'' + AwsS3.params.secret_key, date);

        key = AwsS3.sign(key, region);
        key = AwsS3.sign(key, service);
        key = AwsS3.sign(key, ''aws4_request'');

        var request = new HttpRequest(),
            url = ''https://'' + host + canonical_uri + ''?'' + params;

        if (typeof AwsS3.params.proxy !== ''undefined'' && AwsS3.params.proxy !== '''') {
            request.setProxy(AwsS3.params.proxy);
        }
        request.addHeader(''x-amz-date: '' + amzdate);
        request.addHeader(''x-amz-content-sha256:'' + sha256(data));
        request.addHeader(''Accept: application/json'');
        request.addHeader(''Content-Type: application/json'');
        request.addHeader(''Content-Encoding: amz-1.0'');
        request.addHeader(''Authorization: '' + ''AWS4-HMAC-SHA256 Credential='' + AwsS3.params.access_key + ''/'' + credential_scope + '', '' + ''SignedHeaders='' + signed_headers + '', '' + ''Signature='' + hmac(''sha256'', key, request_string));

        Zabbix.log(4, ''[ AWS S3 ] Sending request: '' + url);

        response = request.get(url);

        Zabbix.log(4, ''[ AWS S3 ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }
        if (response !== null) {
            try {
                response = XML.toJson(response);
            }
            catch (error) {
                throw ''Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'';
            }
        }

        return JSON.parse(response);
    },

    getBucketLocation: function (bucket_name) {
        var payload = {};

        payload[''location''] = '''',

            result = AwsS3.request(''GET'', ''us-east-1'', ''s3'', ''s3.amazonaws.com'', AwsS3.prepareParams(payload), '''', bucket_name);

        if (typeof result !== ''object''
            || result.hasOwnProperty(''LocationConstraint'') === false
        ) {
            throw ''Cannot get buckets region location data from AWS S3 API. Check debug log for more information.'';
        }

        return result.LocationConstraint !== null ? result.LocationConstraint : ''us-east-1'';
    },

    listBuckets: function () {
        var payload = {};

        payload[''Action''] = ''ListBuckets'',
            payload[''Version''] = ''2006-03-01'',

            result = AwsS3.request(''GET'', ''us-east-1'', ''s3'', ''s3.us-east-1.amazonaws.com'', AwsS3.prepareParams(payload), '''', '''');
        if (typeof result !== ''object''
            || typeof result.ListAllMyBucketsResult !== ''object''
            || typeof result.ListAllMyBucketsResult.Buckets !== ''object'') {
            throw ''Cannot get buckets list from AWS S3 API. Check debug log for more information.'';
        }
        if (result.ListAllMyBucketsResult.Buckets === null)
            return []
        if (typeof result.ListAllMyBucketsResult.Buckets.Bucket !== ''object'') {
            throw ''Cannot get buckets list from AWS S3 API. Check debug log for more information.'';
        }

        var buckets = [];
        if (!Array.isArray(result.ListAllMyBucketsResult.Buckets.Bucket))
            buckets = [result.ListAllMyBucketsResult.Buckets.Bucket]
        else
            buckets = result.ListAllMyBucketsResult.Buckets.Bucket
        buckets.forEach(
            function (bucket, index, buckets_array) {
                if (!bucket.hasOwnProperty(''Name''))
                    throw ''Cannot get location for bucket. Check debug log for more information.'';
                buckets_array[index][''location''] = AwsS3.getBucketLocation(bucket[''Name'']);
            });

        return buckets;
    }
};

try {
    AwsS3.setParams(JSON.parse(value));

    return JSON.stringify(AwsS3.listBuckets());
}
catch (error) {
    error += (String(error).endsWith(''.'')) ? '''' : ''.'';
    Zabbix.log(3, ''[ AWS S3 ] ERROR: '' + error);
    return JSON.stringify({ ''error'': error });
}','','0','','','','','1',NULL,'Get S3 bucket instances.','0','30d','1','',NULL,'15s','','','','200','1','0','','0','0','0','0','0','0','0','ab6a97a108fb4dbc9fd1e07378721ffe','S3 BUCKETS DISCOVERY');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44146','21','','10541','Azure: Get resources','azure.get.resources','10m','0d','0','0','4','','','','',NULL,NULL,E'var Azure = {
    params: {},
    token: null,

    setParams: function (params) {
        [''app_id'', ''password'', ''tenant_id'', ''subscription_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: '' + field + ''.'';
            }
        });

        Azure.params = params;
    },

    request: function (url, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var response, request = new HttpRequest();
        if (Azure.token) {
            request.addHeader(''Accept: application/json'');
            request.addHeader(''Authorization: Bearer '' + Azure.token);
        }

        Zabbix.log(4, ''[ Azure ] Sending request: '' + url);

        if (data !== '''') {
            request.addHeader(''Content-Type: application/x-www-form-urlencoded'');
            response = request.post(url, data);
        }
        else {
            response = request.get(url);
        }

        Zabbix.log(4, ''[ Azure ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200 || response === null) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        try {
            return JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from API.'';
        }
    },

    nextlink: function (data) {
        next_data = data;
        while (''nextLink'' in next_data) {
            next_data = Azure.request(next_data.nextLink);
            next_data.value.forEach(function (value) {
                data.value.push(value);
            });
        }

        return data;
    }
};

var result,
    data = {},
    types = [
        {"method": "Microsoft.Compute/virtualMachines", "version": "2022-03-01"}, 
        {"method": "Microsoft.DBforMySQL/flexibleServers", "version": "2021-05-01"}, 
        {"method": "Microsoft.DBforMySQL/servers", "version": "2017-12-01"},
        {"method": "Microsoft.DBforPostgreSQL/flexibleServers", "version": "2021-06-01"},
        {"method": "Microsoft.DBforPostgreSQL/servers", "version": "2017-12-01"},
        {"method": "Microsoft.Sql/servers", "version": "2022-05-01-preview"}
    ];
    data[''errors''] = {},
    data[''resources''] = {};
    data.resources.value = [];

try {
    Azure.setParams(JSON.parse(value));

    try {
        result = Azure.request(
                ''https://login.microsoftonline.com/'' + encodeURIComponent(Azure.params.tenant_id) +''/oauth2/token'',
                ''grant_type=client_credentials&resource='' + encodeURIComponent(''https://management.azure.com/'') + ''&client_id='' + encodeURIComponent(Azure.params.app_id) + ''&client_secret='' + encodeURIComponent(Azure.params.password)
        );

        if (''access_token'' in result) {
            Azure.token = result[''access_token''];
        } else {
            throw ''Auth response does not contain access token.'';
        }
    }
    catch (error) {
        data.errors.auth = error.toString();
    }

    if (!(''auth'' in data.errors)) {
        try {
            for (var i in types) {
                if (types[i].method === "Microsoft.Sql/servers") {
                    mssql_servers = Azure.request(''https://management.azure.com/subscriptions/'' + encodeURIComponent(Azure.params.subscription_id) + ''/providers/'' + types[i].method + ''?api-version='' + types[i].version);
                    
                    if (''nextLink'' in mssql_servers) {
                        mssql_servers = Azure.nextlink(mssql_servers);
                    }
                
                    if (''value'' in mssql_servers && mssql_servers.value.length > 0) {
                        for (j in mssql_servers.value) {
                            mssql_dbs = Azure.request(''https://management.azure.com'' + mssql_servers.value[j].id + ''/databases?api-version='' + types[i].version);

                            if (''nextLink'' in mssql_dbs) {
                                mssql_dbs = Azure.nextlink(mssql_dbs);
                            }
                        
                            mssql_dbs.value.forEach(function (value) {
                                raw_data.value.push(value);
                            });
                        }
                    }
                }
                else {
                    raw_data = Azure.request(''https://management.azure.com/subscriptions/'' + encodeURIComponent(Azure.params.subscription_id) + ''/providers/'' + types[i].method + ''?api-version='' + types[i].version);

                    if (''nextLink'' in raw_data) {
                        raw_data = Azure.nextlink(raw_data);
                    }
                }

                raw_data.value.forEach(function (value) {
                    value.resourceGroup = value.id.split("/")[4];
                    data.resources.value.push(value);
                });
            }
        }
        catch (error) {
            data.errors.resources = error.toString();
        }
    }
}
catch (error) {
    data.errors.params = error.toString();
}

if (Object.keys(data.errors).length !== 0) {
    errors = ''Failed to receive data:'';
    for (var error in data.errors) {
        errors += ''\\n'' + error + '' : '' + data.errors[error];
    }
    data.errors = errors;
}
else {
    data.errors = '''';
}

return JSON.stringify(data);','','0','','','','','0',NULL,'The result of API requests is expressed in the JSON.','0','30d','0','',NULL,'{$AZURE.DATA.TIMEOUT}','','','','200','1','0','','0','0','0','0','0','0','0','fb6abf3631b240b08357ea9ce9ba89a4','AZURE: GET RESOURCES');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44147','21','','10542','Azure Microsoft SQL: Get data','azure.db.mssql.data.get','1m','0d','0','0','4','','','','',NULL,NULL,E'var AzureDB = {
    params: {},
    token: null,

    setParams: function (params) {
        [''app_id'', ''password'', ''tenant_id'', ''subscription_id'', ''resource_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: '' + field + ''.'';
            }
        });

        AzureDB.params = params;
    },


    request: function (url, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var response, request = new HttpRequest();
            if (AzureDB.token) {
                request.addHeader(''Accept: application/json'');
                request.addHeader(''Authorization: Bearer '' + AzureDB.token);
            }
    
        Zabbix.log(4, ''[ Azure ] Sending request: '' + url);

        if (data !== '''') {
            request.addHeader(''Content-Type: application/x-www-form-urlencoded'');
            response = request.post(url, data);
        }
        else {
            response = request.get(url);
        }

        Zabbix.log(4, ''[ Azure ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200 || response === null) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        try {
            return JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from API.'';
        }
}

};

var metrics = [
    ''cpu_percent'',
    ''physical_data_read_percent'',
    ''log_write_percent'',
    ''storage'',
    ''connection_successful'',
    ''connection_failed'',
    ''blocked_by_firewall'',
    ''deadlock'',
    ''storage_percent'',
    ''xtp_storage_percent'',
    ''workers_percent'',
    ''sessions_percent'',
    ''sessions_count'',
    ''cpu_limit'',
    ''cpu_used'',
    ''sqlserver_process_core_percent'',
    ''sqlserver_process_memory_percent'',
    ''tempdb_data_size'',
    ''tempdb_log_size'',
    ''tempdb_log_used_percent'',
    ''allocated_data_storage''
],
    day_metrics = ''full_backup_size_bytes,diff_backup_size_bytes,log_backup_size_bytes'',
    prepared_metrics = [],
    data = {};
    data[''errors''] = {};
    data[''metrics''] = {};

try {
    AzureDB.setParams(JSON.parse(value));

    try {
        result = AzureDB.request(
                ''https://login.microsoftonline.com/'' + encodeURIComponent(AzureDB.params.tenant_id) + ''/oauth2/token'',
                ''grant_type=client_credentials&resource='' + encodeURIComponent(''https://management.azure.com/'') + ''&client_id='' + encodeURIComponent(AzureDB.params.app_id) + ''&client_secret='' + encodeURIComponent(AzureDB.params.password)
        );

        if (''access_token'' in result) {
            AzureDB.token = result[''access_token''];
        } else {
            throw ''Auth response does not contain access token.'';
        }
    }
    catch (error) {
        data.errors.auth = error.toString();
    }

    if (!(''auth'' in data.errors)) {
        try {
            health = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'');
            if (''value'' in health && Array.isArray(health.value) && health.value.length > 0 && ''properties'' in health.value[0] && typeof health.value[0].properties === ''object'') {
                data.health = health.value[0].properties;
            }
        }
        catch (error) {
            data.errors.health = error.toString();
        }

        for (var i = 0; i < metrics.length; i += 20) {
            var chunk = metrics.slice(i, i + 20);

            prepared_metrics.push(
                chunk.map(function(element) {
                    return encodeURIComponent(element);
                }).join('','')
            );
        }

        start_date = new Date((new Date().getTime()) - 300000).toISOString().replace(/\\.\\d+/, '''');
        end_date = new Date().toISOString().replace(/\\.\\d+/, '''');
        
        for (var j in prepared_metrics) {
            try {
                metrics_data = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.Insights/metrics?metricnames='' + prepared_metrics[j] + ''&timespan='' + encodeURIComponent(start_date) + ''/'' + encodeURIComponent(end_date) + ''&api-version=2021-05-01'');
                if (''value'' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) {
                    for (k in metrics_data.value) {
                        if (''name'' in metrics_data.value[k] && typeof metrics_data.value[k].name === ''object'' && ''value'' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === ''string'' && ''timeseries'' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && ''data'' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) {
                            data.metrics[metrics_data.value[k].name.value.replace(/(\\s|\\/)+/g, '''')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1];
                        }
                    }
                }
            }
            catch (error) {
                data.errors[prepared_metrics[j]] = error.toString();
            }
        }
        start_date = new Date((new Date().getTime()) - 86400000).toISOString().replace(/\\.\\d+/, '''');
        end_date = new Date().toISOString().replace(/\\.\\d+/, '''');
        try {
            metrics_data = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.Insights/metrics?metricnames='' + day_metrics + ''&timespan='' + encodeURIComponent(start_date) + ''/'' + encodeURIComponent(end_date) + ''&api-version=2021-05-01'');
            if (''value'' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) {
                for (l in metrics_data.value) {
                    if (''name'' in metrics_data.value[l] && typeof metrics_data.value[l].name === ''object'' && ''value'' in metrics_data.value[l].name && typeof metrics_data.value[l].name.value === ''string'' && ''timeseries'' in metrics_data.value[l] && Array.isArray(metrics_data.value[l].timeseries) && metrics_data.value[l].timeseries.length > 0 && ''data'' in metrics_data.value[l].timeseries[0] && Array.isArray(metrics_data.value[l].timeseries[0].data) && metrics_data.value[l].timeseries[0].data.length > 0) {
                        data.metrics[metrics_data.value[l].name.value.replace(/(\\s|\\/)+/g, '''')] = metrics_data.value[l].timeseries[0].data[metrics_data.value[l].timeseries[0].data.length - 1];
                    }
                }
            }
        }
        catch (error) {
            data.errors[day_metrics] = error.toString();
        }
    }
}
catch (error) {
    data.errors.params = error.toString();
}

if (Object.keys(data.errors).length !== 0) {
    errors = ''Failed to receive data:'';
    for (var error in data.errors) {
        errors += ''\\n'' + error + '' : '' + data.errors[error];
    }
    data.errors = errors;
}
else {
    data.errors = '''';
}

return JSON.stringify(data);','','0','','','','','0',NULL,'The result of API requests is expressed in the JSON.','0','30d','0','',NULL,'{$AZURE.DATA.TIMEOUT}','','','','200','1','0','','0','0','0','0','0','0','0','741cc1ec6a824e429f06b3d12a8a7082','AZURE MICROSOFT SQL: GET DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44148','21','','10543','Azure Microsoft SQL: Get data','azure.db.mssql.data.get','1m','0d','0','0','4','','','','',NULL,NULL,E'var AzureDB = {
    params: {},
    token: null,

    setParams: function (params) {
        [''app_id'', ''password'', ''tenant_id'', ''subscription_id'', ''resource_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: '' + field + ''.'';
            }
        });

        AzureDB.params = params;
    },


    request: function (url, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var response, request = new HttpRequest();
            if (AzureDB.token) {
                request.addHeader(''Accept: application/json'');
                request.addHeader(''Authorization: Bearer '' + AzureDB.token);
            }
    
        Zabbix.log(4, ''[ Azure ] Sending request: '' + url);

        if (data !== '''') {
            request.addHeader(''Content-Type: application/x-www-form-urlencoded'');
            response = request.post(url, data);
        }
        else {
            response = request.get(url);
        }

        Zabbix.log(4, ''[ Azure ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200 || response === null) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        try {
            return JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from API.'';
        }
}

};

var metrics = [
    ''cpu_percent'',
    ''physical_data_read_percent'',
    ''log_write_percent'',
    ''storage'',
    ''connection_successful'',
    ''connection_failed'',
    ''blocked_by_firewall'',
    ''deadlock'',
    ''storage_percent'',
    ''xtp_storage_percent'',
    ''workers_percent'',
    ''sessions_percent'',
    ''cpu_limit'',
    ''cpu_used'',
    ''sqlserver_process_core_percent'',
    ''sqlserver_process_memory_percent'',
    ''tempdb_data_size'',
    ''tempdb_log_size'',
    ''tempdb_log_used_percent'',
    ''app_cpu_billed'',
    ''app_cpu_percent'',
    ''app_memory_percent'',
    ''allocated_data_storage''
],
    prepared_metrics = [],
    data = {};
    data[''errors''] = {};
    data[''metrics''] = {};

try {
    AzureDB.setParams(JSON.parse(value));

    try {
        result = AzureDB.request(
                ''https://login.microsoftonline.com/'' + encodeURIComponent(AzureDB.params.tenant_id) + ''/oauth2/token'',
                ''grant_type=client_credentials&resource='' + encodeURIComponent(''https://management.azure.com/'') + ''&client_id='' + encodeURIComponent(AzureDB.params.app_id) + ''&client_secret='' + encodeURIComponent(AzureDB.params.password)
        );

        if (''access_token'' in result) {
            AzureDB.token = result[''access_token''];
        } else {
            throw ''Auth response does not contain access token.'';
        }
    }
    catch (error) {
        data.errors.auth = error.toString();
    }

    if (!(''auth'' in data.errors)) {
        try {
            health = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'');
            if (''value'' in health && Array.isArray(health.value) && health.value.length > 0 && ''properties'' in health.value[0] && typeof health.value[0].properties === ''object'') {
                data.health = health.value[0].properties;
            }
        }
        catch (error) {
            data.errors.health = error.toString();
        }

        for (var i = 0; i < metrics.length; i += 20) {
            var chunk = metrics.slice(i, i + 20);

            prepared_metrics.push(
                chunk.map(function(element) {
                    return encodeURIComponent(element);
                }).join('','')
            );
        }

        start_date = new Date((new Date().getTime()) - 300000).toISOString().replace(/\\.\\d+/, '''');
        end_date = new Date().toISOString().replace(/\\.\\d+/, '''');
        
        for (var j in prepared_metrics) {
            try {
                metrics_data = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.Insights/metrics?metricnames='' + prepared_metrics[j] + ''&timespan='' + encodeURIComponent(start_date) + ''/'' + encodeURIComponent(end_date) + ''&api-version=2021-05-01'');
                if (''value'' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) {
                    for (k in metrics_data.value) {
                        if (''name'' in metrics_data.value[k] && typeof metrics_data.value[k].name === ''object'' && ''value'' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === ''string'' && ''timeseries'' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && ''data'' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) {
                            data.metrics[metrics_data.value[k].name.value.replace(/(\\s|\\/)+/g, '''')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1];
                        }
                    }
                }
            }
            catch (error) {
                data.errors[prepared_metrics[j]] = error.toString();
            }
        }
    }
}
catch (error) {
    data.errors.params = error.toString();
}

if (Object.keys(data.errors).length !== 0) {
    errors = ''Failed to receive data:'';
    for (var error in data.errors) {
        errors += ''\\n'' + error + '' : '' + data.errors[error];
    }
    data.errors = errors;
}
else {
    data.errors = '''';
}

return JSON.stringify(data);','','0','','','','','0',NULL,'The result of API requests is expressed in the JSON.','0','30d','0','',NULL,'{$AZURE.DATA.TIMEOUT}','','','','200','1','0','','0','0','0','0','0','0','0','e1c668773b974deeaf64c0d51d1cb02d','AZURE MICROSOFT SQL: GET DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44149','21','','10544','Azure MySQL: Get data','azure.db.mysql.data.get','1m','0d','0','0','4','','','','',NULL,NULL,E'var AzureDB = {
    params: {},
    token: null,

    setParams: function (params) {
        [''app_id'', ''password'', ''tenant_id'', ''subscription_id'', ''resource_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: '' + field + ''.'';
            }
        });

        AzureDB.params = params;
    },


    request: function (url, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var response, request = new HttpRequest();
            if (AzureDB.token) {
                request.addHeader(''Accept: application/json'');
                request.addHeader(''Authorization: Bearer '' + AzureDB.token);
            }
    
        Zabbix.log(4, ''[ Azure ] Sending request: '' + url);

        if (data !== '''') {
            request.addHeader(''Content-Type: application/x-www-form-urlencoded'');
            response = request.post(url, data);
        }
        else {
            response = request.get(url);
        }

        Zabbix.log(4, ''[ Azure ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200 || response === null) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        try {
            return JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from API.'';
        }
}

};

var metrics = [
    ''cpu_percent'',
    ''memory_percent'',
    ''network_bytes_egress'',
    ''network_bytes_ingress'',
    ''active_connections'',
    ''total_connections'',
    ''aborted_connections'',
    ''Queries'',
    ''io_consumption_percent'',
    ''storage_percent'',
    ''storage_used'',
    ''storage_limit'',
    ''backup_storage_used'',
    ''replication_lag'',
    ''cpu_credits_remaining'',
    ''cpu_credits_consumed''
],
    prepared_metrics = [],
    data = {};
    data[''errors''] = {};
    data[''metrics''] = {};

try {
    AzureDB.setParams(JSON.parse(value));

    try {
        result = AzureDB.request(
                ''https://login.microsoftonline.com/'' + encodeURIComponent(AzureDB.params.tenant_id) + ''/oauth2/token'',
                ''grant_type=client_credentials&resource='' + encodeURIComponent(''https://management.azure.com/'') + ''&client_id='' + encodeURIComponent(AzureDB.params.app_id) + ''&client_secret='' + encodeURIComponent(AzureDB.params.password)
        );

        if (''access_token'' in result) {
            AzureDB.token = result[''access_token''];
        } else {
            throw ''Auth response does not contain access token.'';
        }
    }
    catch (error) {
        data.errors.auth = error.toString();
    }

    if (!(''auth'' in data.errors)) {
        try {
            health = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'');
            if (''value'' in health && Array.isArray(health.value) && health.value.length > 0 && ''properties'' in health.value[0] && typeof health.value[0].properties === ''object'') {
                data.health = health.value[0].properties;
            }
        }
        catch (error) {
            data.errors.health = error.toString();
        }

        for (var i = 0; i < metrics.length; i += 20) {
            var chunk = metrics.slice(i, i + 20);

            prepared_metrics.push(
                chunk.map(function(element) {
                    return encodeURIComponent(element);
                }).join('','')
            );
        }

        start_date = new Date((new Date().getTime()) - 300000).toISOString().replace(/\\.\\d+/, '''');
        end_date = new Date().toISOString().replace(/\\.\\d+/, '''');
        
        for (var j in prepared_metrics) {
            try {
                metrics_data = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.Insights/metrics?metricnames='' + prepared_metrics[j] + ''&timespan='' + encodeURIComponent(start_date) + ''/'' + encodeURIComponent(end_date) + ''&api-version=2021-05-01'');
                if (''value'' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) {
                    for (k in metrics_data.value) {
                        if (''name'' in metrics_data.value[k] && typeof metrics_data.value[k].name === ''object'' && ''value'' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === ''string'' && ''timeseries'' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && ''data'' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) {
                            data.metrics[metrics_data.value[k].name.value.replace(/(\\s|\\/)+/g, '''')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1];
                        }
                    }
                }
            }
            catch (error) {
                data.errors[prepared_metrics[j]] = error.toString();
            }
        } 
    }
}
catch (error) {
    data.errors.params = error.toString();
}

if (Object.keys(data.errors).length !== 0) {
    errors = ''Failed to receive data:'';
    for (var error in data.errors) {
        errors += ''\\n'' + error + '' : '' + data.errors[error];
    }
    data.errors = errors;
}
else {
    data.errors = '''';
}

return JSON.stringify(data);','','0','','','','','0',NULL,'The result of API requests is expressed in the JSON.','0','30d','0','',NULL,'{$AZURE.DATA.TIMEOUT}','','','','200','1','0','','0','0','0','0','0','0','0','de712334db1440309fa68f9252d4f9bc','AZURE MYSQL: GET DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44150','21','','10545','Azure MySQL: Get data','azure.db.mysql.data.get','1m','0d','0','0','4','','','','',NULL,NULL,E'var AzureDB = {
    params: {},
    token: null,

    setParams: function (params) {
        [''app_id'', ''password'', ''tenant_id'', ''subscription_id'', ''resource_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: '' + field + ''.'';
            }
        });

        AzureDB.params = params;
    },


    request: function (url, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var response, request = new HttpRequest();
            if (AzureDB.token) {
                request.addHeader(''Accept: application/json'');
                request.addHeader(''Authorization: Bearer '' + AzureDB.token);
            }
    
        Zabbix.log(4, ''[ Azure ] Sending request: '' + url);

        if (data !== '''') {
            request.addHeader(''Content-Type: application/x-www-form-urlencoded'');
            response = request.post(url, data);
        }
        else {
            response = request.get(url);
        }

        Zabbix.log(4, ''[ Azure ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200 || response === null) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        try {
            return JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from API.'';
        }
}

};

var metrics = [
    ''cpu_percent'',
    ''memory_percent'',
    ''io_consumption_percent'',
    ''storage_percent'',
    ''storage_used'',
    ''storage_limit'',
    ''serverlog_storage_percent'',
    ''serverlog_storage_usage'',
    ''serverlog_storage_limit'',
    ''active_connections'',
    ''connections_failed'',
    ''seconds_behind_master'',
    ''backup_storage_used'',
    ''network_bytes_egress'',
    ''network_bytes_ingress''
],
    prepared_metrics = [],
    data = {};
    data[''errors''] = {};
    data[''metrics''] = {};

try {
    AzureDB.setParams(JSON.parse(value));

    try {
        result = AzureDB.request(
                ''https://login.microsoftonline.com/'' + encodeURIComponent(AzureDB.params.tenant_id) + ''/oauth2/token'',
                ''grant_type=client_credentials&resource='' + encodeURIComponent(''https://management.azure.com/'') + ''&client_id='' + encodeURIComponent(AzureDB.params.app_id) + ''&client_secret='' + encodeURIComponent(AzureDB.params.password)
        );

        if (''access_token'' in result) {
            AzureDB.token = result[''access_token''];
        } else {
            throw ''Auth response does not contain access token.'';
        }
    }
    catch (error) {
        data.errors.auth = error.toString();
    }

    if (!(''auth'' in data.errors)) {
        try {
            health = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'');
            if (''value'' in health && Array.isArray(health.value) && health.value.length > 0 && ''properties'' in health.value[0] && typeof health.value[0].properties === ''object'') {
                data.health = health.value[0].properties;
            }
        }
        catch (error) {
            data.errors.health = error.toString();
        }

        for (var i = 0; i < metrics.length; i += 20) {
            var chunk = metrics.slice(i, i + 20);

            prepared_metrics.push(
                chunk.map(function(element) {
                    return encodeURIComponent(element);
                }).join('','')
            );
        }

        start_date = new Date((new Date().getTime()) - 300000).toISOString().replace(/\\.\\d+/, '''');
        end_date = new Date().toISOString().replace(/\\.\\d+/, '''');
        
        for (var j in prepared_metrics) {
            try {
                metrics_data = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.Insights/metrics?metricnames='' + prepared_metrics[j] + ''&timespan='' + encodeURIComponent(start_date) + ''/'' + encodeURIComponent(end_date) + ''&api-version=2021-05-01'');
                if (''value'' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) {
                    for (k in metrics_data.value) {
                        if (''name'' in metrics_data.value[k] && typeof metrics_data.value[k].name === ''object'' && ''value'' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === ''string'' && ''timeseries'' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && ''data'' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) {
                            data.metrics[metrics_data.value[k].name.value.replace(/(\\s|\\/)+/g, '''')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1];
                        }
                    }
                }
            }
            catch (error) {
                data.errors[prepared_metrics[j]] = error.toString();
            }
        } 
    }
}
catch (error) {
    data.errors.params = error.toString();
}

if (Object.keys(data.errors).length !== 0) {
    errors = ''Failed to receive data:'';
    for (var error in data.errors) {
        errors += ''\\n'' + error + '' : '' + data.errors[error];
    }
    data.errors = errors;
}
else {
    data.errors = '''';
}

return JSON.stringify(data);','','0','','','','','0',NULL,'The result of API requests is expressed in the JSON.','0','30d','0','',NULL,'{$AZURE.DATA.TIMEOUT}','','','','200','1','0','','0','0','0','0','0','0','0','cd62d92ef0384ea9acf0cae71c88ebc6','AZURE MYSQL: GET DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44151','21','','10546','Azure PostgreSQL: Get data','azure.db.pgsql.data.get','1m','0d','0','0','4','','','','',NULL,NULL,E'var AzureDB = {
    params: {},
    token: null,

    setParams: function (params) {
        [''app_id'', ''password'', ''tenant_id'', ''subscription_id'', ''resource_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: '' + field + ''.'';
            }
        });

        AzureDB.params = params;
    },


    request: function (url, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var response, request = new HttpRequest();
            if (AzureDB.token) {
                request.addHeader(''Accept: application/json'');
                request.addHeader(''Authorization: Bearer '' + AzureDB.token);
            }
    
        Zabbix.log(4, ''[ Azure ] Sending request: '' + url);

        if (data !== '''') {
            request.addHeader(''Content-Type: application/x-www-form-urlencoded'');
            response = request.post(url, data);
        }
        else {
            response = request.get(url);
        }

        Zabbix.log(4, ''[ Azure ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200 || response === null) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        try {
            return JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from API.'';
        }
}

};

var metrics = [
    ''cpu_percent'',
    ''memory_percent'',
    ''iops'',
    ''disk_queue_depth'',
    ''read_throughput'',
    ''write_throughput'',
    ''read_iops'',
    ''write_iops'',
    ''network_bytes_egress'',
    ''network_bytes_ingress'',
    ''active_connections'',
    ''connections_failed'',
    ''connections_succeeded'',
    ''storage_percent'',
    ''storage_used'',
    ''storage_free'',
    ''txlogs_storage_used'',
    ''backup_storage_used'',
    ''maximum_used_transactionIDs'',
    ''cpu_credits_remaining'',
    ''cpu_credits_consumed''
],
    prepared_metrics = [],
    data = {};
    data[''errors''] = {};
    data[''metrics''] = {};

try {
    AzureDB.setParams(JSON.parse(value));

    try {
        result = AzureDB.request(
                ''https://login.microsoftonline.com/'' + encodeURIComponent(AzureDB.params.tenant_id) + ''/oauth2/token'',
                ''grant_type=client_credentials&resource='' + encodeURIComponent(''https://management.azure.com/'') + ''&client_id='' + encodeURIComponent(AzureDB.params.app_id) + ''&client_secret='' + encodeURIComponent(AzureDB.params.password)
        );

        if (''access_token'' in result) {
            AzureDB.token = result[''access_token''];
        } else {
            throw ''Auth response does not contain access token.'';
        }
    }
    catch (error) {
        data.errors.auth = error.toString();
    }

    if (!(''auth'' in data.errors)) {
        try {
            health = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'');
            if (''value'' in health && Array.isArray(health.value) && health.value.length > 0 && ''properties'' in health.value[0] && typeof health.value[0].properties === ''object'') {
                data.health = health.value[0].properties;
            }
        }
        catch (error) {
            data.errors.health = error.toString();
        }

        for (var i = 0; i < metrics.length; i += 20) {
            var chunk = metrics.slice(i, i + 20);

            prepared_metrics.push(
                chunk.map(function(element) {
                    return encodeURIComponent(element);
                }).join('','')
            );
        }

        start_date = new Date((new Date().getTime()) - 600000).toISOString().replace(/\\.\\d+/, '''');
        end_date = new Date().toISOString().replace(/\\.\\d+/, '''');
        
        for (var j in prepared_metrics) {
            try {
                metrics_data = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.Insights/metrics?metricnames='' + prepared_metrics[j] + ''&timespan='' + encodeURIComponent(start_date) + ''/'' + encodeURIComponent(end_date) + ''&api-version=2021-05-01'');
                if (''value'' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) {
                    for (k in metrics_data.value) {
                        if (''name'' in metrics_data.value[k] && typeof metrics_data.value[k].name === ''object'' && ''value'' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === ''string'' && ''timeseries'' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && ''data'' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) {
                            if (metrics_data.value[k].name.value === ''disk_queue_depth'' ||
                                metrics_data.value[k].name.value === ''read_throughput'' ||
                                metrics_data.value[k].name.value === ''write_throughput'' ||
                                metrics_data.value[k].name.value === ''read_iops'' ||
                                metrics_data.value[k].name.value === ''write_iops'') {
                                    data.metrics[metrics_data.value[k].name.value.replace(/(\\s|\\/)+/g, '''')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 6];
                            } else {
                                data.metrics[metrics_data.value[k].name.value.replace(/(\\s|\\/)+/g, '''')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1];
                            }
                        }
                    }
                }
            }
            catch (error) {
                data.errors[prepared_metrics[j]] = error.toString();
            }
        } 
    }
}
catch (error) {
    data.errors.params = error.toString();
}

if (Object.keys(data.errors).length !== 0) {
    errors = ''Failed to receive data:'';
    for (var error in data.errors) {
        errors += ''\\n'' + error + '' : '' + data.errors[error];
    }
    data.errors = errors;
}
else {
    data.errors = '''';
}

return JSON.stringify(data);','','0','','','','','0',NULL,'The result of API requests is expressed in the JSON.','0','30d','0','',NULL,'{$AZURE.DATA.TIMEOUT}','','','','200','1','0','','0','0','0','0','0','0','0','1792c0566e8a438dad5e299d8f5b9094','AZURE POSTGRESQL: GET DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44152','21','','10547','Azure PostgreSQL: Get data','azure.db.pgsql.data.get','1m','0d','0','0','4','','','','',NULL,NULL,E'var AzureDB = {
    params: {},
    token: null,

    setParams: function (params) {
        [''app_id'', ''password'', ''tenant_id'', ''subscription_id'', ''resource_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: '' + field + ''.'';
            }
        });

        AzureDB.params = params;
    },


    request: function (url, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var response, request = new HttpRequest();
            if (AzureDB.token) {
                request.addHeader(''Accept: application/json'');
                request.addHeader(''Authorization: Bearer '' + AzureDB.token);
            }
    
        Zabbix.log(4, ''[ Azure ] Sending request: '' + url);

        if (data !== '''') {
            request.addHeader(''Content-Type: application/x-www-form-urlencoded'');
            response = request.post(url, data);
        }
        else {
            response = request.get(url);
        }

        Zabbix.log(4, ''[ Azure ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200 || response === null) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        try {
            return JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from API.'';
        }
}

};

var metrics = [
    ''cpu_percent'',
    ''memory_percent'',
    ''io_consumption_percent'',
    ''storage_percent'',
    ''storage_used'',
    ''storage_limit'',
    ''serverlog_storage_percent'',
    ''serverlog_storage_usage'',
    ''serverlog_storage_limit'',
    ''active_connections'',
    ''connections_failed'',
    ''backup_storage_used'',
    ''network_bytes_egress'',
    ''network_bytes_ingress'',
    ''pg_replica_log_delay_in_seconds'',
    ''pg_replica_log_delay_in_bytes''
],
    prepared_metrics = [],
    data = {};
    data[''errors''] = {};
    data[''metrics''] = {};

try {
    AzureDB.setParams(JSON.parse(value));

    try {
        result = AzureDB.request(
                ''https://login.microsoftonline.com/'' + encodeURIComponent(AzureDB.params.tenant_id) + ''/oauth2/token'',
                ''grant_type=client_credentials&resource='' + encodeURIComponent(''https://management.azure.com/'') + ''&client_id='' + encodeURIComponent(AzureDB.params.app_id) + ''&client_secret='' + encodeURIComponent(AzureDB.params.password)
        );

        if (''access_token'' in result) {
            AzureDB.token = result[''access_token''];
        } else {
            throw ''Auth response does not contain access token.'';
        }
    }
    catch (error) {
        data.errors.auth = error.toString();
    }

    if (!(''auth'' in data.errors)) {
        try {
            health = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'');
            if (''value'' in health && Array.isArray(health.value) && health.value.length > 0 && ''properties'' in health.value[0] && typeof health.value[0].properties === ''object'') {
                data.health = health.value[0].properties;
            }
        }
        catch (error) {
            data.errors.health = error.toString();
        }

        for (var i = 0; i < metrics.length; i += 20) {
            var chunk = metrics.slice(i, i + 20);

            prepared_metrics.push(
                chunk.map(function(element) {
                    return encodeURIComponent(element);
                }).join('','')
            );
        }

        start_date = new Date((new Date().getTime()) - 300000).toISOString().replace(/\\.\\d+/, '''');
        end_date = new Date().toISOString().replace(/\\.\\d+/, '''');
        
        for (var j in prepared_metrics) {
            try {
                metrics_data = AzureDB.request(''https://management.azure.com'' + AzureDB.params.resource_id + ''/providers/Microsoft.Insights/metrics?metricnames='' + prepared_metrics[j] + ''&timespan='' + encodeURIComponent(start_date) + ''/'' + encodeURIComponent(end_date) + ''&api-version=2021-05-01'');
                if (''value'' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) {
                    for (k in metrics_data.value) {
                        if (''name'' in metrics_data.value[k] && typeof metrics_data.value[k].name === ''object'' && ''value'' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === ''string'' && ''timeseries'' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && ''data'' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) {
                            data.metrics[metrics_data.value[k].name.value.replace(/(\\s|\\/)+/g, '''')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1];
                        }
                    }
                }
            }
            catch (error) {
                data.errors[prepared_metrics[j]] = error.toString();
            }
        } 
    }
}
catch (error) {
    data.errors.params = error.toString();
}

if (Object.keys(data.errors).length !== 0) {
    errors = ''Failed to receive data:'';
    for (var error in data.errors) {
        errors += ''\\n'' + error + '' : '' + data.errors[error];
    }
    data.errors = errors;
}
else {
    data.errors = '''';
}

return JSON.stringify(data);','','0','','','','','0',NULL,'The result of API requests is expressed in the JSON.','0','30d','0','',NULL,'{$AZURE.DATA.TIMEOUT}','','','','200','1','0','','0','0','0','0','0','0','0','e47d863822e64e6292bfa3e684bc2839','AZURE POSTGRESQL: GET DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44153','21','','10548','Azure: Get data','azure.vm.data.get','1m','0d','0','0','4','','','','',NULL,NULL,E'var AzureVM = {
    params: {},
    token: null,

    setParams: function (params) {
        [''app_id'', ''password'', ''tenant_id'', ''subscription_id'', ''resource_id''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: '' + field + ''.'';
            }
        });

        AzureVM.params = params;
    },


    request: function (url, data) {
        if (typeof data === ''undefined'' || data === null) {
            data = '''';
        }

        var response, request = new HttpRequest();
            if (AzureVM.token) {
                request.addHeader(''Accept: application/json'');
                request.addHeader(''Authorization: Bearer '' + AzureVM.token);
            }
    
        Zabbix.log(4, ''[ Azure ] Sending request: '' + url);

        if (data !== '''') {
            request.addHeader(''Content-Type: application/x-www-form-urlencoded'');
            response = request.post(url, data);
        }
        else {
            response = request.get(url);
        }

        Zabbix.log(4, ''[ Azure ] Received response with status code '' + request.getStatus() + '': '' + response);

        if (request.getStatus() !== 200 || response === null) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }

        try {
            return JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from API.'';
        }
}

};

var metrics = [
    ''Percentage CPU'',
    ''Network In'',
    ''Network Out'',
    ''Disk Read Bytes'',
    ''Disk Write Bytes'',
    ''Disk Read Operations/Sec'',
    ''Disk Write Operations/Sec'',
    ''CPU Credits Remaining'',
    ''CPU Credits Consumed'',
    ''Data Disk Read Bytes/sec'',
    ''Data Disk Write Bytes/sec'',
    ''Data Disk Read Operations/Sec'',
    ''Data Disk Write Operations/Sec'',
    ''Data Disk Queue Depth'',
    ''Data Disk Bandwidth Consumed Percentage'',
    ''Data Disk IOPS Consumed Percentage'',
    ''Data Disk Target Bandwidth'',
    ''Data Disk Target IOPS'',
    ''Data Disk Max Burst Bandwidth'',
    ''Data Disk Max Burst IOPS'',
    ''Data Disk Used Burst BPS Credits Percentage'',
    ''Data Disk Used Burst IO Credits Percentage'',
    ''OS Disk Read Bytes/sec'',
    ''OS Disk Write Bytes/sec'',
    ''OS Disk Read Operations/Sec'',
    ''OS Disk Write Operations/Sec'',
    ''OS Disk Queue Depth'',
    ''OS Disk Bandwidth Consumed Percentage'',
    ''OS Disk IOPS Consumed Percentage'',
    ''OS Disk Target Bandwidth'',
    ''OS Disk Target IOPS'',
    ''OS Disk Max Burst Bandwidth'',
    ''OS Disk Max Burst IOPS'',
    ''OS Disk Used Burst BPS Credits Percentage'',
    ''OS Disk Used Burst IO Credits Percentage'',
    ''Inbound Flows'',
    ''Outbound Flows'',
    ''Inbound Flows Maximum Creation Rate'',
    ''Outbound Flows Maximum Creation Rate'',
    ''Premium Data Disk Cache Read Hit'',
    ''Premium Data Disk Cache Read Miss'',
    ''Premium OS Disk Cache Read Hit'',
    ''Premium OS Disk Cache Read Miss'',
    ''VM Cached Bandwidth Consumed Percentage'',
    ''VM Cached IOPS Consumed Percentage'',
    ''VM Uncached Bandwidth Consumed Percentage'',
    ''VM Uncached IOPS Consumed Percentage'',
    ''Network In Total'',
    ''Network Out Total'',
    ''Available Memory Bytes''
],
    prepared_metrics = [],
    data = {};
    data[''errors''] = {};
    data[''metrics''] = {};

try {
    AzureVM.setParams(JSON.parse(value));

    try {
        result = AzureVM.request(
                ''https://login.microsoftonline.com/'' + encodeURIComponent(AzureVM.params.tenant_id) +''/oauth2/token'',
                ''grant_type=client_credentials&resource='' + encodeURIComponent(''https://management.azure.com/'') + ''&client_id='' + encodeURIComponent(AzureVM.params.app_id) + ''&client_secret='' + encodeURIComponent(AzureVM.params.password)
        );

        if (''access_token'' in result) {
            AzureVM.token = result[''access_token''];
        } else {
            throw ''Auth response does not contain access token.'';
        }
    }
    catch (error) {
        data.errors.auth = error.toString();
    }

    if (!(''auth'' in data.errors)) {
        try {
            health = AzureVM.request(''https://management.azure.com'' + AzureVM.params.resource_id + ''/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'');
            if (''value'' in health && Array.isArray(health.value) && health.value.length > 0 && ''properties'' in health.value[0] && typeof health.value[0].properties === ''object'') {
                data.health = health.value[0].properties;
            }
        }
        catch (error) {
            data.errors.health = error.toString();
        }

        for (var i = 0; i < metrics.length; i += 20) {
            var chunk = metrics.slice(i, i + 20);

            prepared_metrics.push(
                chunk.map(function(element) {
                    return encodeURIComponent(element);
                }).join('','')
            );
        }

        start_date = new Date((new Date().getTime()) - 300000).toISOString().replace(/\\.\\d+/, '''');
        end_date = new Date().toISOString().replace(/\\.\\d+/, '''');
        
        for (var j in prepared_metrics) {
            try {
                metrics_data = AzureVM.request(''https://management.azure.com'' + AzureVM.params.resource_id + ''/providers/Microsoft.Insights/metrics?metricnames='' + prepared_metrics[j] + ''&timespan='' + encodeURIComponent(start_date) + ''/'' + encodeURIComponent(end_date) + ''&api-version=2021-05-01'');
                if (''value'' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) {
                    for (k in metrics_data.value) {
                        if (''name'' in metrics_data.value[k] && typeof metrics_data.value[k].name === ''object'' && ''value'' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === ''string'' && ''timeseries'' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && ''data'' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 2) {
                            data.metrics[metrics_data.value[k].name.value.replace(/(\\s|\\/)+/g, '''')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 3];
                        }
                    }
                }
            }
            catch (error) {
                data.errors[prepared_metrics[j]] = error.toString();
            }
        } 
    }
}
catch (error) {
    data.errors.params = error.toString();
}

if (Object.keys(data.errors).length !== 0) {
    errors = ''Failed to receive data:'';
    for (var error in data.errors) {
        errors += ''\\n'' + error + '' : '' + data.errors[error];
    }
    data.errors = errors;
}
else {
    data.errors = '''';
}

return JSON.stringify(data);','','0','','','','','0',NULL,'The result of API requests is expressed in the JSON.','0','30d','0','',NULL,'{$AZURE.DATA.TIMEOUT}','','','','200','1','0','','0','0','0','0','0','0','0','cff54514d795495da8bc1152e02631aa','AZURE: GET DATA');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44343','19','','10553','Control-M: Get Control-M servers','controlm.servers','10m','0','0','0','4','','','','',NULL,NULL,'','','0','','','','','0',NULL,'Gets a list of servers.','0','30d','0','',NULL,'3s','{$API.URI.ENDPOINT}/config/servers','','','200','1','0','x-api-key: {$API.TOKEN}','0','0','0','0','0','0','0','7d9ed576aeb045798b78414c89f3e597','CONTROL-M: GET CONTROL-M SERVERS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44344','19','','10553','Control-M: Get SLA services','controlm.services','1m','0','0','0','4','','','','',NULL,NULL,'','','0','','','','','0',NULL,'Gets all the SLA active services.','0','30d','0','',NULL,'3s','{$API.URI.ENDPOINT}/run/services/sla','','','200','1','0','x-api-key: {$API.TOKEN}','0','0','0','0','0','0','0','2bd2c27b8dc74656a00f6d2006399388','CONTROL-M: GET SLA SERVICES');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44345','19','','10554','Control-M: Get agents','controlm.agents','1m','0','0','0','4','','','','',NULL,NULL,'','','0','','','','','0',NULL,'Gets agents for the server.','0','30d','0','',NULL,'3s','{$API.URI.ENDPOINT}/config/server/{$SERVER.NAME}/agents','','','200','1','0','x-api-key: {$API.TOKEN}','0','0','0','0','0','0','0','94e45567531543119d6e36b4463684c7','CONTROL-M: GET AGENTS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44346','19','','10554','Control-M: Get jobs','controlm.jobs','1m','0','0','0','4','','','','',NULL,NULL,'','','0','','','','','0',NULL,'Gets the status of jobs.','0','30d','0','',NULL,'3s','{$API.URI.ENDPOINT}/run/jobs/status','[{"ctm":"{$SERVER.NAME}"}]','','200','1','0','x-api-key: {$API.TOKEN}','0','0','0','0','0','0','0','1f60be3e3fe543d697047ffcad7b0a7f','CONTROL-M: GET JOBS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44347','19','','10554','Control-M: Get Control-M server stats','controlm.server.stats','1m','0','0','0','4','','','','',NULL,NULL,'','','0','','','','','0',NULL,'Gets the statistics of the server.','0','30d','0','',NULL,'3s','{$API.URI.ENDPOINT}/config/servers','','','200','1','0','x-api-key: {$API.TOKEN}','0','0','0','0','0','0','0','67ca527f452b43aab2e3171e49f96194','CONTROL-M: GET CONTROL-M SERVER STATS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44384','21','','10556','Veeam: Get metrics','veeam.get.metrics','5m','0d','0','0','4','','','','',NULL,NULL,E'var Veeam = {
    params: {},
    token: '''',

    setParams: function (params) {
        [''api_endpoint'', ''user'', ''password'', ''created_after''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: '' + field + ''.'';
            }
        });

        Veeam.params = params;
        if (typeof Veeam.params.api_endpoint === ''string'' && !Veeam.params.api_endpoint.endsWith(''/'')) {
            Veeam.params.api_endpoint += ''/'';
        }
        if (Veeam.params.created_after >= 365 || Veeam.params.created_after <= 1) {
            throw ''Incorrect "created_after" parameter given: '' + Veeam.params.created_after + ''\\nMust be between 1 and 365 days.'';
        }
    },

    login: function () {

        var resp, login = new HttpRequest();
        if (typeof Veeam.params.http_proxy !== ''undefined'' && Veeam.params.http_proxy !== '''') {
            login.setProxy(Veeam.params.http_proxy);
        }
        login.addHeader(''Content-Type: application/x-www-form-urlencoded'');
        login.addHeader(''x-api-version: 1.0-rev2'');
        resp = login.post(Veeam.params.api_endpoint+ ''api/oauth2/token'', 
        ''grant_type=password&username='' + encodeURIComponent(Veeam.params.user) + ''&password=''+ encodeURIComponent(Veeam.params.password));

        if (login.getStatus() !== 200 || resp === null) {
            throw ''Login failed with status code '' + login.getStatus() + '': '' + resp;
        }

        try {
            resp =  JSON.parse(resp);
        }
        catch (error) {
            throw ''Failed to parse authentication token for the logon session.''; 
        }
        if (!resp.hasOwnProperty(''access_token'')) {
            throw ''Auth response does not contain access token.'';
        }
        Veeam.token = resp[''access_token'']

    },

    request: function (url) {
  
        var response, request = new HttpRequest();
        if (typeof Veeam.params.http_proxy !== ''undefined'' && Veeam.params.http_proxy !== '''') {
            request.setProxy(Veeam.params.http_proxy);
        }
        if (Veeam.token) {
            request.addHeader(''Authorization: Bearer '' + Veeam.token);
            request.addHeader(''x-api-version: 1.0-rev2'');
            response = request.get(url);
        }
        if (request.getStatus() !== 200 || response === null) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }
        try {
            return JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from API.'';
        } 
    },

    getMetricsData: function() {
        var data = {};
        ms = 86400000;
        start_date = new Date((new Date().getTime()) - ms * Veeam.params.created_after).toISOString().replace(/\\.\\d+/, '''');
        endpoints = {
            ''proxies'': ''api/v1/backupInfrastructure/proxies'',
            ''repositories'': ''api/v1/backupInfrastructure/repositories'',
            ''managedServers'': ''api/v1/backupInfrastructure/managedServers'',
            ''repositories_states'': ''api/v1/backupInfrastructure/repositories/states'',
            ''services'': ''api/v1/services'',
            ''jobs_states'': ''api/v1/jobs/states'',
            ''backups'': ''api/v1/backups'',
            ''backupObjects'': ''api/v1/backupObjects'',
            ''objectRestorePoints'': ''api/v1/objectRestorePoints'',
            ''sessions'': ''api/v1/sessions?createdAfterFilter='' + encodeURIComponent(start_date)
        };

        Object.keys(endpoints).forEach(function (key) {
            data[key] = Veeam.request(Veeam.params.api_endpoint + endpoints[key]);
        });

        return data;
    }
};

try {
    Veeam.setParams(JSON.parse(value));
    Veeam.login();
    return JSON.stringify(Veeam.getMetricsData());
}
catch (error) {
    error += (String(error).endsWith(''.'')) ? '''' : ''.'';
    Zabbix.log(3, ''[ VEEAM ] ERROR: '' + error);
    return JSON.stringify({''error'': error});
}','','0','','','','','0',NULL,'The result of API requests is expressed in the JSON.','0','30d','0','',NULL,'{$VEEAM.DATA.TIMEOUT}','','','','200','1','0','','0','0','0','0','0','0','0','f8ef587e6d204e7da6e27e56b1131ca4','VEEAM: GET METRICS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44406','21','','10557','Veeam Manager: Get metrics','veeam.manager.get.metrics','5m','0d','0','0','4','','','','',NULL,NULL,'var Veeam = {
    params: {},

    setParams: function (params) {
        [''api_endpoint'', ''user'', ''password''].forEach(function (field) {
            if (typeof params !== ''object'' || typeof params[field] === ''undefined'' || params[field] === '''') {
                throw ''Required param is not set: '' + field + ''.'';
            }
        });

        Veeam.params = params;
        if (typeof Veeam.params.api_endpoint === ''string'' && !Veeam.params.api_endpoint.endsWith(''/'')) {
            Veeam.params.api_endpoint += ''/'';
        }
    },

    request: function (url) {
        var response, request = new HttpRequest();
        if (typeof Veeam.params.http_proxy !== ''undefined'' && Veeam.params.http_proxy !== '''') {
            request.setProxy(Veeam.params.http_proxy);
        }
        request.addHeader(''Accept: application/json'');
        request.addHeader(''Authorization: Basic '' + btoa(Veeam.params.user + '':'' + Veeam.params.password));
        request.post(Veeam.params.api_endpoint + ''api/sessionMngr'');
        response = request.get(url);
        if (request.getStatus() !== 200 || response === null) {
            throw ''Request failed with status code '' + request.getStatus() + '': '' + response;
        }
        try {
            return JSON.parse(response);
        }
        catch (error) {
            throw ''Failed to parse response received from API.'';
        }
    },

    getMetricsData: function() {
        var data = {};
        endpoints = {
            ''backupFiles'': ''api/backupFiles'',
        };
        reports_summary = Veeam.request(Veeam.params.api_endpoint + ''api/reports/summary'')
        if (typeof reports_summary !== ''object'' || reports_summary.hasOwnProperty(''Links'') === false)
            throw ''Failed response parse. Check debug log for more information.'';
        reports_summary.Links.forEach(function (field)  {
                data[field.Name] = Veeam.request(field.Href)
            })
        Object.keys(endpoints).forEach(function (key) {
            data[key] = Veeam.request(Veeam.params.api_endpoint + endpoints[key]);
            if (typeof data[key] !== ''object'' || data[key].hasOwnProperty(''Refs'') === false)
                throw ''Failed response parse. Check debug log for more information.'';
            data[key].Refs.forEach(function (field) {
                data[field.Name] = Veeam.request(field.Href)
            })
        
        })
        return data;
    }

};  
try {
    Veeam.setParams(JSON.parse(value));
    return JSON.stringify(Veeam.getMetricsData());
}
catch (error) {
    error += (String(error).endsWith(''.'')) ? '''' : ''.'';
    Zabbix.log(3, ''[ VEEAM MANAGER ] ERROR: '' + error);
    return JSON.stringify({''error'': error});
}','','0','','','','','0',NULL,'The result of API requests is expressed in the JSON.','0','30d','0','',NULL,'{$VEEAM.MANAGER.DATA.TIMEOUT}','','','','200','1','0','','0','0','0','0','0','0','0','525a61ff4fb747efab6ac58d1ac8b7c4','VEEAM MANAGER: GET METRICS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44420','0','','10335','Archivelog ''{#DEST_NAME}'': Get archive log info','oracle.archive.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DEST_NAME}"]','5m','0','0','0','4','','','','',NULL,NULL,'','','0','','','','','2',NULL,'It gets the archivelog statistics.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','1ad93880e4314d68b9e1aa4e00f03b6e','ARCHIVELOG ''{#DEST_NAME}'': GET ARCHIVE LOG INFO');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44421','0','','10335','Oracle Database ''{#DBNAME}'': Get CDB and No-CDB info','oracle.cdb.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DBNAME}"]','1m','0','0','0','4','','','','',NULL,NULL,'','','0','','','','','2',NULL,'It gets the information about the container database (CDB) and non-CDB database on an instance.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','1bad65e85d8b482d9cd83b1d202f8d8c','ORACLE DATABASE ''{#DBNAME}'': GET CDB AND NO-CDB INFO');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44422','0','','10335','ASM ''{#DGNAME}'': Get ASM stats','oracle.diskgroups.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DGNAME}"]','1m','0','0','0','4','','','','',NULL,NULL,'','','0','','','','','2',NULL,'It gets the ASM disk group statistics.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','cb703b07fc514ce5aedc561896bcd53f','ASM ''{#DGNAME}'': GET ASM STATS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44423','0','','10335','Oracle Database ''{#DBNAME}'': Get PDB info','oracle.pdb.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DBNAME}"]','1m','0','0','0','4','','','','',NULL,NULL,'','','0','','','','','2',NULL,'It gets the information about the PDB database on an instance.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','ca4452418d2641bd87fa75e946c2bf98','ORACLE DATABASE ''{#DBNAME}'': GET PDB INFO');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44424','0','','10335','Oracle TBS ''{#TABLESPACE}'': Get tablespaces stats','oracle.ts.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#TABLESPACE}","{#CONTENTS}"]','1m','0','0','0','4','','','','',NULL,NULL,'','','0','','','','','2',NULL,'It gets the statistics of the tablespace.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','97ac4acedcde465b8d004a8ac476dd99','ORACLE TBS ''{#TABLESPACE}'': GET TABLESPACES STATS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44443','11','','10328','Archivelog ''{#DEST_NAME}'': Get archive log info','db.odbc.get[get_archivelog_{#DEST_NAME}_stat,,"Driver={$ORACLE.DRIVER};DBQ=//{HOST.CONN}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]','5m','0','0','0','4','','','','',NULL,NULL,'SELECT
d.dest_name, DECODE (d.status, ''VALID'',3, ''DEFERRED'', 2, ''ERROR'', 1, 0) AS status,
d.log_sequence,
d.error
FROM v$archive_dest d , v$database db
WHERE d.dest_name = ''{#DEST_NAME}'' AND d.status != ''INACTIVE'' AND db.log_mode = ''ARCHIVELOG'';','','0','{$ORACLE.USER}','{$ORACLE.PASSWORD}','','','2',NULL,'It gets the archivelog statistics.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','1a6e01f90dca47459975632c14ce5a39','ARCHIVELOG ''{#DEST_NAME}'': GET ARCHIVE LOG INFO');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44444','11','','10328','ASM ''{#DGNAME}'': Get ASM stats','db.odbc.get[get_asm_{#DGNAME}_stat,,"Driver={$ORACLE.DRIVER};DBQ=//{HOST.CONN}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]','1m','0','0','0','4','','','','',NULL,NULL,'SELECT
name AS dgname,
ROUND(total_mb / DECODE(TYPE, ''NORMAL'', 2, ''HIGH'', 3, ''EXTERN'', 1)*1024*1024) AS size_byte,
ROUND(usable_file_mb*1024*1024 ) AS free_size_byte,
ROUND(100-(usable_file_mb /(total_mb / DECODE(TYPE, ''NORMAL'', 2, ''HIGH'', 3, ''EXTERN'', 1)))* 100, 2) AS used_percent
FROM v$asm_diskgroup
WHERE name = ''{#DGNAME}'';','','0','{$ORACLE.USER}','{$ORACLE.PASSWORD}','','','2',NULL,'It gets the ASM disk group statistics.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','63fad55a2ced487aa30017b33bf1692e','ASM ''{#DGNAME}'': GET ASM STATS');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44445','11','','10328','Oracle Database ''{#DBNAME}'': Get CDB and No-CDB info','db.odbc.get[get_cdb_{#DBNAME}_info,,"Driver={$ORACLE.DRIVER};DBQ=//{HOST.CONN}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]','1m','0','0','0','4','','','','',NULL,NULL,'SELECT name as DBNAME,
DECODE(open_mode, ''MOUNTED'', 1, ''READ ONLY'', 2, ''READ WRITE'', 3, ''READ ONLY WITH APPLY'', 4, ''MIGRATE'', 5, 0) AS open_mode,
DECODE(database_role, ''SNAPSHOT STANDBY'', 1, ''LOGICAL STANDBY'', 2, ''PHYSICAL STANDBY'', 3, ''PRIMARY'', 4, ''FAR SYNC'', 5, 0) AS ROLE,
DECODE(force_logging, ''YES'',1,''NO'',0,0) AS force_logging,
DECODE(log_mode, ''MANUAL'',2 ,''ARCHIVELOG'',1,''NOARCHIVELOG'',0,0) AS log_mode
FROM v$database
WHERE name = ''{#DBNAME}'';','','0','{$ORACLE.USER}','{$ORACLE.PASSWORD}','','','2',NULL,'It gets the information about the container database (CDB) and non-CDB database on an instance.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','5de7c786988d49d0b50f28d2d622db62','ORACLE DATABASE ''{#DBNAME}'': GET CDB AND NO-CDB INFO');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44446','11','','10328','Oracle Database ''{#DBNAME}'': Get PDB info','db.odbc.get[get_pdb_{#DBNAME}_info,,"Driver={$ORACLE.DRIVER};DBQ=//{HOST.CONN}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]','1m','0','0','0','4','','','','',NULL,NULL,'SELECT
name as DBNAME,
DECODE(open_mode, ''MOUNTED'', 1, ''READ ONLY'', 2, ''READ WRITE'', 3, ''READ ONLY WITH APPLY'', 4, ''MIGRATE'', 5, 0) AS open_mode
FROM v$pdbs
WHERE name = ''{#DBNAME}'';','','0','{$ORACLE.USER}','{$ORACLE.PASSWORD}','','','2',NULL,'It gets the information about the PDB database on an instance.','0','30d','0','',NULL,'3s','','','','200','1','0','','0','0','0','0','0','0','0','cedcebd0b7ce474c9681022fcc75df1c','ORACLE DATABASE ''{#DBNAME}'': GET PDB INFO');
INSERT INTO items (itemid,type,snmp_oid,hostid,name,key_,delay,history,trends,status,value_type,trapper_hosts,units,formula,logtimefmt,templateid,valuemapid,params,ipmi_sensor,authtype,username,password,publickey,privatekey,flags,interfaceid,description,inventory_link,lifetime,evaltype,jmx_endpoint,master_itemid,timeout,url,query_fields,posts,status_codes,follow_redirects,post_type,headers,retrieve_mode,request_method,output_format,verify_peer,verify_host,allow_traps,discover,uuid,name_upper) values ('44447','11','','10328','Oracle TBS ''{#TABLESPACE}'': Get tablespaces stats','db.odbc.get[get_tablespace_{#TABLESPACE}_stats,,"Driver={$ORACLE.DRIVER};DBQ=//{HOST.CONN}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]','1m','0','0','0','4','','','','',NULL,NULL,'SELECT df.tablespace_name                                                                         AS TABLESPACE,
       df.type                                                                                    AS TYPE,
       NVL(SUM(df.BYTES), 0)                                                                      AS FILE_BYTES,
       NVL(SUM(df.MAX_BYTES), 0)                                                                  AS MAX_BYTES,
       NVL(SUM(f.FREE), 0)                                                                        AS FREE_BYTES,
       SUM(df.BYTES) - SUM(f.FREE)                                                                AS USED_BYTES,
       ROUND(DECODE(SUM(df.MAX_BYTES), 0, 0, (SUM(df.BYTES) / SUM(df.MAX_BYTES) * 100)), 2)       AS USED_PCT_MAX,
       ROUND(DECODE(SUM(df.BYTES), 0, 0, (SUM(df.BYTES) - SUM(f.FREE)) / SUM(df.BYTES) * 100), 2) AS USED_FILE_PCT,
       DECODE(df.STATUS, ''ONLINE'', 1, ''OFFLINE'', 2, ''READ ONLY'', 3, 0)                            AS STATUS
FROM (SELECT ddf.file_id,
             dt.contents                              AS TYPE,
             dt.STATUS,
             ddf.file_name,
             ddf.tablespace_name,
             TRUNC(ddf.bytes)                         AS bytes,
             TRUNC(GREATEST(ddf.bytes, ddf.maxbytes)) AS max_bytes
      FROM dba_data_files ddf,
           dba_tablespaces dt
      WHERE ddf.tablespace_name = ''{#TABLESPACE}''
          AND dt.contents = ''{#CONTENTS}''
      ) df,
     (SELECT TRUNC(SUM(bytes)) AS FREE, file_id
      FROM dba_free_space
      GROUP BY file_id) f
WHERE df.file_id = f.file_id (+)
GROUP BY df.tablespace_name, df.TYPE, df.status
UNION ALL
