给我一份Zabbix监控服务器内存、磁盘、电源、温度、cpu的模板
时间: 2023-07-10 19:34:35 浏览: 173
基于python与Django的网上购物平台
以下是一个Zabbix监控服务器内存、磁盘、电源、温度、CPU的模板,你可以在Zabbix中导入并使用:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export version="4.4" date="2020-06-29T10:21:35Z">
<hosts>
<host>
<host>Server</host>
<name>Server</name>
<templates>
<template>
<name>Template OS Linux</name>
</template>
</templates>
<interfaces>
<interface>
<type>1</type>
<main>1</main>
<useip>1</useip>
<ip>192.168.1.1</ip>
<dns></dns>
<port>10050</port>
<bulk>1</bulk>
</interface>
</interfaces>
<groups>
<group>
<name>Linux servers</name>
</group>
</groups>
<applications>
<application>
<name>CPU</name>
</application>
<application>
<name>Memory</name>
</application>
<application>
<name>Disks</name>
</application>
<application>
<name>Temperature</name>
</application>
<application>
<name>Power Supply</name>
</application>
</applications>
<items>
<item>
<name>CPU load</name>
<type>0</type>
<snmp_community></snmp_community>
<snmp_oid>1.3.6.1.4.1.2021.10.1.3.1</snmp_oid>
<key>system.cpu.load[percpu,avg1]</key>
<delay>30s</delay>
<history>90d</history>
<trends>365d</trends>
<value_type>0</value_type>
<data_type>0</data_type>
<units> %</units>
<application>CPU</application>
</item>
<item>
<name>Memory Usage</name>
<type>0</type>
<snmp_community></snmp_community>
<snmp_oid>1.3.6.1.4.1.2021.4.6.0</snmp_oid>
<key>vm.memory.size[total]</key>
<delay>30s</delay>
<history>90d</history>
<trends>365d</trends>
<value_type>3</value_type>
<data_type>0</data_type>
<units> B</units>
<application>Memory</application>
</item>
<item>
<name>Memory Used</name>
<type>0</type>
<snmp_community></snmp_community>
<snmp_oid>1.3.6.1.4.1.2021.4.6.0</snmp_oid>
<key>vm.memory.size[used]</key>
<delay>30s</delay>
<history>90d</history>
<trends>365d</trends>
<value_type>3</value_type>
<data_type>0</data_type>
<units> B</units>
<application>Memory</application>
</item>
<item>
<name>Root partition free space</name>
<type>0</type>
<snmp_community></snmp_community>
<snmp_oid>1.3.6.1.4.1.2021.9.1.6.1</snmp_oid>
<key>vfs.fs.size[/,free]</key>
<delay>300s</delay>
<history>90d</history>
<trends>365d</trends>
<value_type>3</value_type>
<data_type>0</data_type>
<units> B</units>
<application>Disks</application>
</item>
<item>
<name>Temperature Sensor 1</name>
<type>4</type>
<snmp_community></snmp_community>
<snmp_oid>.1.3.6.1.4.1.22222.4.1.1</snmp_oid>
<key>temperature.sensor[1]</key>
<delay>60s</delay>
<history>90d</history>
<trends>365d</trends>
<value_type>3</value_type>
<data_type>0</data_type>
<units> C</units>
<application>Temperature</application>
</item>
<item>
<name>Power Supply 1 voltage</name>
<type>4</type>
<snmp_community></snmp_community>
<snmp_oid>.1.3.6.1.4.1.22222.6.1.1</snmp_oid>
<key>power.supply.voltage[1]</key>
<delay>60s</delay>
<history>90d</history>
<trends>365d</trends>
<value_type>4</value_type>
<data_type>0</data_type>
<units> V</units>
<application>Power Supply</application>
</item>
</items>
<discovery_rules>
<discovery_rule>
<name>Disks discovery</name>
<type>0</type>
<key>system.disks.discovery</key>
<delay>3600s</delay>
<history>90d</history>
<trends>365d</trends>
<status>0</status>
<allowed_hosts></allowed_hosts>
<filter>
<evaltype>0</evaltype>
<conditions>
<condition>
<conditiontype>2</conditiontype>
<operator>2</operator>
<value></value>
</condition>
</conditions>
</filter>
<iprange>192.168.1.1/24</iprange>
<lifetime>30d</lifetime>
<item_prototypes>
<item_prototype>
<name>Free space on {#FSNAME}</name>
<type>0</type>
<snmp_community></snmp_community>
<snmp_oid>1.3.6.1.4.1.2021.9.1.6.{#FSINDEX}</snmp_oid>
<key>vfs.fs.size[{#FSNAME},free]</key>
<delay>300s</delay>
<history>90d</history>
<trends>365d</trends>
<value_type>3</value_type>
<data_type>0</data_type>
<units> B</units>
<application>Disks</application>
</item_prototype>
</item_prototypes>
</discovery_rule>
</discovery_rules>
</host>
</hosts>
</zabbix_export>
```
请注意,此模板可能需要根据你的具体环境进行修改和调整。
阅读全文