装好 cacti 的 thold 插件,设置了 smtp 的用户名密码后,点一下 "Send a Test Email"
顺利收到测试邮件,接着添加 "Threshold Templates",设置报警阀值,故意设置了一个很小的值,
一切完成之后就等他报警了,结果左等右等就是不见报警邮件发过来,又检查了一遍设置,没有查出问题,百度谷歌一番后无果,看来只能自己排错了,于是进入 thold 插件目录,见到有个 thold_functions.php,
打开来看发现有这么一行
 
  
  1. include_once($config["base_path"] . "/plugins/thold/thold_functions.php"); 
看到这个 $config["base_path"] 想起在 "Cacti Settings" -> "Alerting/Thold" 有个 "Base URL" 的设置打开来看了下 这样写的 http://xx.xxxx.net:8080/ 看到后面有个 "/",因为  "/plugins/thold/thold_functions.php" 前面也有一个"/",是不是重复了?于是把设置的"Base URL"后面的"/" 去掉了,改成了 http://xx.xxxx.net:8080,不一会邮件就收到了.
  OK,结束.