免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2247 | 回复: 0
打印 上一主题 下一主题

个人笔记:Cacti 0.8.7e 模板成功安装之:advanced ping [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-17 23:37 |只看该作者 |倒序浏览
个人笔记: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即可使用


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/71257/showart_2097137.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP