mehqy 发表于 2011-12-23 22:29

Cacti的飞信监控问题

vim /var/www/html/cacti/plugins/thold/thold_functions.php
if (trim($alert_emails) != "")
                                        thold_mail($alert_emails, '', $subject, $msg, $file_array);
                                        exec("echo $subject >> /var/www/html/cacti/plugins/thold/alert.log");
                                        exec("/var/www/html/cacti/plugins/thold/sendsms.sh");
                        } elseif ($show) {
                              print "\n";
                        }
                } elseif ($show) {
                        print " is normal with $currentval\n";
                }

代码是exec两句是自己加上去的,飞信能发信息过来,但是:假如我设置磁盘的使用达到了80%就报警,一台机的/到达了82,但是没收到信息,等我把数值调到90%才报警,问题解决了才收到信息。试过N次了,都是问题解决了才发信息过来~~~~请问是怎么回事
页: [1]
查看完整版本: Cacti的飞信监控问题