Chinaunix首页 | 论坛 | 博客
  • 博客访问: 850481
  • 博文数量: 65
  • 博客积分: 534
  • 博客等级: 中士
  • 技术积分: 885
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-23 14:42
个人简介

世上没有东西可以取代坚毅的地位,才干不能,有才能而失败者比比皆是;天才不能,才华横溢又毫无进取者不胜枚举;单靠教育不能,受过教育但潦倒终生者充斥世间;惟有坚毅与果断者能够无所不能,得到成功。雷?克罗克

文章分类

全部博文(65)

文章存档

2017年(1)

2015年(4)

2014年(1)

2013年(19)

2012年(32)

2011年(8)

我的朋友

分类:

2012-03-12 23:13:43

个人笔记:Cacti 0.8.7e 模板成功安装之:advanced ping
源自:杨志刚博客 (http://yangzhigang.cublog.cn)
 
//查看Script:ss_fping.php
(在Cacti 0.8.7e中,已经有ss_fping.php,所以不用上传了,否则将ss_fping.php上传到此目录)
[root@centos53 /]# ll /var/www/cacti/scripts/ss_fping.php
-rw-r--r-- 1 root root 2580 Jun 29 00:07 /var/www/cacti/scripts/ss_fping.php
 
//Import Templates
Import Templates:cacti_graph_template_ping_advanced_ping_v1_3.xml,结果如下:
Import Results

Cacti has imported the following items:

CDEF
[success] Advanced Ping - Loss Unknown [new]
[success] Advanced Ping - Loss 51 - 95 % top [new]
[success] Advanced Ping - Loss 6 - 10 % top [new]
[success] Advanced Ping - Loss 11 - 15 % top [new]
[success] Advanced Ping - Loss 16 - 50 % top [new]
[success] Advanced Ping - Loss 96 - 100 % top [new]
[success] Advanced Ping - Position 12 [new]
[success] Advanced Ping - Position 345 [new]
[success] Advanced Ping - Loss 11 - 15 % bottom [new]
[success] Advanced Ping - Loss 6 - 10 % bottom [new]
[success] Advanced Ping - Loss 16 - 50 % bottom [new]
[success] Advanced Ping - Loss 51 - 95 % bottom [new]
[success] Advanced Ping - Loss 96 - 100 % bottom [new]
[success] Advanced Ping - Loss 1 - 2 % bottom [new]
[success] Advanced Ping - Loss 1 - 2 % top [new]
[success] Advanced Ping - Loss 3 - 5 % bottom [new]
[success] Advanced Ping - Loss 3 - 5 % top [new]

GPRINT Preset
[success] Normal [update]
[success] Ping [new]
[success] Percentage as Decimal [new]

Data Input Method
[success] PING - Advanced Ping v1.3 [new]

Data Template
[success] PING - Advanced Ping v1.3 [new]

Graph Template
[success] PING - Advanced Ping v1.3 [new]

 
 
//应用测试
选一个“device”,Add Graph Template:PING-Advance Ping v1.3,之后,“Create Graphs for this Host”,勾选“Create:PING-Advanced Ping v1.3”,Create。。
等一会,或是用"realtime"可以见到图了。
 
//另:
有的文章的说,要编辑ss_fping.php,但是我没做,也是没有问题的,如遇到问题,可参考一下以下方法:
vi /var/www/cacti/scripts/ss_fping.php,加入:
include_once(dirname(__FILE__) . "/../include/global_settings.php");
然后将xml模板导入到Graph Templates即可使用

阅读(5679) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~