Ubuntu mrtg安装CPU温度监视

系统 Linux
于2009年10月29日发布。目前最新版本Ubuntu 10.04,开发代号为Lucid Lynx,是长期支持版本。

Canonical 雇佣了 Ubuntu 核心开发人员,并为 Ubuntu 提供支持和咨询服务。 Canonical Ltd 还资助了其它大量开源软件项目,如Ubuntu的开发场所Launchpad.net,相关的详细信息请访问 Canonical 网站。

Ubuntu mrtg安装CPU温度监视[默认5分钟采集一次] 

Ubuntu mrtg切换到超级用户: 
sudo -sH 

Ubuntu mrtg安装软件: 
apt-get install mbmon 

Ubuntu mrtg建立CPU温度脚本: 
mkdir /opt/mrtg 
vim /opt/mrtg/mrtg.temp 
#!/bin/bash 
/usr/bin/mbmon -c 1 -i -T 4 -u -n 
exit 0 


Ubuntu mrtg使脚本可以执行: 
chmod +755 /opt/mrtg/mrtg.temp 

修改 /etc/mrtg.cfg 在文件***加入cpu项目 
Target[temp]: `/opt/mrtg/mrtg.temp` 
MaxBytes[temp]: 100 
Title[temp]: CPU Temperature 
PageTop[temp]: <H1>CPU Temperature</H1> 
Options[temp]: gauge,absolute,unknaszero,growright 
YLegend[temp]: Temperature(C) 
ShortLegend[temp]: (C) 
Legend1[temp]: CPU Temperature 
Legend2[temp]: M/B Temperature 
LegendI[temp]: CPU Temp. 
LegendO[temp]: M/B Temp. 

重新生成索引页面: 
indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html 

访问: 
http://localhost/mrtg/

【编辑推荐】

  1. 解决Ubuntu和Fedora的“民事纠纷”
  2. Ubuntu不得不分享的24条使用经验
  3. 在Ubuntu 10.04上安装私有驱动
  4. Ubuntu家族成员 Lubuntu轻量级桌面环境体验
  5. Ubuntu小弟Jolicloud整合云计算的安装实践
     
责任编辑:chenqingxiang 来源: linuxidc
相关推荐

2010-06-07 17:18:54

Ubuntu mrtg

2010-05-31 18:49:16

Ubuntu mrtg

2010-05-31 19:35:23

Ubuntu mrtg

2010-05-31 18:08:26

Ubuntu mrtg

2010-05-31 19:26:02

Ubuntu mrtg

2010-05-31 19:56:26

Ubuntu mrtg

2010-05-31 19:42:00

Ubuntu

2011-03-31 09:02:22

MRTG监控CPU

2011-03-31 10:31:18

Ubuntu安装MRTG

2017-08-08 11:51:39

UbuntuCPU温度Psensor

2010-05-31 20:05:33

Ubuntu mrtg

2011-04-02 10:29:19

MRTG安装

2010-06-07 18:12:39

mrtg 安装

2011-04-01 10:19:13

MrtgCISCO安装

2010-05-28 18:57:15

Mrtg配置

2010-06-01 09:51:11

2011-03-31 11:14:29

MRTG监测

2022-11-07 15:29:06

UbuntuLinuxCPU

2011-03-31 11:14:29

MRTG监测

2011-04-02 14:21:48

win安装MRTG
点赞
收藏

51CTO技术栈公众号