zoukankan      html  css  js  c++  java
  • Cacti 邮件 报警

    一、使用cacti发一封测试邮件
     
    1.使用第三方SMTP 访问
    到达  设置——Mail 选项
    设置如下:
    1处填写收件箱地址
    2.处填写发件箱地址
    3.处填写smtp服务器地址
    4处填写发件箱用户
    5.处填写用户密码
    也可以设置一下 传输加密  (SSL方式  端口为465)  
    Cacti 邮件 报警 - 朝鲜程序员 - 朝鲜程序员的博客
     
     Cacti 邮件 报警 - 朝鲜程序员 - 朝鲜程序员的博客
     
     
    点击右上角 Sent a test mail 
    Cacti 邮件 报警 - 朝鲜程序员 - 朝鲜程序员的博客
     
    由于腾讯smtp策略原因,邮件一直接收不到
     
    2.使用php  内置mail 发送邮件
      我是用此种方式
    3.使用sendmail/postfix 来发送邮件

     
    二、安装 thold和 monitor插件
    具体方法看另外文章
    http://centos2014.blog.163.com/blog/static/240542044201723011291894/
     
     
    三、添加配置thold
    添加插件具体过程可以参考
    http://centos2014.blog.163.com/blog/static/240542044201723011291894/
     
    配置thold
    控制台——系统设置——设置——Thresholds
    Cacti 邮件 报警 - 朝鲜程序员 - 朝鲜程序员的博客
     
    这里可以设置一下 邮件,其它使用默认配置就可以
    From Email Address 
    This is the Email address that the Threshold will appear from.
     
    From Name 
    This is the actual name that the Threshold will appear from.

     
    添加监控
    Cacti 邮件 报警 - 朝鲜程序员 - 朝鲜程序员的博客
     
    这要设置以下几项:
    Threshold Type 
    The type of Threshold that will be monitored.
    监控类型——   基于高低值      基于基线   基于时间
     
    Re-Alert Cycle 
    Repeat alert after this amount of time has passed since the last alert.
    重复报警时间   

    Data Type 
    Special formatting for the given data.
    数据类型   
     
    Alert Emails 
    You may specify here extra Emails to receive alerts for this data source (comma separated)
    接受报警邮件的地址
     
  • 相关阅读:
    2020 CCPC Wannafly Winter Camp Day2 E阔力梯的树(树上启发式合并)
    牛客练习赛73D 离别(线段树)
    从零开始部署图书管理系统
    linux下安装nginx(编译安装)及反向代理及负载均衡
    linux下MariaDB安装
    linux下virtualenvwrapper安装
    linux下安装虚拟环境
    linux下安装django2.2
    linux下安装nginx(yum源安装)
    linux系统优化命令--day03
  • 原文地址:https://www.cnblogs.com/centos2017/p/7896734.html
Copyright © 2011-2022 走看看