ZABBIXCPU Temperature Monitoring-centos

Source: Internet
Author: User

ZABBIXCPU Temperature Monitoring

1, lm_sensors Installation

#yum Install Lm_sensors

...

#sensors-detect

All options are selected Yes

Restarting the server

2, lm_sensors output result adjustment

Command sensors can display the component temperature (different machine display different content)

[email protected] sbin]# sensors

coretemp-isa-0000

Adapter:isa Adapter

Core 0: + 40°c (high = + 100°c)

coretemp-isa-0001

Adapter:isa Adapter

Core 1: +37°c (high = + 100°c)

command sensors –u < Part number > The temperature of the specified part can be removed separately

[Email protected] sbin]# sensors-u coretemp-isa-0000

coretemp-isa-0000

Adapter:isa Adapter

Core 0:40.00 (TEMP1)

temp1_crit:100.00 (Temp1_crit)

temp1_crit_alarm:0.00 (Temp1_crit_alarm)

Processing output results (according to the actual situation)

Cases:

[Email protected] etc]# sensors-u coretemp-isa-0000 |grep Core |cut-d "-f3|cut-d". "-f1

40

[Email protected] etc]# sensors-u coretemp-isa-0001 |grep Core |cut-d "-f3|cut-d". "-f1

37

3, zabbix_agentd.conf settings

Add Userparameter to Zabbix_agentd.conf

[Email protected] etc]# vi/usr/local/etc/zabbix_agentd.conf

......

# # Option:userparameter

# user-defined parameter to monitor. There can several user-defined parameters.

# Format:userparameter=<key>,<shell Command>

# see ' zabbix_agentd ' directory for examples.

#

# Mandatory:no

# Default:

# userparameter=

Userparameter=cputemp.core0,/usr/bin/sensors-u coretemp-isa-0000 |grep Core |cut-d "-f3|cut-d". "-f1

Userparameter=cputemp.core1,/usr/bin/sensors-u coretemp-isa-0001 |grep Core |cut-d "-f3|cut-d". "-f1

......

Restart Zabbix_agentd

[Email protected] etc]#/sbin/service zabbix_agentd restart

Stopping Zabbix Agent: [OK]

Starting Zabbix Agent: [OK]

4, Zabbix server-side settings

Create a new item, such as a default setting that is not displayed

New Trigle,

Cases:

You can watch it.

ZABBIXCPU Temperature Monitoring-centos

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.