免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: joecen
打印 上一主题 下一主题

Cacti--进阶应用(数据合并、自定义脚本、插件、中文化等) [复制链接]

论坛徽章:
0
61 [报告]
发表于 2005-12-28 21:22 |只看该作者
哈哈,解决!
只要做个*(-1)的CDEF就可以将图像翻转过来。

论坛徽章:
0
62 [报告]
发表于 2005-12-28 23:08 |只看该作者
原帖由 wallcow 于 2005-12-28 15:00 发表
为了表达更清楚一些:
我通过OID1取得一个数据A-该数据表示某个文件系统总容量;通过OID2取得一个数据B-该数据表示这个文件系统已经使用的容量。我想得到:(B/A*100)=文件系统使用率。
可是CDEF里面“CDEF It ...


再问下。望高手解答。

论坛徽章:
0
63 [报告]
发表于 2005-12-30 14:35 |只看该作者
请教snmp的问题!

如何将snmp服务的端口由udp:161改成tcp:161?
我需要穿越防火墙:(

论坛徽章:
0
64 [报告]
发表于 2005-12-30 14:41 |只看该作者
原帖由 wallcow 于 2005-12-28 23:08 发表


再问下。望高手解答。


CDEF函数的应用可以参考cacti已有的CDEF函数,如果还不会,去查rrdtools资料。(其实我也不会)

简单的解决方法就是自己写个脚本得到你所需的数据。脚本可以参考cacti/scripts/*.pl或者*.sh

[ 本帖最后由 shijiu 于 2005-12-30 14:43 编辑 ]

论坛徽章:
0
65 [报告]
发表于 2005-12-31 13:48 |只看该作者

回复 64楼 shijiu 的帖子

SNMP协议本身就用的是UDP161的,好像改不了的

论坛徽章:
0
66 [报告]
发表于 2006-01-06 12:14 |只看该作者
新装的net-snmp,却发现没有原有的HOST-RESOURCES-MIB!
怎么把这个mib载入?

论坛徽章:
0
67 [报告]
发表于 2006-01-08 21:28 |只看该作者
原帖由 wallcow 于 2005-12-28 23:08 发表


再问下。望高手解答。



rrdtool在进行graph的时候会将每个DS按顺序进行排列,从a开始排列下去。
也就是说,如果你有两个DS,那么在graph的时候,它们分别叫做a和b。

那么你的问题现在就变得很简单,直接添加一个CDEF:


  1. b,a,100,/,*
复制代码


即可。

tips:使用custom sting添加CDEF。

论坛徽章:
0
68 [报告]
发表于 2006-01-08 21:37 |只看该作者
原帖由 shijiu 于 2005-12-30 14:35 发表
请教snmp的问题!

如何将snmp服务的端口由udp:161改成tcp:161?
我需要穿越防火墙:(


agentaddress

The agentaddress directive places the agent list on the specified list of sockets instead of the default port (port 161). Multiple ports can be separated by commas. Transports can be specified by prepending the port number with the transport name (udp or tcp) followed by a colon. Finally, to bind to a particular interface, specify the address you want it to bind with.

For example:

Specifying agentaddress 161,tcp:161,9161@localhost will make the agent listen on udp port 161 for any address, tcp port 161 for any address, and upd port 9161 on only the interface associated with the localhost address.


NOTE: The -T flag changes the default transport mapping. In the example above, the default transport mapping is udp.


or

click here

论坛徽章:
0
69 [报告]
发表于 2006-01-09 12:33 |只看该作者
无法生成图片?
我的服务器装有postfix,所在在安装php时是这样装的:
1.3 安装PHP
mail# cd /usr/ports/www/mod_php4
mail# make install clean

我的选择:(注意别选DEBUG,否则会和ZEND有冲突)
[X] APACHE2    Use apache 2.x instead of apache 1.3.x

安装需要的PHP扩展模块
mail# cd /usr/ports/lang/php4-extensions
mail# make install clean

我选择了下面的模块:

[X] BCMATH       bc style precision math functions
[X] BZ2          bzip2 library support
[X] CALENDAR     calendar conversion support
[X] CRACK        crack support
[X] CTYPE        ctype functions
[X] CURL         CURL support
[X] FTP          FTP support
[X] GD           GD library support
[X] GETTEXT      gettext library support
[X] FILEINFO     fileinfo support
[X] IMAP         IMAP support
[X] MBSTRING     multibyte string support
[X] MCAL         Modular Calendar Access Library support
[X] MCRYPT       Encryption support
[X] MCVE         MCVE support
[X] MHASH        Crypto-hashing support
[X] MYSQL        MySQL database support
[X] PCRE         Perl Compatible Regular Expression support
[X] POSIX        POSIX-like functions
[X] SESSION      session support
[X] TOKENIZER    tokenizer support
[X] XML          XML support
[X] ZLIB         ZLIB support
然后在运行cacti时,在填写路径时,提示找不到php,我查看了一下,/usr/bin/php 确实没有这个文件,不知道是不是装的上面的PHP就是没有/usr/bin/php这个文件,如果再装其它的PHP,会不会对现有的apache+mysql+php产生影响?
    就目前情况看,没有生成图片是不是因为没有找到php?
谢谢。

论坛徽章:
0
70 [报告]
发表于 2006-01-13 13:42 |只看该作者
原帖由 joecen 于 2005-11-22 15:23 发表

"what's up"


这个工具能不能分享下使用经验,谢谢了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP