配置 cacti 邮件警报的一些经验技巧

创建日期:

2010-10-10

 

环境:

OS: Windows Server 2008 Standard

Cacti Version: 0.8.7e

PIA: 2.6

MySQL: mysql-essential-5.1.50-winx64

PHP: php-5.2.14-nts-win32

 

之前配置失败的症状及原因:

症状:

所有的 thold 配置均无法保存,且页面上没有任何的提示信息。数据库中 thold_data thold_template 这两个表没有任何的记录。

原因:

可能是由于警报插件的版本与使用的 cacti 版本不兼容所致,我们当时使用的是 thold 0.4.2, cacti 官方网站列出的目前支持的最新的 thold 版本却是 0.4.1 。( cacti 所支持的插件的详细信息参考, http://docs.cacti.net/plugins

补充:经同事验证, thold 0.4.2 也可以配置成功,那么就不是版本兼容的问题了。但是依然推荐使用官网列出的版本。

 

解决方法:

卸载了插件 thold 0.4.2 settings 插件之后, 重新安装 settings 0.7 thold 0.4.1

在创建 threshold templates 时总是报:

Error: A template with that Data Source already exists!”

而创建 thresholds 时, 则没有任何的提示信息(细微的不同是,监控项的选项卡会是 n/a ), 且没有保存成功。

 

在网上搜索到的一个解决方法:

http://forums.cacti.net/about36336.html

解决方法就是:

I ended up fixing this by just disabling and uninstalling the plugin and then re-installing and re-enabling it. Of course, I had to re-create all my thresholds, which kinda sucked but it's been stable since then. ”

是的, 就是这样“神奇”。其他那些需要改 thold PHP 代码的帖子可以忽略。

 

在设置 thresholds 的收件人时需要注意, 即 Extra Alert Emails 域的值:

若要发给多个人, 用逗号分隔多个邮件地址, 只能使用逗号,逗号后面不能有空格。

 

 

猜你喜欢

转载自zhongwei-leg.iteye.com/blog/780994