给我一份Zabbix6.0监控服务器温度、电源、内存、磁盘、cup、告警的导入模板
时间: 2023-09-13 08:04:00 浏览: 178
好的,以下是Zabbix 6.0监控服务器温度、电源、内存、磁盘、CPU、告警的导入模板:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export version="6.0" date="2022-11-11T11:11:11Z">
<hosts>
<host>
<host>Server</host>
<name>Server</name>
<interfaces>
<interface>
<type>agent</type>
<main>1</main>
<useip>1</useip>
<ip>192.168.1.1</ip>
<dns></dns>
<port>10050</port>
</interface>
</interfaces>
<groups>
<group>
<name>Linux servers</name>
</group>
</groups>
<templates>
<template>
<name>Server Monitoring</name>
</template>
</templates>
<inventory_mode>0</inventory_mode>
</host>
</hosts>
<templates>
<template>
<template>Server Monitoring</template>
<name>Server Monitoring</name>
<description>Template for monitoring server metrics</description>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<applications>
<application>
<name>Temperature</name>
</application>
<application>
<name>Power Supply</name>
</application>
<application>
<name>Memory</name>
</application>
<application>
<name>Disk</name>
</application>
<application>
<name>CPU</name>
</application>
</applications>
<items>
<item>
<name>Server Temperature</name>
<type>SNMPv2 agent</type>
<snmp_community>public</snmp_community>
<snmp_oid>1.3.6.1.4.1.8072.1.3.2.3.1.2.1.3.6</snmp_oid>
<key>snmpv2.get</key>
<value_type>float</value_type>
<units>Celsius</units>
<delay>30s</delay>
<history>90d</history>
<trends>365d</trends>
<applications>
<application>
<name>Temperature</name>
</application>
</applications>
</item>
<item>
<name>Power Supply Status</name>
<type>SNMPv2 agent</type>
<snmp_community>public</snmp_community>
<snmp_oid>1.3.6.1.4.1.8072.1.3.2.3.1.2.1.3.5</snmp_oid>
<key>snmpv2.get</key>
<value_type>integer</value_type>
<delay>30s</delay>
<history>90d</history>
<trends>365d</trends>
<applications>
<application>
<name>Power Supply</name>
</application>
</applications>
</item>
<item>
<name>Memory Usage</name>
<type>SNMPv2 agent</type>
<snmp_community>public</snmp_community>
<snmp_oid>1.3.6.1.4.1.2021.4.6.0</snmp_oid>
<key>snmpv2.get</key>
<value_type>float</value_type>
<units>MB</units>
<delay>30s</delay>
<history>90d</history>
<trends>365d</trends>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
<item>
<name>Disk Usage</name>
<type>SNMPv2 agent</type>
<snmp_community>public</snmp_community>
<snmp_oid>1.3.6.1.4.1.2021.9.1.9.1</snmp_oid>
<key>snmpv2.get</key>
<value_type>float</value_type>
<units>MB</units>
<delay>30s</delay>
<history>90d</history>
<trends>365d</trends>
<applications>
<application>
<name>Disk</name>
</application>
</applications>
</item>
<item>
<name>CPU Load</name>
<type>SNMPv2 agent</type>
<snmp_community>public</snmp_community>
<snmp_oid>1.3.6.1.4.1.2021.11.10.0</snmp_oid>
<key>snmpv2.get</key>
<value_type>float</value_type>
<units>%</units>
<delay>30s</delay>
<history>90d</history>
<trends>365d</trends>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
</item>
</items>
<triggers>
<trigger>
<expression>{Server Monitoring:Temperature.snmpv2.get.last()}>=50</expression>
<name>High Server Temperature</name>
<priority>Warning</priority>
<description>Server temperature is too high</description>
</trigger>
<trigger>
<expression>{Server Monitoring:Power Supply.snmpv2.get.last()}=2</expression>
<name>Power Supply Failure</name>
<priority>High</priority>
<description>Power supply has failed</description>
</trigger>
<trigger>
<expression>{Server Monitoring:Memory Usage.snmpv2.get.last()}>=80</expression>
<name>High Memory Usage</name>
<priority>Warning</priority>
<description>Memory usage is too high</description>
</trigger>
<trigger>
<expression>{Server Monitoring:Disk Usage.snmpv2.get.last()}>=80</expression>
<name>High Disk Usage</name>
<priority>Warning</priority>
<description>Disk usage is too high</description>
</trigger>
<trigger>
<expression>{Server Monitoring:CPU Load.snmpv2.get.last()}>=80</expression>
<name>High CPU Load</name>
<priority>Warning</priority>
<description>CPU load is too high</description>
</trigger>
</triggers>
</template>
</templates>
</zabbix_export>
```
请注意,此模板使用SNMPv2代理来监视服务器。因此,您需要启用服务器上的SNMP代理,并在Zabbix服务器上配置SNMP监视器以从服务器接收数据。
阅读全文