I want to create a new item in template for calculated type .i am getting the error" No SNMP OID specified" when i try to import the template file after adding the below item. But since it is a calculated item from a previous existing item, how to provide the SNMP OID is my query.
<item>
<name>new temp </name>
<type>CALCULATED</type>
<allowed_hosts></allowed_hosts>
<applications>
<application>
<name>companyMIB::upsBattery</name>
</application>
</applications>
<authtype>NONE</authtype>
<delay>60</delay>
<description>new temp</description>
<history>7d</history>
<inventory_link>NONE</inventory_link>
<ipmi_sensor></ipmi_sensor>
<key>companyMIB.upsBatTemperature</key>
<logtimefmt></logtimefmt>
<password></password>
<privatekey></privatekey>
<publickey></publickey>
<!--snmp_oid>.1.3.6.1.4.1.43943.1.1.3.13.0</snmp_oid-->
<status>ENABLED</status>
<trends>365d</trends>
<params>10*last(companyMIB.upsBatTemperature)</params>
<units>%</units>
<username></username>
<value_type>FLOAT</value_type>
</item>
<item>
<name>new temp </name>
<type>CALCULATED</type>
<allowed_hosts></allowed_hosts>
<applications>
<application>
<name>companyMIB::upsBattery</name>
</application>
</applications>
<authtype>NONE</authtype>
<delay>60</delay>
<description>new temp</description>
<history>7d</history>
<inventory_link>NONE</inventory_link>
<ipmi_sensor></ipmi_sensor>
<key>companyMIB.upsBatTemperature</key>
<logtimefmt></logtimefmt>
<password></password>
<privatekey></privatekey>
<publickey></publickey>
<!--snmp_oid>.1.3.6.1.4.1.43943.1.1.3.13.0</snmp_oid-->
<status>ENABLED</status>
<trends>365d</trends>
<params>10*last(companyMIB.upsBatTemperature)</params>
<units>%</units>
<username></username>
<value_type>FLOAT</value_type>
</item>