zabbix监控告警结合itop邮件转工单

General information

Last Name

zabbix

itop

组织

广州市xx信息技术有限公司

状态

活动

Location

未定义

Function

Manager

未定义

Employee number

Personal information

Picture

Notification

Email

xxxxxxxxxxxx@sina.cn

Notification

yes

电话

Mobile phone

Debug测试脚本

 

[root@localhost ~]# php /var/www/html/itop/web/webservices/cron.php --auth_user=admin  --auth_pwd=123456 --verbose = 1

邮箱配置

邮件服务器

pop3.163.com

登录

150xxxxxxxxx@163.com

密码

******

协议

POP3

港口

110

邮箱(适用于IMAP)

活性

调试跟踪

电子邮件出错

出错时的行为

将邮件保留在邮箱中

转发电子邮件至

(从)

传入电子邮件的行为

行为

创建或更新故障单

处理完电子邮件后

将它保存在邮件服务器上

门票类

用户请求

故障单默认值

默认标题(如果主题为空)

标题模式

刺激申请

未知的来电者

未知来电者的行为

拒绝电子邮件

未知的来电拒绝回复

新人的默认值

其他联系人的行为

添加更多联系人(To,CC)

决不

 

zabbix邮件告警发送到邮件然后转itop工单要注意:

vim     /etc/mail.rc


set bsdcompat
set from=xxxxxxxxxxx@sina.cn
set smtp=smtp.sina.cn
set smtp-auth-user=xxxxxxxxxxx@sina.cn        //发送的邮件的地址
set smtp-auth-password=xxxxxxxxx
set smtp-auth=login

1、发送的邮件地址要与itop对应的联系人邮件邮箱对应。

2、下载itop邮件安装包,填写itop联系人与邮箱配置  

  • Incoming eMail Inboxes  //对应模块
  • [root@localhost production]# cat config-itop.php | grep  combodo-email-synchro    'combodo-email-synchro' => array (
    [root@localhost production]# cat config-itop.php | grep itop-standard-email-synchro
        'itop-standard-email-synchro' => array (
    [root@localhost production]# pwd
    /var/www/html/itop/web/conf/production
    [root@localhost production]# ls
    config-itop.php    //配置参数
  • [root@localhost extensions]# pwd
    /var/www/html/itop/web/extensions
    [root@localhost extensions]# ls -ld combodo-email-synchro   itop-standard-email-synchro //解压安装路径
    drwxr-xr-x. 4 apache apache 4096 10月  9 14:35 combodo-email-synchro
    drwxr-xr-x. 3 apache apache 4096 10月  9 14:35 itop-standard-email-synchro
     

3、写周期性计划      45     4     1,   10,    22    *   *       /var/www/html/itop/web/webservices/exce_mail_import.sh

任务执行脚本exce_mail_import.sh  

[root@localhost webservices]# pwd
/var/www/html/itop/web/webservices
vim    exce_mail_import.sh

#!/bin/sh

 php /var/www/html/itop/web/webservices/cron.php --auth_user=admin  --auth_pwd=123456 --verbose = 1

:wq!

chmod   +x    ./exce_mail_import.sh

4、Tickets (23)  //生产的工单

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

乐于技术分享

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值