给cacti加monitor和thold插件,其中monitor用来监控设备,当设备down时可以检测到,thold用于报警提醒,配置了mail/dns后可以给管理员发送邮件,安装和配置都很简单,网上都有,但是安装完成后,cacti的菜单里没有thold的链接,一个是创建模板的thold_templates.php文件和用于管理报警规则的listthold.php,于是手动添加:
找到cacti/include目录下的global_array.php文件,有一段是menu,这一段用来设置菜单,自己加上就可以了
"graphs.php" => array(
"graphs.php" => "Graph Management",
"cdef.php" => "CDEFs",
"color.php" => "Colors",
"gprint_presets.php" => "GPRINT Presets"
),
"tree.php" => "Graph Trees",
"data_sources.php" => array(
"data_sources.php" => "Data Sources",
"rra.php" => "RRAs"
),
"host.php" => 'Devices',
"plugins/thold/listthold.php" => "Thresholds"
),
"Collection Methods" => array(
"data_queries.php" => "Data Queries",
"data_input.php" => "Data Input Methods"
),
"Templates" => array(
"graph_templates.php" => "Graph Templates",
"host_templates.php" => "Host Templates",
"data_templates.php" => "Data Templates",
"plugins/thold/thold_templates.php" => "Thold Templates"
|
阅读(1511) | 评论(0) | 转发(0) |