zabbix 监控浪潮NF5680M5服务器和浪潮AS5500G2存储

NF5680M5服务器开启mgmt的snmp v2,AS5500G2开启控制柜的snmp v2
模板自己创建的,用到了LLD和Preprocessing(custom javascript & regular expression),浪潮官方提供的raid相关oid无效,暂时对controller、pdisk、vdisk无法监控
zabbix 监控浪潮NF5680M5服务器和浪潮AS5500G2存储zabbix 监控浪潮NF5680M5服务器和浪潮AS5500G2存储
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>5.0</version>
    <date>2021-08-25T07:54:29Z</date>
    <groups>
        <group>
            <name>Templates/SAN</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Template SAN Inspur AS5500 G2 SNMP</template>
            <name>Template SAN Inspur AS5500 G2 SNMP</name>
            <groups>
                <group>
                    <name>Templates/SAN</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>Disk</name>
                </application>
                <application>
                    <name>Enclosure</name>
                </application>
                <application>
                    <name>Mdisk</name>
                </application>
                <application>
                    <name>Status</name>
                </application>
                <application>
                    <name>Storage</name>
                </application>
            </applications>
            <items>
                <item>
                    <name>cache read rate</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.19.0</snmp_oid>
                    <key>inspur.as5500.cache.read.rate</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>cache write rate</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.18.0</snmp_oid>
                    <key>inspur.as5500.cache.write.rate</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>cpu utilization</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.2.0</snmp_oid>
                    <key>inspur.as5500.cpu.utilization</key>
                    <delay>1h</delay>
                    <units>%</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)%
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>disk average time</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.17.0</snmp_oid>
                    <key>inspur.as5500.disk.average.time</key>
                    <delay>1h</delay>
                    <units>ms</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)ms
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>disk iops</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.16.0</snmp_oid>
                    <key>inspur.as5500.disk.iops</key>
                    <delay>1h</delay>
                    <units>ipos</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>disk traffic</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.15.0</snmp_oid>
                    <key>inspur.as5500.disk.traffic</key>
                    <delay>1h</delay>
                    <units>MBps</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)MBps
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>fc iops</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.4.0</snmp_oid>
                    <key>inspur.as5500.fc.iops</key>
                    <delay>1h</delay>
                    <units>ipos</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>fc traffic</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.3.0</snmp_oid>
                    <key>inspur.as5500.fc.traffic</key>
                    <delay>1h</delay>
                    <units>MBps</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)MBps
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>iscsi iops</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.8.0</snmp_oid>
                    <key>inspur.as5500.iscsi.iops</key>
                    <delay>1h</delay>
                    <units>ipos</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>iscsi traffic</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.7.0</snmp_oid>
                    <key>inspur.as5500.iscsi.traffic</key>
                    <delay>1h</delay>
                    <units>MBps</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)MBps
\1</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>mdisk average time</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.14.0</snmp_oid>
                    <key>inspur.as5500.mdisk.average.time</key>
                    <delay>1h</delay>
                    <units>ms</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)ms
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>mdisk iops</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.13.0</snmp_oid>
                    <key>inspur.as5500.mdisk.iops</key>
                    <delay>1h</delay>
                    <units>ipos</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>mdisk storage available</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.2.3.0</snmp_oid>
                    <key>inspur.as5500.mdisk.storage.available</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>mdisk storage total</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.2.1.0</snmp_oid>
                    <key>inspur.as5500.mdisk.storage.total</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>mdisk storage used</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.2.2.0</snmp_oid>
                    <key>inspur.as5500.mdisk.storage.used</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>mdisk traffic</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.12.0</snmp_oid>
                    <key>inspur.as5500.mdisk.traffic</key>
                    <delay>1h</delay>
                    <units>MBps</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)MBps
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>physical storage available</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.1.3.0</snmp_oid>
                    <key>inspur.as5500.physical.storage.available</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>physical storage total</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.1.1.0</snmp_oid>
                    <key>inspur.as5500.physical.storage.total</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>physical storage used</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.1.2.0</snmp_oid>
                    <key>inspur.as5500.physical.storage.used</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>pool storage available</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.3.3.0</snmp_oid>
                    <key>inspur.as5500.pool.storage.available</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>pool storage total</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.3.1.0</snmp_oid>
                    <key>inspur.as5500.pool.storage.total</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>pool storage used</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.3.2.0</snmp_oid>
                    <key>inspur.as5500.pool.storage.used</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>sas iops</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.6.0</snmp_oid>
                    <key>inspur.as5500.sas.iops</key>
                    <delay>1h</delay>
                    <units>ipos</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>sas traffic</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.5.0</snmp_oid>
                    <key>inspur.as5500.sas.traffic</key>
                    <delay>1h</delay>
                    <units>MBps</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)MBps
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>vdisk average time</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.11.0</snmp_oid>
                    <key>inspur.as5500.vdisk.average.time</key>
                    <delay>1h</delay>
                    <units>ms</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)ms
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>vdisk iops</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.10.0</snmp_oid>
                    <key>inspur.as5500.vdisk.iops</key>
                    <delay>1h</delay>
                    <units>ipos</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>vdisk traffic</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.9.0</snmp_oid>
                    <key>inspur.as5500.vdisk.traffic</key>
                    <delay>1h</delay>
                    <units>MBps</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)MBps
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
            </items>
            <discovery_rules>
                <discovery_rule>
                    <name>disk discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.48512.1.108.4.1.1]</snmp_oid>
                    <key>inspur.as5500.disk.discovery</key>
                    <delay>1h</delay>
                    <item_prototypes>
                        <item_prototype>
                            <name>disk{#SNMPINDEX} status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.48512.1.108.4.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>inspur.as5500.disk.status.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Disk</name>
                                </application>
                            </applications>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}&lt;&gt;&quot;online&quot;</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>{last()}=&quot;online&quot;</recovery_expression>
                                    <name>disk status trigger</name>
                                    <opdata>Disk status is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                                    <priority>HIGH</priority>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>enclosure discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.48512.1.108.9.1.1]</snmp_oid>
                    <key>inspur.as5500.enclosure.discovery</key>
                    <delay>1h</delay>
                    <item_prototypes>
                        <item_prototype>
                            <name>enclosure{#SNMPINDEX} status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.48512.1.108.9.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>inspur.as5500.enclosure.status.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Enclosure</name>
                                </application>
                            </applications>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}&lt;&gt;&quot;online&quot;</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>{last()}=&quot;online&quot;</recovery_expression>
                                    <name>enclosure status trigger</name>
                                    <opdata>Enclosure status is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                                    <priority>HIGH</priority>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>enclosure{#SNMPINDEX} type</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.48512.1.108.9.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>inspur.as5500.enclosure.type.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Enclosure</name>
                                </application>
                            </applications>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>mdisk discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.48512.1.107.1.1.1,{#MDISK_NAME},1.3.6.1.4.1.48512.1.107.1.1.2]</snmp_oid>
                    <key>inspur.as5500.mdisk.discovery</key>
                    <delay>1h</delay>
                    <item_prototypes>
                        <item_prototype>
                            <name>{#MDISK_NAME} status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.48512.1.107.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>inspur.as5500.mdisk.status.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Mdisk</name>
                                </application>
                            </applications>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}&lt;&gt;&quot;online&quot;</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>{last()}=&quot;online&quot;</recovery_expression>
                                    <name>mdisk status trigger</name>
                                    <opdata>Mdisk status is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                                    <priority>HIGH</priority>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
            </discovery_rules>
        </template>
    </templates>
    <graphs>
        <graph>
            <name>average time graph</name>
            <graph_items>
                <graph_item>
                    <sortorder>1</sortorder>
                    <color>1A7C11</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.disk.average.time</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>2</sortorder>
                    <color>F63100</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.mdisk.average.time</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>3</sortorder>
                    <color>2774A4</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.vdisk.average.time</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>cpu utilization</name>
            <type>STACKED</type>
            <graph_items>
                <graph_item>
                    <sortorder>1</sortorder>
                    <color>1A7C11</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.cpu.utilization</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>ipos graph</name>
            <graph_items>
                <graph_item>
                    <sortorder>1</sortorder>
                    <color>1A7C11</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.disk.iops</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>2</sortorder>
                    <color>F63100</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.fc.iops</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>3</sortorder>
                    <color>2774A4</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.iscsi.iops</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>4</sortorder>
                    <color>A54F10</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.mdisk.iops</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>5</sortorder>
                    <color>FC6EA3</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.sas.iops</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>6</sortorder>
                    <color>6C59DC</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.vdisk.iops</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>traffic graph</name>
            <graph_items>
                <graph_item>
                    <sortorder>1</sortorder>
                    <color>1A7C11</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.disk.traffic</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>2</sortorder>
                    <color>F63100</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.fc.traffic</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>3</sortorder>
                    <color>2774A4</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.iscsi.traffic</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>4</sortorder>
                    <color>A54F10</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.mdisk.traffic</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>5</sortorder>
                    <color>FC6EA3</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.sas.traffic</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>6</sortorder>
                    <color>6C59DC</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.vdisk.traffic</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
    </graphs>
</zabbix_export>
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>5.0</version>
    <date>2021-08-25T07:54:38Z</date>
    <groups>
        <group>
            <name>Templates/SAN</name>
        </group>
        <group>
            <name>Templates/Server hardware</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Template SAN Inspur AS5500 G2 SNMP</template>
            <name>Template SAN Inspur AS5500 G2 SNMP</name>
            <groups>
                <group>
                    <name>Templates/SAN</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>Disk</name>
                </application>
                <application>
                    <name>Enclosure</name>
                </application>
                <application>
                    <name>Mdisk</name>
                </application>
                <application>
                    <name>Status</name>
                </application>
                <application>
                    <name>Storage</name>
                </application>
            </applications>
            <items>
                <item>
                    <name>cache read rate</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.19.0</snmp_oid>
                    <key>inspur.as5500.cache.read.rate</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>cache write rate</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.18.0</snmp_oid>
                    <key>inspur.as5500.cache.write.rate</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>cpu utilization</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.2.0</snmp_oid>
                    <key>inspur.as5500.cpu.utilization</key>
                    <delay>1h</delay>
                    <units>%</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)%
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>disk average time</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.17.0</snmp_oid>
                    <key>inspur.as5500.disk.average.time</key>
                    <delay>1h</delay>
                    <units>ms</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)ms
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>disk iops</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.16.0</snmp_oid>
                    <key>inspur.as5500.disk.iops</key>
                    <delay>1h</delay>
                    <units>ipos</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>disk traffic</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.15.0</snmp_oid>
                    <key>inspur.as5500.disk.traffic</key>
                    <delay>1h</delay>
                    <units>MBps</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)MBps
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>fc iops</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.4.0</snmp_oid>
                    <key>inspur.as5500.fc.iops</key>
                    <delay>1h</delay>
                    <units>ipos</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>fc traffic</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.3.0</snmp_oid>
                    <key>inspur.as5500.fc.traffic</key>
                    <delay>1h</delay>
                    <units>MBps</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)MBps
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>iscsi iops</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.8.0</snmp_oid>
                    <key>inspur.as5500.iscsi.iops</key>
                    <delay>1h</delay>
                    <units>ipos</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>iscsi traffic</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.7.0</snmp_oid>
                    <key>inspur.as5500.iscsi.traffic</key>
                    <delay>1h</delay>
                    <units>MBps</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)MBps
\1</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>mdisk average time</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.14.0</snmp_oid>
                    <key>inspur.as5500.mdisk.average.time</key>
                    <delay>1h</delay>
                    <units>ms</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)ms
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>mdisk iops</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.13.0</snmp_oid>
                    <key>inspur.as5500.mdisk.iops</key>
                    <delay>1h</delay>
                    <units>ipos</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>mdisk storage available</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.2.3.0</snmp_oid>
                    <key>inspur.as5500.mdisk.storage.available</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>mdisk storage total</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.2.1.0</snmp_oid>
                    <key>inspur.as5500.mdisk.storage.total</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>mdisk storage used</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.2.2.0</snmp_oid>
                    <key>inspur.as5500.mdisk.storage.used</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>mdisk traffic</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.12.0</snmp_oid>
                    <key>inspur.as5500.mdisk.traffic</key>
                    <delay>1h</delay>
                    <units>MBps</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)MBps
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>physical storage available</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.1.3.0</snmp_oid>
                    <key>inspur.as5500.physical.storage.available</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>physical storage total</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.1.1.0</snmp_oid>
                    <key>inspur.as5500.physical.storage.total</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>physical storage used</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.1.2.0</snmp_oid>
                    <key>inspur.as5500.physical.storage.used</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>pool storage available</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.3.3.0</snmp_oid>
                    <key>inspur.as5500.pool.storage.available</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>pool storage total</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.3.1.0</snmp_oid>
                    <key>inspur.as5500.pool.storage.total</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>pool storage used</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.101.3.2.0</snmp_oid>
                    <key>inspur.as5500.pool.storage.used</key>
                    <delay>1h</delay>
                    <value_type>FLOAT</value_type>
                    <units>B</units>
                    <applications>
                        <application>
                            <name>Storage</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <params>var reg = /(\d+\.*\d+)(T|G|M|K)B/g; 
