General information Last Name zabbix 姓 itop 组织 状态 活动 Location 未定义 Function Manager 未定义 Employee number | Personal information Picture NotificationNotification 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) //生产的工单