IT职业工程师's Archiver

找不到我 发表于 2008-7-16 13:19

cactid抓去memory的问题

cactid抓去memory的问题
使用cactid来抓取的话,会发现log中有如下信息:
08/03/2007 10:00:00 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /www/cacti/scripts/linux_memory.pl MemFree:'
首先因为我在FreeBSD上用,所以要注意模板不能选linux的,否则会有问题的,选ucd/net snmp host。

还需要在后台管理的Data Input Method中把Linux-Get Memory Usage中的perl改成绝对路径/usr/bin/perl,如图所示:

[img]http://www.51myit.com/attachments/uploadimg/080706/070803094826.jpg[/img]

修改cacti/resource/script_queries/unix_disk.xml
<script_path>/usr/bin/perl |path_cacti|/scripts/query_unix_partitions.pl</script_path>
然后在 [Utilities] → [System Utilities] → [Rebuild Poller Cache]

也许逃避并终了一生才是对真爱最好的诠释,所以再我证明自己的是对还是错之前——我依旧在寻觅那个有说服力的理由。
[url=http://www.51myit.com/attachments/uploadimg/080706/msgrdV=1Uin=42583065Site=IXPUB技术社区Menu=yes][img]http://www.ixpub.net/images/dst/qq.gif[/img][/url] [url=http://www.51myit.com/attachments/uploadimg/080706/send_webmesg.target=grjboyzone101@yahoo.com.cn.src=pg][img]http://www.ixpub.net/images/dst/yahoo.gif[/img][/url]

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.