var res = reg.exec(value); 

switch(res[2])
{
    case &quot;T&quot;:
        data= res[1]*1024*1024*1024*1024;
        break;
    case &quot;G&quot;:
        data = res[1]*1024*1024*1024;
        break;
    case &quot;M&quot;:
        data = res[1]*1024*1024;
        break;
    case &quot;K&quot;:
        data = res[1]*1024;
        break;
    default:
        data = 0;
}

return data;</params>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>sas iops</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.6.0</snmp_oid>
                    <key>inspur.as5500.sas.iops</key>
                    <delay>1h</delay>
                    <units>ipos</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>sas traffic</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.5.0</snmp_oid>
                    <key>inspur.as5500.sas.traffic</key>
                    <delay>1h</delay>
                    <units>MBps</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)MBps
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>vdisk average time</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.11.0</snmp_oid>
                    <key>inspur.as5500.vdisk.average.time</key>
                    <delay>1h</delay>
                    <units>ms</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)ms
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>vdisk iops</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.10.0</snmp_oid>
                    <key>inspur.as5500.vdisk.iops</key>
                    <delay>1h</delay>
                    <units>ipos</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>vdisk traffic</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.48512.1.107.2.1.9.0</snmp_oid>
                    <key>inspur.as5500.vdisk.traffic</key>
                    <delay>1h</delay>
                    <units>MBps</units>
                    <applications>
                        <application>
                            <name>Status</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <params>(\d+)MBps
\1</params>
                            <error_handler>DISCARD_VALUE</error_handler>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED</type>
                            <params/>
                        </step>
                    </preprocessing>
                </item>
            </items>
            <discovery_rules>
                <discovery_rule>
                    <name>disk discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.48512.1.108.4.1.1]</snmp_oid>
                    <key>inspur.as5500.disk.discovery</key>
                    <delay>1h</delay>
                    <item_prototypes>
                        <item_prototype>
                            <name>disk{#SNMPINDEX} status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.48512.1.108.4.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>inspur.as5500.disk.status.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Disk</name>
                                </application>
                            </applications>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}&lt;&gt;&quot;online&quot;</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>{last()}=&quot;online&quot;</recovery_expression>
                                    <name>disk status trigger</name>
                                    <opdata>Disk status is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                                    <priority>HIGH</priority>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>enclosure discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.48512.1.108.9.1.1]</snmp_oid>
                    <key>inspur.as5500.enclosure.discovery</key>
                    <delay>1h</delay>
                    <item_prototypes>
                        <item_prototype>
                            <name>enclosure{#SNMPINDEX} status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.48512.1.108.9.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>inspur.as5500.enclosure.status.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Enclosure</name>
                                </application>
                            </applications>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}&lt;&gt;&quot;online&quot;</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>{last()}=&quot;online&quot;</recovery_expression>
                                    <name>enclosure status trigger</name>
                                    <opdata>Enclosure status is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                                    <priority>HIGH</priority>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>enclosure{#SNMPINDEX} type</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.48512.1.108.9.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>inspur.as5500.enclosure.type.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Enclosure</name>
                                </application>
                            </applications>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>mdisk discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.48512.1.107.1.1.1,{#MDISK_NAME},1.3.6.1.4.1.48512.1.107.1.1.2]</snmp_oid>
                    <key>inspur.as5500.mdisk.discovery</key>
                    <delay>1h</delay>
                    <item_prototypes>
                        <item_prototype>
                            <name>{#MDISK_NAME} status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.48512.1.107.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>inspur.as5500.mdisk.status.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Mdisk</name>
                                </application>
                            </applications>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}&lt;&gt;&quot;online&quot;</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>{last()}=&quot;online&quot;</recovery_expression>
                                    <name>mdisk status trigger</name>
                                    <opdata>Mdisk status is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                                    <priority>HIGH</priority>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
            </discovery_rules>
        </template>
        <template>
            <template>Template Server Inspur BMC SNMP</template>
            <name>Template Server Inspur BMC SNMP</name>
            <groups>
                <group>
                    <name>Templates/Server hardware</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>Controller</name>
                </application>
                <application>
                    <name>CPU</name>
                </application>
                <application>
                    <name>Fans</name>
                </application>
                <application>
                    <name>Inventory</name>
                </application>
                <application>
                    <name>Memory</name>
                </application>
                <application>
                    <name>Performance</name>
                </application>
                <application>
                    <name>Physical disks</name>
                </application>
                <application>
                    <name>Power supply</name>
                </application>
                <application>
                    <name>Server status</name>
                </application>
                <application>
                    <name>Virtual disks</name>
                </application>
            </applications>
            <items>
                <item>
                    <name>manufacturer</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.37945.2.1.5.1.1.3.9.18.66.111.97.114.100.32.77.97.110.117.102.97.99.116.117.114.101.114</snmp_oid>
                    <key>server.manufacturer</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Inventory</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>product model</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.37945.2.1.5.1.1.3.12.17.66.111.97.114.100.32.80.97.114.116.32.78.117.109.98.101.114</snmp_oid>
                    <key>server.product.model</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Inventory</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>product sn</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.37945.2.1.5.1.1.3.18.21.80.114.111.100.117.99.116.32.83.101.114.105.97.108.32.78.117.109.98.101.114</snmp_oid>
                    <key>server.product.sn</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Inventory</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>cpu state</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.37945.2.1.2.13.1.1.3.0</snmp_oid>
                    <key>server.state.cpu</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Server status</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;&quot;OK&quot;</expression>
                            <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                            <recovery_expression>{last()}=&quot;OK&quot;</recovery_expression>
                            <name>cpu state trigger</name>
                            <opdata>Server cpu state is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>fan state</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.37945.2.1.2.13.1.1.6.0</snmp_oid>
                    <key>server.state.fan</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Server status</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;&quot;OK&quot;</expression>
                            <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                            <recovery_expression>{last()}=&quot;OK&quot;</recovery_expression>
                            <name>fan state trigger</name>
                            <opdata>Server fan state is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>hdd state</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.37945.2.1.2.13.1.1.5.0</snmp_oid>
                    <key>server.state.hdd</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Server status</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;&quot;OK&quot;</expression>
                            <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                            <recovery_expression>{last()}=&quot;OK&quot;</recovery_expression>
                            <name>hdd state trigger</name>
                            <opdata>Server hdd state is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>health state</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.37945.2.1.2.13.1.1.10.0</snmp_oid>
                    <key>server.state.health</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Server status</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;&quot;OK&quot;</expression>
                            <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                            <recovery_expression>{last()}=&quot;OK&quot;</recovery_expression>
                            <name>health state trigger</name>
                            <opdata>Server health state is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>memory state</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.37945.2.1.2.13.1.1.4.0</snmp_oid>
                    <key>server.state.memory</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Server status</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;&quot;OK&quot;</expression>
                            <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                            <recovery_expression>{last()}=&quot;OK&quot;</recovery_expression>
                            <name>memory state trigger</name>
                            <opdata>Server memory state is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>current power state</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.37945.2.1.2.13.1.1.1.0</snmp_oid>
                    <key>server.state.power</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Server status</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>psu state</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.37945.2.1.2.13.1.1.7.0</snmp_oid>
                    <key>server.state.psu</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Server status</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;&quot;OK&quot;</expression>
                            <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                            <recovery_expression>{last()}=&quot;OK&quot;</recovery_expression>
                            <name>psu state trigger</name>
                            <opdata>Server psu state is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>temp state</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.37945.2.1.2.13.1.1.9.0</snmp_oid>
                    <key>server.state.temp</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <applications>
                        <application>
                            <name>Server status</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;&quot;OK&quot;</expression>
                            <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                            <recovery_expression>{last()}=&quot;OK&quot;</recovery_expression>
                            <name>temp state trigger</name>
                            <opdata>Server temp state is changed on {HOST.NAME}: {ITEM.LASTVALUE}</opdata>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
            </items>
            <discovery_rules>
                <discovery_rule>
                    <name>cpu discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.37945.2.1.1.1.1.1.1,{#CPU_NAME},1.3.6.1.4.1.37945.2.1.1.1.1.1.2]</snmp_oid>
                    <key>server.cpu.discovery</key>
                    <delay>1h</delay>
                    <item_prototypes>
                        <item_prototype>
                            <name>{#CPU_NAME} core</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.37945.2.1.1.1.1.1.5.{#SNMPINDEX}</snmp_oid>
                            <key>server.cpu.core.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>CPU</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>{#CPU_NAME} model</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.37945.2.1.1.1.1.1.4.{#SNMPINDEX}</snmp_oid>
                            <key>server.cpu.model.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>CPU</name>
                                </application>
                            </applications>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>fan discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.37945.2.1.2.3.1.1.1,{#FAN_NAME},1.3.6.1.4.1.37945.2.1.2.3.1.1.2]</snmp_oid>
                    <key>server.fan.discovery</key>
                    <delay>1h</delay>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#FAN_NAME}</macro>
                                <value>.*Speed$</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <item_prototypes>
                        <item_prototype>
                            <name>{#FAN_NAME} speed</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.37945.2.1.2.3.1.1.4.{#SNMPINDEX}</snmp_oid>
                            <key>server.fan.speed.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Fans</name>
                                </application>
                            </applications>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>memory discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.37945.2.1.1.2.1.1.1,{#MEM_NAME},1.3.6.1.4.1.37945.2.1.1.2.1.1.2,{#MEM_PRESENT},1.3.6.1.4.1.37945.2.1.1.2.1.1.3]</snmp_oid>
                    <key>server.memory.discovery</key>
                    <delay>1h</delay>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#MEM_PRESENT}</macro>
                                <value>1</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <item_prototypes>
                        <item_prototype>
                            <name>{#MEM_NAME} size</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.37945.2.1.1.2.1.1.9.{#SNMPINDEX}</snmp_oid>
                            <key>server.memory.size.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Memory</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>{#MEM_NAME} speed</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.37945.2.1.1.2.1.1.10.{#SNMPINDEX}</snmp_oid>
                            <key>server.memory.speed.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Memory</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>{#MEM_NAME} type</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.37945.2.1.1.2.1.1.5.{#SNMPINDEX}</snmp_oid>
                            <key>server.memory.type.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Memory</name>
                                </application>
                            </applications>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>power supply discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.37945.2.1.1.6.1.1.1,{#POWER_SUPPLY_NAME},1.3.6.1.4.1.37945.2.1.1.6.1.1.2,{#POWER_SUPPLY_PRESENT},1.3.6.1.4.1.37945.2.1.1.6.1.1.3]</snmp_oid>
                    <key>server.power.supply.discovery</key>
                    <delay>1h</delay>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#POWER_SUPPLY_PRESENT}</macro>
                                <value>1</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <item_prototypes>
                        <item_prototype>
                            <name>{#POWER_SUPPLY_NAME} max</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.37945.2.1.1.6.1.1.7.{#SNMPINDEX}</snmp_oid>
                            <key>server.power.supply.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <applications>
                                <application>
                                    <name>Power supply</name>
                                </application>
                            </applications>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
            </discovery_rules>
        </template>
    </templates>
    <graphs>
        <graph>
            <name>average time graph</name>
            <graph_items>
                <graph_item>
                    <sortorder>1</sortorder>
                    <color>1A7C11</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.disk.average.time</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>2</sortorder>
                    <color>F63100</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.mdisk.average.time</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>3</sortorder>
                    <color>2774A4</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.vdisk.average.time</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>cpu utilization</name>
            <type>STACKED</type>
            <graph_items>
                <graph_item>
                    <sortorder>1</sortorder>
                    <color>1A7C11</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.cpu.utilization</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>ipos graph</name>
            <graph_items>
                <graph_item>
                    <sortorder>1</sortorder>
                    <color>1A7C11</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.disk.iops</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>2</sortorder>
                    <color>F63100</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.fc.iops</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>3</sortorder>
                    <color>2774A4</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.iscsi.iops</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>4</sortorder>
                    <color>A54F10</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.mdisk.iops</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>5</sortorder>
                    <color>FC6EA3</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.sas.iops</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>6</sortorder>
                    <color>6C59DC</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.vdisk.iops</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>traffic graph</name>
            <graph_items>
                <graph_item>
                    <sortorder>1</sortorder>
                    <color>1A7C11</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.disk.traffic</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>2</sortorder>
                    <color>F63100</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.fc.traffic</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>3</sortorder>
                    <color>2774A4</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.iscsi.traffic</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>4</sortorder>
                    <color>A54F10</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.mdisk.traffic</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>5</sortorder>
                    <color>FC6EA3</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.sas.traffic</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>6</sortorder>
                    <color>6C59DC</color>
                    <item>
                        <host>Template SAN Inspur AS5500 G2 SNMP</host>
                        <key>inspur.as5500.vdisk.traffic</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
    </graphs>
</zabbix_export>
上一篇:KB,MB,GB,TB,PB,EB,ZB,YB单位


下一篇:软件设计师考点 6