<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>5.0</version>
    <date>2021-06-16T19:20:00Z</date>
    <groups>
        <group>
            <name>Templates</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Template_NetPing</template>
            <name>Template_NetPing</name>
            <description>Template for NetPing/UniPing devices</description>
            <groups>
                <group>
                    <name>Templates</name>
                </group>
            </groups>
            <discovery_rules>
                <discovery_rule>
                    <name>Current Loop Sensor Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE}, .1.3.6.1.4.1.25728.8300.1.1.1]</snmp_oid>
                    <key>CurrentLoopSensorDiscovery</key>
                    <description>Smoke Sensor (Current Loop Sensor) Discovery for NetPing/UniPing</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>Current Loop Sensor Amperage, mA</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8300.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>npCurLoopI[{#SNMPINDEX}]</key>
							<value_type>FLOAT</value_type>
                            <units>mA</units>
                            <description>Smoke Sensor (Current Loop Sensor): Current in the Loop, mA</description>
							<preprocessing>
                                <step>
                                    <type>IN_RANGE</type>
                                    <params>0
99999</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Current Loop Sensor Resistance, Ohm</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8300.1.1.5.{#SNMPINDEX}</snmp_oid>
                            <key>npCurLoopR[{#SNMPINDEX}]</key>
							<value_type>FLOAT</value_type>
                            <units>Ohm</units>
                            <description>Smoke Sensor (Current Loop Sensor): Loop Resistance, Ohm</description>
							<preprocessing>
                                <step>
                                    <type>IN_RANGE</type>
                                    <params>0
99999</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Current Loop Sensor Status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8300.1.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>npCurLoopStatus[{#SNMPINDEX}]</key>
                            <description>Smoke Sensor (Current Loop Sensor): Status</description>
                            <valuemap>
                                <name>NetPing: Current Loop Sensor Status</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=1</expression>
                                    <name>{HOST.NAME} - Current Loop Sensor Status: ALERT</name>
                                    <priority>HIGH</priority>
									<description>Smoke Sensor (Current Loop Sensor) in alert status</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=2</expression>
                                    <name>{HOST.NAME} - Current Loop Sensor Status: ALERT</name>
                                    <priority>HIGH</priority>
									<description>Smoke Sensor (Current Loop Sensor) is cut</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=3</expression>
                                    <name>{HOST.NAME} - Current Loop Sensor Status: FAILED (SHORTED)</name>
                                    <priority>HIGH</priority>
									<description>Smoke Sensor (Current Loop Sensor) is short</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=4</expression>
                                    <name>{HOST.NAME} - Current Loop Sensor Status: NOT POWERED</name>
                                    <priority>WARNING</priority>
									<description>Smoke Sensor (Current Loop Sensor) is not powered</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>Current Loop Sensor Voltage, V</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8300.1.1.4.{#SNMPINDEX}</snmp_oid>
                            <key>npCurLoopV[{#SNMPINDEX}]</key>
							<value_type>FLOAT</value_type>
                            <units>V</units>
                            <description>Smoke Sensor (Current Loop Sensor): Voltage Drop on the Loop, V</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>0
99999</params>
                                </step>
                                <step>
                                    <type>MULTIPLIER</type>
                                    <params>0.001</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
						<item_prototype>
                            <name>Current Loop Sensor Power</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8300.1.1.7.{#SNMPINDEX}</snmp_oid>
                            <key>npCurLoopPower[{#SNMPINDEX}]</key>
                            <description>Control of loop power 0=Off, 1=On, 2=reset by off/on power</description>
							<valuemap>
                                <name>NetPing: Loop Power Status</name>
                            </valuemap>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>Current Loop Sensor </name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npCurLoopStatus[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>GSM</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#GSM_STATUS},  .1.3.6.1.4.1.25728.3800.1.1]</snmp_oid>
                    <key>GsmDiscovery</key>
                    <description>GSM Discovery</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>GSM status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.3800.1.1.{#SNMPINDEX}</snmp_oid>
                            <key>npGsmFailed[{#SNMPINDEX}]</key>
							<description>Firmware's GSM module status</description>
                            <valuemap>
                                <name>NetPing: GSM Module Status</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=1</expression>
                                    <name>{HOST.NAME} - GSM failed</name>
                                    <priority>WARNING</priority>
									<description>GSM failed</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=2</expression>
                                    <name>{HOST.NAME} - GSM Fatal error</name>
                                    <priority>HIGH</priority>
									<description>GSM Fatal error</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>GSM registration</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.3800.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>npGsmRegistration[{#SNMPINDEX}]</key>
							<description>Status of modem registration in GSM network (AT+CREG? result)</description>
                            <valuemap>
                                <name>NetPing: GSM Registration</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=0 or {last()}=3 or {last()}=4</expression>
                                    <name>{HOST.NAME} - GSM registration problem</name>
									<priority>HIGH</priority>
									<description>GSM registration problem</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>GSM Strength</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.3800.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>npGsmStrength[{#SNMPINDEX}]</key>
							<description>GSM signal strength</description>
                            <preprocessing>
							    <step>
                                    <type>IN_RANGE</type>
                                    <params>0
31</params>
									<error_handler>CUSTOM_ERROR</error_handler>
                                    <error_handler_params>GSM Strength N/A</error_handler_params>
                                </step>
                                <step>
                                    <type>JAVASCRIPT</type>
                                    <params>if (value &lt;= 31 &amp;&amp; value &gt; 0) {return Math.round(100 / 31 * value)}
else {return 0}</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>GSM Strength graph {#GSM_STATUS}</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npGsmStrength[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>Humidity Sensors (HS-type) Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#H_MEMO}, .1.3.6.1.4.1.25728.8400.1.1.6]</snmp_oid>
                    <key>HumiditySensorsHSDiscovery</key>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#H_MEMO}</macro>
                                <value>\S+</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>Humidity Sensors (HS-type) Discovery for NetPing/UniPing</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>Humidity Sensor {#SNMPINDEX} High ({#H_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.1.1.7.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumSafeRangeHigh[{#SNMPINDEX}]</key>
                            <units>%</units>
							<delay>23h</delay>
                            <description>Humidity Sensors: Top Margin of Humidity Safe Range, %</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>0
100</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Humidity Sensor {#SNMPINDEX} Low ({#H_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.1.1.8.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumSafeRangeLow[{#SNMPINDEX}]</key>
                            <units>%</units>
							<delay>23h</delay>
                            <description>Humidity Sensors: Bottom Margin of Humidity Safe Range, %</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>0
100</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Humidity Sensor {#SNMPINDEX} Status ({#H_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumStatus[{#SNMPINDEX}]</key>
                            <description>Humidity Sensors: Status of Relative Humiduty</description>
                            <valuemap>
                                <name>NetPing: Humidity Sensor Status</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=3</expression>
                                    <name>{HOST.NAME} - Humidity Sensor {#SNMPINDEX} ({#H_MEMO}) Status of RH: ABOVE SAFE RANGE</name>
                                    <priority>HIGH</priority>
									<description>Relative humiduty above the save range</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=1</expression>
                                    <name>{HOST.NAME} - Humidity Sensor {#SNMPINDEX} ({#H_MEMO}) Status of RH: BELOW SAFE RANGE</name>
                                    <priority>HIGH</priority>
									<description>Relative humiduty below the save range</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=0</expression>
                                    <name>{HOST.NAME} - Humidity Sensor {#SNMPINDEX} ({#H_MEMO}) Status of RH: SENSOR FAULT</name>
                                    <priority>WARNING</priority>
									<description>Humiduty sensor is fault</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>Humidity Sensor {#SNMPINDEX} Temp High ({#H_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.1.1.9.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumTempSafeRangeHigh[{#SNMPINDEX}]</key>
                            <units>°C</units>
							<delay>23h</delay>
                            <description>Top Margin of Temperature Safe Range, °C</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>-55
150</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Humidity Sensor {#SNMPINDEX} Temp Low ({#H_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.1.1.10.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumTempSafeRangeLow[{#SNMPINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>°C</units>
							<delay>23h</delay>
                            <description>Humidity Sensors: Bottom Margin of Temperature Safe Range, °C</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>-55
150</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Humidity Sensor {#SNMPINDEX} Temp Status ({#H_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.1.1.5.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumTempStatus[{#SNMPINDEX}]</key>
                            <description>Humidity Sensors: Status of Temperature</description>
                            <valuemap>
                                <name>NetPing: Humidity Sensor Status</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=3</expression>
                                    <name>{HOST.NAME} - Humidity Sensor {#SNMPINDEX} ({#H_MEMO}) Status of Temp: ABOVE SAFE RANGE</name>
                                    <priority>HIGH</priority>
									<description>Temperature above the save range</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=1</expression>
                                    <name>{HOST.NAME} - Humidity Sensor {#SNMPINDEX} ({#H_MEMO}) Status of Temp: BELOW SAFE RANGE</name>
                                    <priority>HIGH</priority>
									<description>Temperature below the save range</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=0</expression>
                                    <name>{HOST.NAME} - Humidity Sensor {#SNMPINDEX} ({#H_MEMO}) Status of Temp: SENSOR FAULT</name>
                                    <priority>WARNING</priority>
									<description>Temperature sensor is fault</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>Humidity Sensor {#SNMPINDEX} Temperature ({#H_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.1.1.4.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumTempValue[{#SNMPINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>°C</units>
                            <description>Humidity Sensors: Temperature, °C</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>-60
200</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Humidity Sensor {#SNMPINDEX} Value ({#H_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.1.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumValue[{#SNMPINDEX}]</key>
                            <units>%</units>
                            <description>Humidity Sensors: Relative humidity, %</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>0
100</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>Humidity Sensor {#SNMPINDEX} (%) ({#H_MEMO})</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>FF0000</color>
									<drawtype>DASHED_LINE</drawtype>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npRelHumSafeRangeHigh[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>2</sortorder>
                                    <color>0040FF</color>
									<drawtype>DASHED_LINE</drawtype>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npRelHumSafeRangeLow[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>3</sortorder>
                                    <color>FF8000</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npRelHumValue[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                        <graph_prototype>
                            <name>Humidity Sensor {#SNMPINDEX} (°C) ({#H_MEMO})</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>FF0000</color>
									<drawtype>DASHED_LINE</drawtype>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npRelHumTempSafeRangeHigh[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>2</sortorder>
                                    <color>0040FF</color>
									<drawtype>DASHED_LINE</drawtype>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npRelHumTempSafeRangeLow[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>3</sortorder>
                                    <color>FFBF00</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npRelHumTempValue[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
				<discovery_rule>
                    <name>Humidity Sensors (I2C type) Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#HI2C_STATUS}, .1.3.6.1.4.1.25728.8400.2.3]</snmp_oid>
                    <key>HumiditySensorsI2CDiscovery</key>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#HI2C_STATUS}</macro>
                                <value>\S+</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>Humidity Sensors (I2C type) Discovery for NetPing/UniPing</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>Humidity Sensor Safe Range High</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.2.7.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumSafeRangeHigh_[{#SNMPINDEX}]</key>
                            <units>%</units>
                            <description>Humidity Sensors: Top Margin of Humidity Safe Range, %</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>0
100</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Humidity Sensor Safe Range Low</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.2.8.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumSafeRangeLow_[{#SNMPINDEX}]</key>
                            <units>%</units>
                            <description>Humidity Sensors: Bottom Margin of Humidity Safe Range, %</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>0
100</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Humidity Sensor Status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.2.5.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumSensorStatusH[{#SNMPINDEX}]</key>
                            <description>Humidity Sensors: Status of Relative Humiduty</description>
                            <valuemap>
                                <name>NetPing: Humidity Sensor Status</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=3</expression>
                                    <name>{HOST.NAME} - Humidity Sensor Status of RH: ABOVE SAFE RANGE</name>
                                    <priority>HIGH</priority>
									<description>Relative humiduty above the save range</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=1</expression>
                                    <name>{HOST.NAME} - Humidity Sensor Status of RH: BELOW SAFE RANGE</name>
                                    <priority>HIGH</priority>
									<description>Relative humiduty below the save range</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=0</expression>
                                    <name>{HOST.NAME} - Humidity Sensor Status of RH: SENSOR FAULT</name>
                                    <priority>WARNING</priority>
									<description>Humiduty sensor is fault</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>Humidity Sensor Temperature </name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.2.9.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumSensorValueT100[{#SNMPINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>°C</units>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>-6000
20000</params>
                                </step>
                                <step>
                                    <type>MULTIPLIER</type>
                                    <params>0.01</params>
                                </step>
                            </preprocessing>
                            <description>Humidity Sensors: Temperature, °C</description>
                        </item_prototype>
                        <item_prototype>
                            <name>Humidity Sensor Value</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8400.2.2.{#SNMPINDEX}</snmp_oid>
                            <key>npRelHumSensorValueH[{#SNMPINDEX}]</key>
                            <units>%</units>							
                            <description>Humidity Sensors: Relative humidity, %</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>0
100</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>Humidity Sensor {#SNMPINDEX} Value(%)</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>FF0000</color>
									<drawtype>DASHED_LINE</drawtype>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npRelHumSafeRangeHigh_[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>2</sortorder>
                                    <color>0040FF</color>
									<drawtype>DASHED_LINE</drawtype>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npRelHumSafeRangeLow_[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>3</sortorder>
                                    <color>FF8000</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npRelHumSensorValueH[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                        <graph_prototype>
                            <name>Humidity Sensor {#SNMPINDEX} Temperature (°C)</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>FFBF00</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npRelHumSensorValueT100[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>IO Sensors Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#IO_MEMO}, .1.3.6.1.4.1.25728.8900.1.1.6]</snmp_oid>
                    <key>IOSensorsDiscovery</key>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#IO_MEMO}</macro>
                                <value>\S+</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>IO Sensors Discovery for NetPing/UniPing</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>IO Sensor {#SNMPINDEX} Input Level ({#IO_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8900.1.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>npIoLevelIn[{#SNMPINDEX}]</key>
							<description>Input level, 0 or 1</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>0
1</params>
                                </step>
                            </preprocessing>
							<trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=0</expression>
                                    <name>{HOST.NAME} - IO Line {#SNMPINDEX} ({#IO_MEMO}) Status: Log. 0</name>
                                    <priority>WARNING</priority>
									<description>Input level is log. 0</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=1</expression>
                                    <name>{HOST.NAME} - IO Line {#SNMPINDEX} ({#IO_MEMO}) Status: Log. 1</name>
                                    <priority>WARNING</priority>
									<description>Input level is log. 1</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>IO Sensor {#SNMPINDEX} Pulse Counter ({#IO_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8900.1.1.9.{#SNMPINDEX}</snmp_oid>
                            <key>npIoPulseCounter[{#SNMPINDEX}]</key>
							<description>Pulse Counter on IO input line (counts positive fronts)</description>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>IO {#SNMPINDEX} ({#IO_MEMO})</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npIoLevelIn[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>Relay Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#R_MEMO}, .1.3.6.1.4.1.25728.5500.5.1.6]</snmp_oid>
                    <key>RelayDiscovery</key>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#R_MEMO}</macro>
                                <value>\S+</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>Relay Discovery for NetPing/UniPing</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>Relay {#SNMPINDEX} Mode ({#R_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.5500.5.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>npRelayMode[{#SNMPINDEX}]</key>
							<description>Control of relay: flip between on and off/switch off/switch on</description>
                            <valuemap>
                                <name>NetPing: Relay Mode</name>
                            </valuemap>
                        </item_prototype>
                        <item_prototype>
                            <name>Relay {#SNMPINDEX} State ({#R_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.5500.5.1.15.{#SNMPINDEX}</snmp_oid>
                            <key>npRelayState[{#SNMPINDEX}]</key>
							<description>Actual relay state at the moment, regardless of source of control</description>
                            <valuemap>
                                <name>NetPing: Relay State</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=0</expression>
                                    <name>{HOST.NAME} - Relay {#SNMPINDEX} ({#R_MEMO}) Status: off</name>
                                    <priority>WARNING</priority>
									<description>Relay is off.</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=1</expression>
                                    <name>{HOST.NAME} - Relay {#SNMPINDEX} ({#R_MEMO}) Status: on</name>
                                    <priority>WARNING</priority>
									<description>Relay is on.</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>Relay {#SNMPINDEX} State ({#R_MEMO})</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npRelayState[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
				<discovery_rule>
                    <name>External Relay Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#ER_MEMO}, .1.3.6.1.4.1.25728.5600.5.1.6]</snmp_oid>
                    <key>ExternalRelayDiscovery</key>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#ER_MEMO}</macro>
                                <value>\S+</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>External Relay Discovery for NetPing/UniPing</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>External Relay {#SNMPINDEX} Mode ({#ER_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.5600.5.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>npExtRelayMode[{#SNMPINDEX}]</key>
                            <valuemap>
                                <name>NetPing: External Relay Mode</name>
                            </valuemap>
							<description>Control of relay: flip between on and off / switch off / switch on</description>
                        </item_prototype>
                        <item_prototype>
                            <name>External Relay {#SNMPINDEX} State ({#ER_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.5600.5.1.15.{#SNMPINDEX}</snmp_oid>
                            <key>npExtRelayState[{#SNMPINDEX}]</key>
							<description>Actual relay state at the moment, regardless of source of control. </description>
                            <valuemap>
                                <name>NetPing: External Relay State</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=0</expression>
                                    <name>{HOST.NAME} - External Relay {#SNMPINDEX} ({#ER_MEMO}) Status: off</name>
                                    <priority>WARNING</priority>
									<description>External relay is off</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=1</expression>
                                    <name>{HOST.NAME} - External Relay {#SNMPINDEX} ({#ER_MEMO}) Status: on</name>
                                    <priority>WARNING</priority>
									<description>External relay is on</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>External Relay {#SNMPINDEX} State ({#ER_MEMO})</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npExtRelayState[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>Temperature Sensors Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#T_MEMO}, .1.3.6.1.4.1.25728.8800.1.1.6]</snmp_oid>
                    <key>TemperatureSensorsDiscovery</key>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#T_MEMO}</macro>
                                <value>\S+</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>Temperature Sensors Discovery for NetPing/UniPing</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>Temperature Sensor {#SNMPINDEX} High ({#T_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8800.1.1.5.{#SNMPINDEX}</snmp_oid>
                            <key>npThermoHigh[{#SNMPINDEX}]</key>
                            <units>°C</units>
							<delay>23h</delay>
                            <description>Top Margin of Safe range, °C</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>-60
280</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Temperature Sensor {#SNMPINDEX} Low ({#T_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8800.1.1.4.{#SNMPINDEX}</snmp_oid>
                            <key>npThermoLow[{#SNMPINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>°C</units>
							<delay>23h</delay>
                            <description>Bottom Margin of Safe range, °C</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>-60
280</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Temperature Sensor {#SNMPINDEX} Status ({#T_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8800.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>npThermoStatus[{#SNMPINDEX}]</key>
                            <description>Temperature sensor status</description>
                            <valuemap>
                                <name>NetPing: Temperature Sensor Status</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=3</expression>
                                    <name>{HOST.NAME} - Temperature Sensor {#SNMPINDEX} ({#T_MEMO}) Status: ABOVE SAFE RANGE</name>
                                    <priority>HIGH</priority>
									<description>Temperature above the save range</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=1</expression>
                                    <name>{HOST.NAME} - Temperature Sensor {#SNMPINDEX} ({#T_MEMO}) Status: BELOW SAFE RANGE</name>
                                    <priority>HIGH</priority>
									<description>Temperature below the save range</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=0</expression>
                                    <name>{HOST.NAME} - Temperature Sensor {#SNMPINDEX} ({#T_MEMO}) Status: SENSOR FAULT</name>
                                    <priority>WARNING</priority>
									<description>Temperature sensor is fault</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>Temperature Sensor {#SNMPINDEX} Value ({#T_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8800.1.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>npThermoValue[{#SNMPINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>°C</units>
                            <description>Current Temperature, °C</description>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>-60
280</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>Temperature Sensor {#SNMPINDEX}: {#T_MEMO}</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>FF0000</color>
									<drawtype>DASHED_LINE</drawtype>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npThermoHigh[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>2</sortorder>
                                    <color>4000FF</color>
									<drawtype>DASHED_LINE</drawtype>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npThermoLow[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>3</sortorder>
                                    <color>FFBF00</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npThermoValue[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>Voltage Sensor Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#V_MEMO}, .1.3.6.1.4.1.25728.9000.1.1.6]</snmp_oid>
                    <key>VoltageSensorDiscovery</key>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#V_MEMO}</macro>
                                <value>\S+</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>Voltage Sensors Discovery for UniPing server solution v4/SMS</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>Voltage Sensor {#SNMPINDEX} Frequency status ({#V_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.9000.1.1.5.{#SNMPINDEX}</snmp_oid>
                            <key>npVoltageFreqStatus[{#SNMPINDEX}]</key>
							<description>Status of frequency</description>
                            <valuemap>
                                <name>NetPing: Voltage Sensor Frequency Status</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=2</expression>
                                    <name>{HOST.NAME} - Voltage Sensor {#SNMPINDEX} ({#V_MEMO}) Frequency status: bad</name>
                                    <priority>HIGH</priority>
									<description>Status of frequency is bad</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=3</expression>
                                    <name>{HOST.NAME} - Voltage Sensor {#SNMPINDEX} ({#V_MEMO}) Frequency status: warn</name>
                                    <priority>WARNING</priority>
									<description>Status of frequency is warn</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>Voltage Sensor {#SNMPINDEX} Frequency ({#V_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.9000.1.1.4.{#SNMPINDEX}</snmp_oid>
                            <key>npVoltageFreq[{#SNMPINDEX}]</key>
							<description>Frequency value</description>
                            <units>Hz</units>
                            <preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>0
10000</params>
                                </step>
                                <step>
                                    <type>MULTIPLIER</type>
                                    <params>0.01</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Voltage Sensor {#SNMPINDEX} Peak status ({#V_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.9000.1.1.31.{#SNMPINDEX}</snmp_oid>
                            <key>npVoltagePeakStatus[{#SNMPINDEX}]</key>
							<description>Status of peak voltage</description>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=2</expression>
                                    <name>{HOST.NAME} - Voltage Sensor {#SNMPINDEX} ({#V_MEMO}) Peak status: dangerous</name>
                                    <priority>WARNING</priority>
									<description>Peak voltage is dangerous</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>Voltage Sensor {#SNMPINDEX} Peak voltage ({#V_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.9000.1.1.30.{#SNMPINDEX}</snmp_oid>
                            <key>npVoltagePeak[{#SNMPINDEX}]</key>
							<description>Peak voltage, V</description>
                            <value_type>FLOAT</value_type>
                            <units>V</units>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>0
1000</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Voltage Sensor {#SNMPINDEX} RMS ({#V_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.9000.1.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>npVoltageRMS[{#SNMPINDEX}]</key>
							<description>Root mean square voltage value, V</description>
                            <value_type>FLOAT</value_type>
                            <units>V</units>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>0
1000</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Voltage Sensor {#SNMPINDEX} Sags counter ({#V_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.9000.1.1.10.{#SNMPINDEX}</snmp_oid>
                            <key>npVoltageSagCounter[{#SNMPINDEX}]</key>
							<description>Counter of voltage sags</description>
                        </item_prototype>
                        <item_prototype>
                            <name>Voltage Sensor {#SNMPINDEX} Sags status ({#V_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.9000.1.1.11.{#SNMPINDEX}</snmp_oid>
                            <key>npVoltageSagStatus[{#SNMPINDEX}]</key>
							<description>Status of voltage sags</description>
                            <valuemap>
                                <name>NetPing: Voltage Sensor Sag Status</name>
                            </valuemap>
                        </item_prototype>
                        <item_prototype>
                            <name>Voltage Sensor {#SNMPINDEX} Nominal voltage ({#V_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.9000.1.1.20.{#SNMPINDEX}</snmp_oid>
                            <key>npVoltageStandard[{#SNMPINDEX}]</key>
							<description>Nominal voltage, V</description>
							<units>V</units>
							<delay>23h</delay>
							<preprocessing>
								<step>
                                    <type>IN_RANGE</type>
                                    <params>100
240</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Voltage Sensor {#SNMPINDEX} RMS Status ({#V_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.9000.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>npVoltageStatus[{#SNMPINDEX}]</key>
							<description>Root mean square voltage value status</description>
                            <valuemap>
                                <name>NetPing: Voltage Sensor RMS Status</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=1</expression>
                                    <name>{HOST.NAME} - Voltage Sensor {#SNMPINDEX} ({#V_MEMO}) status: no voltage</name>
                                    <priority>HIGH</priority>
									<description>No voltage</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=0</expression>
                                    <name>{HOST.NAME} - Voltage Sensor {#SNMPINDEX} ({#V_MEMO}) Status: sensor failed</name>
                                    <priority>WARNING</priority>
									<description>Voltage Sensor is fail</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=2</expression>
                                    <name>{HOST.NAME} - Voltage Sensor {#SNMPINDEX} ({#V_MEMO}) Voltage status: bad</name>
                                    <priority>HIGH</priority>
									<description>Voltage status is bad</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=3</expression>
                                    <name>{HOST.NAME} - Voltage Sensor {#SNMPINDEX} ({#V_MEMO}) Voltage status: warn</name>
                                    <priority>WARNING</priority>
									<description>Voltage status is warn</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>Voltage Sensor {#SNMPINDEX} Frequency ({#V_MEMO})</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npVoltageFreq[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                        <graph_prototype>
                            <name>Voltage Sensor {#SNMPINDEX} RMS ({#V_MEMO})</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npVoltageRMS[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
								<graph_item>
                                    <sortorder>2</sortorder>
                                    <color>94b291</color>
									<drawtype>DASHED_LINE</drawtype>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npVoltageStandard[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
				<discovery_rule>
                    <name>Analog Input Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#AI_MEMO}, .1.3.6.1.4.1.25728.8200.1.1.6]</snmp_oid>
                    <key>AnalogInputDiscovery</key>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#AI_MEMO}</macro>
                                <value>\S+</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>Analog Input Discovery for NetPing/UniPing</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>Analog Input {#SNMPINDEX} Status ({#AI_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8200.1.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>npOwInputAnalogStatus[{#SNMPINDEX}]</key>
							<description>Status of Current Loop Signal, failure 1w = no reply from the adapter on 1wire bus, failureAnalog = signal is beyond it's Working Range, belowSafe, safe, aboveSafe - status of the signal relative to the Safe Range margins</description>
                            <valuemap>
                                <name>NetPing: Analog Input Status</name>
                            </valuemap>
							<trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=0</expression>
                                    <name>{HOST.NAME} - Analog Input {#SNMPINDEX} ({#AI_MEMO}) Status: 1w fault</name>
                                    <priority>WARNING</priority>
									<description>No reply from the adapter on 1wire bus</description>
                                </trigger_prototype>
								<trigger_prototype>
                                    <expression>{last()}=1</expression>
                                    <name>{HOST.NAME} - Analog Input {#SNMPINDEX} ({#AI_MEMO}) Status: below safe range</name>
                                    <priority>HIGH</priority>
									<description>Analog input value below the safe range</description>
                                </trigger_prototype>
								<trigger_prototype>
                                    <expression>{last()}=3</expression>
                                    <name>{HOST.NAME} - Analog Input {#SNMPINDEX} ({#AI_MEMO}) Status: above safe range</name>
                                    <priority>HIGH</priority>
									<description>Analog input value above the safe range</description>
                                </trigger_prototype>
								<trigger_prototype>
                                    <expression>{last()}=5</expression>
                                    <name>{HOST.NAME} - Analog Input {#SNMPINDEX} ({#AI_MEMO}) Status: signal is beyond it's Working Range</name>
                                    <priority>WARNING</priority>
									<description>Analog signal is beyond it's working range</description>
                                </trigger_prototype>
                            </trigger_prototypes>	
                        </item_prototype>
						<item_prototype>
                            <name>Analog Input {#SNMPINDEX} Current ({#AI_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8200.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>npOwInputAnalogCurrent[{#SNMPINDEX}]</key>   
							<description>Current via RS_P, RS_N contacts of Current Loop Adapter, mA</description>
							<value_type>FLOAT</value_type>
                            <units>mA</units>
							<preprocessing>
                                <step>
                                    <type>MULTIPLIER</type>
                                    <params>0.001</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
						<item_prototype>
                            <name>Analog Input {#SNMPINDEX} Voltage ({#AI_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8200.1.1.4.{#SNMPINDEX}</snmp_oid>
                            <key>npOwInputAnalogVoltage[{#SNMPINDEX}]</key> 
							<description>Voltage on RS_P contact of Current Loop Adapter Vs Ground, V</description>							
							<value_type>FLOAT</value_type>
                            <units>V</units>
							<preprocessing>
                                <step>
                                    <type>MULTIPLIER</type>
                                    <params>0.001</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
						<item_prototype>
                            <name>Analog Input {#SNMPINDEX} Resistance ({#AI_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8200.1.1.5.{#SNMPINDEX}</snmp_oid>
                            <key>npOwInputAnalogResistance[{#SNMPINDEX}]</key>
							<description>Resistance of the Current Loop, Ohm</description>							
							<units>Ohm</units>							
                        </item_prototype>
						<item_prototype>
                            <name>Analog Input {#SNMPINDEX} Work Range High ({#AI_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8200.1.1.11.{#SNMPINDEX}</snmp_oid>
                            <key>npOwInputAnalogWorkRangeHigh[{#SNMPINDEX}]</key>          
							<description>Top marging of Working Range, mA or V or Ohm. If monitored value is outide of Working Range, Analog Failure take place. If not specified, value is -32768</description>
							<delay>23h</delay>
							<preprocessing>
                                <step>
                                    <type>IN_RANGE</type>
                                    <params>0
32768</params>
									<error_handler>CUSTOM_ERROR</error_handler>
                                    <error_handler_params>Not specified</error_handler_params>
                                </step>
                            </preprocessing>							
                        </item_prototype>
						<item_prototype>
                            <name>Analog Input {#SNMPINDEX} Safe Range High ({#AI_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8200.1.1.12.{#SNMPINDEX}</snmp_oid>
                            <key>npOwInputAnalogSafeRangeHigh[{#SNMPINDEX}]</key>
							<description>Top marging of Safe Range, mA or V or Ohm. If not specified, value is -32768</description>	
							<delay>23h</delay>
							<preprocessing>
                                <step>
                                    <type>IN_RANGE</type>
                                    <params>0
32768</params>
									<error_handler>CUSTOM_ERROR</error_handler>
                                    <error_handler_params>Not specified</error_handler_params>
                                </step>
                            </preprocessing>							
                        </item_prototype>
						<item_prototype>
                            <name>Analog Input {#SNMPINDEX} Safe Range Low ({#AI_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8200.1.1.13.{#SNMPINDEX}</snmp_oid>
                            <key>npOwInputAnalogSafeRangeLow[{#SNMPINDEX}]</key>
							<description>Bottom marging of Safe Range, mA or V or Ohm. If not specified, value is -32768</description>							
							<delay>23h</delay>	
							<preprocessing>
                                <step>
                                    <type>IN_RANGE</type>
                                    <params>0
32768</params>
									<error_handler>CUSTOM_ERROR</error_handler>
                                    <error_handler_params>Not specified</error_handler_params>
                                </step>
                            </preprocessing>														
                        </item_prototype>
						<item_prototype>
                            <name>Analog Input {#SNMPINDEX} Work Range Low ({#AI_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8200.1.1.14.{#SNMPINDEX}</snmp_oid>
                            <key>npOwInputAnalogWorkRangeLow[{#SNMPINDEX}]</key>
							<description>Bottom marging of Working Range, mA or V or Ohm. If monitored value is outide of Working Range, Analog Failure take place. If not specified, value is -32768</description>
							<delay>23h</delay>   
							<preprocessing>
                                <step>
                                    <type>IN_RANGE</type>
                                    <params>0
32768</params>
									<error_handler>CUSTOM_ERROR</error_handler>
                                    <error_handler_params>Not specified</error_handler_params>
                                </step>
                            </preprocessing>							
                        </item_prototype>
						<item_prototype>
                            <name>Analog Input {#SNMPINDEX} Power ({#AI_MEMO})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.25728.8200.1.1.7.{#SNMPINDEX}</snmp_oid>
                            <key>npInputAnalogPower[{#SNMPINDEX}]</key>
							<description>Controls power on Current Loop Adapter outputs +24V, +12V</description>							
							<valuemap>
                                <name>NetPing: Analog Input Power</name>
                            </valuemap>		
							<trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=0</expression>
                                    <name>{HOST.NAME} - Analog Input {#SNMPINDEX} Power Off ({#AI_MEMO})</name>
                                    <priority>WARNING</priority>
									<description>Current Loop Adapter is Power Off</description>
                                </trigger_prototype>
                            </trigger_prototypes>							
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>Analog Input {#SNMPINDEX} Status ({#AI_MEMO})</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npOwInputAnalogStatus[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
						<graph_prototype>
                            <name>Analog Input {#SNMPINDEX} Current (mA) ({#AI_MEMO})</name>
                            <graph_items>
							    <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npOwInputAnalogCurrent[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
						<graph_prototype>
                            <name>Analog Input {#SNMPINDEX} Voltage (V) ({#AI_MEMO})</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npOwInputAnalogVoltage[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
						<graph_prototype>
                            <name>Analog Input {#SNMPINDEX} Resistance (Ohm) ({#AI_MEMO})</name>
                            <graph_items>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>Template_NetPing</host>
                                        <key>npOwInputAnalogResistance[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
            </discovery_rules>
			<screens>
                <screen>
                    <name>1</name>
                    <hsize>4</hsize>
                    <vsize>14</vsize>
                    <screen_items>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Analog Input {#SNMPINDEX} Status ({#AI_MEMO})</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>200</width>
                            <height>100</height>
                            <x>0</x>
                            <y>0</y>
                            <colspan>4</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>4</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Analog Input {#SNMPINDEX} Current (mA) ({#AI_MEMO})</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>200</width>
                            <height>100</height>
                            <x>0</x>
                            <y>1</y>
                            <colspan>4</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>4</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Analog Input {#SNMPINDEX} Resistance (Ohm) ({#AI_MEMO})</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>200</width>
                            <height>100</height>
                            <x>0</x>
                            <y>2</y>
                            <colspan>4</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>3</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Analog Input {#SNMPINDEX} Voltage (V) ({#AI_MEMO})</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>200</width>
                            <height>100</height>
                            <x>0</x>
                            <y>3</y>
                            <colspan>4</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>3</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Relay {#SNMPINDEX} State ({#R_MEMO})</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>200</width>
                            <height>100</height>
                            <x>0</x>
                            <y>4</y>
                            <colspan>4</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>4</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>External Relay {#SNMPINDEX} State ({#ER_MEMO})</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>200</width>
                            <height>100</height>
                            <x>0</x>
                            <y>5</y>
                            <colspan>4</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>4</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>IO {#SNMPINDEX} ({#IO_MEMO})</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>200</width>
                            <height>100</height>
                            <x>0</x>
                            <y>6</y>
                            <colspan>4</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>4</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Current Loop Sensor </name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>500</width>
                            <height>100</height>
                            <x>0</x>
                            <y>7</y>
                            <colspan>2</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>1</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>GSM Strength graph {#GSM_STATUS}</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>500</width>
                            <height>100</height>
                            <x>2</x>
                            <y>7</y>
                            <colspan>2</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>1</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Voltage Sensor {#SNMPINDEX} RMS ({#V_MEMO})</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>300</width>
                            <height>100</height>
                            <x>0</x>
                            <y>8</y>
                            <colspan>4</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>3</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Voltage Sensor {#SNMPINDEX} Frequency ({#V_MEMO})</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>300</width>
                            <height>100</height>
                            <x>0</x>
                            <y>9</y>
                            <colspan>4</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>3</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Temperature Sensor {#SNMPINDEX}: {#T_MEMO}</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>200</width>
                            <height>100</height>
                            <x>0</x>
                            <y>10</y>
                            <colspan>4</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>4</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Humidity Sensor {#SNMPINDEX} (°C) ({#H_MEMO})</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>200</width>
                            <height>100</height>
                            <x>0</x>
                            <y>11</y>
                            <colspan>4</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>4</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Humidity Sensor {#SNMPINDEX} (%) ({#H_MEMO})</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>200</width>
                            <height>100</height>
                            <x>0</x>
                            <y>12</y>
                            <colspan>4</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>4</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Humidity Sensor {#SNMPINDEX} Temperature (°C)</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>300</width>
                            <height>100</height>
                            <x>0</x>
                            <y>13</y>
                            <colspan>2</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>1</max_columns>
                        </screen_item>
                        <screen_item>
                            <resourcetype>20</resourcetype>
                            <style>0</style>
                            <resource>
                                <name>Humidity Sensor {#SNMPINDEX} Value(%)</name>
                                <host>Template_NetPing</host>
                            </resource>
                            <width>300</width>
                            <height>100</height>
                            <x>2</x>
                            <y>13</y>
                            <colspan>2</colspan>
                            <rowspan>1</rowspan>
                            <elements>0</elements>
                            <valign>0</valign>
                            <halign>0</halign>
                            <dynamic>0</dynamic>
                            <sort_triggers>0</sort_triggers>
                            <url/>
                            <application/>
                            <max_columns>1</max_columns>
                        </screen_item>
                    </screen_items>
                </screen>
            </screens>
		</template>
    </templates>
    <value_maps>
        <value_map>
            <name>NetPing: Current Loop Sensor Status</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>ok</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>alert</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>failed (cut)</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>failed (shorted)</newvalue>
                </mapping>
                <mapping>
                    <value>4</value>
                    <newvalue>not powered</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>NetPing: GSM Module Status</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>ok</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>failed</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>fatal error</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>NetPing: GSM Registration</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>impossible</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>home network</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>searching</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>denied</newvalue>
                </mapping>
                <mapping>
                    <value>4</value>
                    <newvalue>unknown</newvalue>
                </mapping>
                <mapping>
                    <value>5</value>
                    <newvalue>roaming</newvalue>
                </mapping>
                <mapping>
                    <value>255</value>
                    <newvalue>info update</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>NetPing: Humidity Sensor Status</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>sensor fault</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>below safe range</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>ok</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>above safe range</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>NetPing: Relay Mode</name>
            <mappings>
				<mapping>
                    <value>-1</value>
                    <newvalue>flip</newvalue>
                </mapping>
                <mapping>
                    <value>0</value>
                    <newvalue>off</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>on</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>watchdog</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>schedule</newvalue>
                </mapping>
                <mapping>
                    <value>4</value>
                    <newvalue>schedule+watchdog</newvalue>
                </mapping>
                <mapping>
                    <value>5</value>
                    <newvalue>logic</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>NetPing: Relay State</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>off</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>on</newvalue>
                </mapping>
            </mappings>
        </value_map>
		<value_map>
            <name>NetPing: External Relay Mode</name>
            <mappings>
			    <mapping>
                    <value>-1</value>
                    <newvalue>flip</newvalue>
                </mapping>
                <mapping>
                    <value>0</value>
                    <newvalue>off</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>on</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>watchdog</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>schedule</newvalue>
                </mapping>
                <mapping>
                    <value>4</value>
                    <newvalue>schedule+watchdog</newvalue>
                </mapping>
                <mapping>
                    <value>5</value>
                    <newvalue>logic</newvalue>
                </mapping>
            </mappings>
        </value_map>
		<value_map>
            <name>NetPing: External Relay State</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>off</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>on</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>NetPing: Temperature Sensor Status</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>sensor fault</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>below safe range</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>ok</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>above safe range</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>NetPing: Voltage Sensor Frequency Status</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>sensor failed</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>no voltage</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>bad</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>warn</newvalue>
                </mapping>
                <mapping>
                    <value>4</value>
                    <newvalue>good</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>NetPing: Voltage Sensor RMS Status</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>sensor failed</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>no voltage</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>bad</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>warn</newvalue>
                </mapping>
                <mapping>
                    <value>4</value>
                    <newvalue>good</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>NetPing: Voltage Sensor Sag Status</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>sensorFailed</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>noVoltage</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>high</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>medium</newvalue>
                </mapping>
                <mapping>
                    <value>4</value>
                    <newvalue>small</newvalue>
                </mapping>
                <mapping>
                    <value>5</value>
                    <newvalue>noSags</newvalue>
                </mapping>
            </mappings>
        </value_map>
		<value_map>
            <name>NetPing: Analog Input Status</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>1w fault</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>below safe range</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>ok</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>above safe range</newvalue>
                </mapping>
				<mapping>
                    <value>5</value>
                    <newvalue>signal is beyond it's Working Range</newvalue>
                </mapping>
            </mappings>
        </value_map>
		<value_map>
            <name>NetPing: Loop Power Status</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>off</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>on</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>reset by off/on power</newvalue>
                </mapping>
            </mappings>
        </value_map>	
		<value_map>
            <name>NetPing: Analog Input Power</name>
            <mappings>
                <mapping>
                    <value>0</value>
                    <newvalue>off</newvalue>
                </mapping>
                <mapping>
                    <value>1</value>
                    <newvalue>on</newvalue>
                </mapping>
            </mappings>
        </value_map>
    </value_maps>
</zabbix_export>
