大家好,又见面了,我是你们的朋友全栈君。
zabbix集成onealert验证报错:create media type failed! error message
一、报错详细信息
[root@host-10-10-6-20 bin]# bash install.sh 1841b33f-1c97-1ae5-7dc2-e5a411b9eabf
start to create config file...
Zabbix管理地址: http://10.10.6.20
Zabbix管理员账号: Admin
Zabbix管理员密码: zhangjunchao
start to auth by zabbix admin user and password...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 70 0 70 0 131 975 1825 --:--:-- --:--:-- --:--:-- 0
auth success!
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 41 0 41 0 68 909 1509 --:--:-- --:--:-- --:--:-- 0
start to create mediatype...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
430 130 0 130 0 300 1930 4454 --:--:-- --:--:-- --:--:-- 0
create media type failed! error message:{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params.","data":"Media type \"oneitsm media\" already exists."},"id":1}
二、报错分析
create media type failed! error message
创建zabbix媒体失败类型(Media Type)失败,可能该媒体已经存在
思路:用户群组、用户、报警媒介类型、动作都要删除oneitsm。
三、解决方案
登陆Zabbix管理控制台,删除媒体类型“oneitsm media”
四、重新验证onealert
[root@zabbix bin]# bash install.sh 1841b33f-1c97-1ae5-7dc2-e5a411b9eabf
start to create config file...
Zabbix管理地址: http://10.10.6.20
Zabbix管理员账号: Admin
Zabbix管理员密码: zhangjunchao
start to auth by zabbix admin user and password...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 70 0 70 0 131 1275 2386 --:--:-- --:--:-- --:--:-- 0
auth success!
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 41 0 41 0 68 943 1565 --:--:-- --:--:-- --:--:-- 0
start to create mediatype...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 57 0 57 0 300 991 5217 --:--:-- --:--:-- --:--:-- 0
create media type success!
start to create user group...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 54 0 54 0 160 957 2835 --:--:-- --:--:-- --:--:-- 0
create user group success!
start to create user in zabbix...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 52 0 52 0 573 902 9942 --:--:-- --:--:-- --:--:-- 0
create user success!
start to create action...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2016 0 52 103 1964 812 30694 --:--:-- --:--:-- --:--:-- 31174
create action success!
安装成功.
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/141465.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...