zabbix集成onealert验证报错:create media type failed! error message[通俗易懂]

zabbix集成onealert验证报错:create media type failed! error message[通俗易懂]zabbix集成onealert验证报错:createmediatypefailed!errormessage一、报错详细信息[root@host-10-101-16-202bin]#bashinstall.sh1841b33f-1c97-1ae5-7dc2-e5a411b9eabfstarttocreateconfigfile…Zabbix管理地址:h…

大家好,又见面了,我是你们的朋友全栈君。

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!
安装成功.
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/141465.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • springboot使用@SpringBootTest注解进行单元测试「建议收藏」

    概述@SpringBootTest注解是SpringBoot自1.4.0版本开始引入的一个用于测试的注解。基本用法如下:1.添加依赖:<projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation…

    2022年4月14日
    148
  • pytorch固定BN层参数[通俗易懂]

    pytorch固定BN层参数[通俗易懂]背景:基于PyTorch的模型,想固定主分支参数,只训练子分支,结果发现在不同epoch相同的测试数据经过主分支输出的结果不同。原因:未固定主分支BN层中的running_mean和running_var。解决方法:将需要固定的BN层状态设置为eval。问题示例:环境:torch:1.7.0#-*-coding:utf-8-*-importtorchimporttorch.nnasnnimporttorch.nn.functionalasFclassNet(nn.M

    2022年8月31日
    0
  • mysql连接不上navicat_mysql安装版步骤

    mysql连接不上navicat_mysql安装版步骤问题:解决方法:命令行登录mysql后执行如下命令alteruser’root’@’localhost’identifiedwithmysql_native_passwordby’密码’;使用我们给的密码进行navicat连接测试:…

    2022年10月14日
    0
  • 证明彼得森图不是平面图

    证明彼得森图不是平面图使用反证法设彼得森图是平面图,那么按照欧拉公式R=E-V+2(R为面,E为边,V为结点)这里E=15,V=10但是彼得森图每个面至少有5条边,由推论可得3m<=5*(n-2)即15<=5/3*8矛盾,于是彼得森图不是平面图…

    2022年5月23日
    51
  • MariaDB安装教程(保姆级)

    MariaDB安装教程(保姆级)Maria的详细下载过程

    2022年6月12日
    133
  • phpstorm 2021.7.20 激活码【中文破解版】

    (phpstorm 2021.7.20 激活码)最近有小伙伴私信我,问我这边有没有免费的intellijIdea的激活码,然后我将全栈君台教程分享给他了。激活成功之后他一直表示感谢,哈哈~IntelliJ2021最新激活注册码,破解教程可免费永久激活,亲测有效,下面是详细链接哦~https://javaforall.net/100143.htmlML…

    2022年3月21日
    47

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号