手机版
你好,游客 登录 注册
背景:
阅读新闻

Ubuntu下Cacti安装配置图文详解

[日期:2014-10-16] 来源:Linux社区  作者:xwdreamer [字体:大 中 小]

网页安装

在安装完上面内容以后,请进入以下地址http://your-ip/cacti/再安装

安装snmpd

enadmin@Ubuntu-server:~$ sudo apt-get install snmpd
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following NEW packages will be installed:
  snmpd
upgraded, 1 newly installed, 0 to remove and 146 not upgraded.
Need to get 76.0 kB of archives.
After this operation, 267 kB of additional disk space will be used.
Get:1 http://mirrors.163.com/ubuntu/ precise-security/main snmpd amd64 5.4.3~dfsg-2.4ubuntu1.2 [76.0 kB]
Fetched 76.0 kB in 0s (97.6 kB/s)
Preconfiguring packages ...
Selecting previously unselected package snmpd.
(Reading database ... 59498 files and directories currently installed.)
Unpacking snmpd (from .../snmpd_5.4.3~dfsg-2.4ubuntu1.2_amd64.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Setting up snmpd (5.4.3~dfsg-2.4ubuntu1.2) ...
update-rc.d: warning: snmpd stop runlevel arguments (1) do not match LSB Default-Stop values (0 1 6)
* Starting network management services:
enadmin@ubuntu-server:~$

测试snmp的服务

enadmin@ubuntu-server:~$ snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.1.1.0
iso.3.6.1.2.1.1.1.0 = STRING: "Linux ubuntu-server 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64"
enadmin@ubuntu-server:~$

查看localhost的监控画面

在配置完毕上述内容以后,正常情况下应该可以看到cacti对于自身localhost的的默认监控了。我们进入到Graphs->Tree Mode->Default Tree->Host:Localhost当中查看对于localhost的监控,如下图所示。

常见问题解决

问题1:cacti无法正常生成图片

在cacti当中看不到图片,通过Turn Off Graph Debug Mode.提示报错如下:

'/var/lib/cacti/rra/localhost_users_6.rrd': No such file or directory

解决方法:

这是因为权限问题原因导致的,系统无法生成相应的rrd文件,需要我们人工手动生成,具体操作方法如下:

Console->System Utilities->Rebuild Poller Cache

Cacti 的详细介绍:请点这里
Cacti 的下载地址:请点这里

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-10/108129.htm

linux
相关资讯       CACTI 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款