Cacti中为每主机定义不同的Down机报警邮件接收地址

cacti属于轻量级的监控系统,默认只能配置一个报警信箱,为了协同作业,需要增加报警信箱,实现每台主机配置一个报警信箱,详情如下:

环境:Cacti 0.8.7g Monitor1.2.1 Thold 0.4.1

1、cacti.host表增加一个字段  alertMail

ALTER TABLE host ADD alertMail varchar(200) default '' not null AFTER monitor_text;

2、修改脚本/plugins/monitor/setup.php, 设置Host管理表单项,找到monitor_config_form()方法, 在$fields_host_edit3['monitor_text']数组变量下加 入$fields_host_edit3['alertMail']数组,如下:

    $fields_host_edit3['alertMail'] = array(

    "method" => "textbox",

    "friendly_name" => "Alert Email",

    "description" => "This is the email address that will be sent when this host is reported as down.",

    "value" => "|arg1:alertMail|",

    "max_length" 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值