免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8669 | 回复: 8
打印 上一主题 下一主题

[其他] 新手,求教zabbix 问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-06-19 16:05 |只看该作者 |倒序浏览
新手,我安装网上教程搭建了个zabbix ,
我想添加一个主机监控他是否一直在线,默认安装的zabbix 是不是没有监控模板,
下图为我想添加模板,但是没有任何东西出现

论坛徽章:
0
2 [报告]
发表于 2014-06-20 08:13 |只看该作者
这个得看你用什么方法监控了吧。zabbix安装完都会带一些模板的。
而且也不是这个选项啊,应该是Templates。

论坛徽章:
0
3 [报告]
发表于 2014-06-20 13:47 |只看该作者
回复 2# kingsh2012


    我的想法就是一直ping ,如果出现ping 不通,就邮件通知

论坛徽章:
15
2015年辞旧岁徽章
日期:2015-03-03 16:54:15双鱼座
日期:2015-01-15 17:29:44午马
日期:2015-01-06 17:06:51子鼠
日期:2014-11-24 10:11:13寅虎
日期:2014-08-18 07:10:55酉鸡
日期:2014-04-02 12:24:51双子座
日期:2014-04-02 12:19:44天秤座
日期:2014-03-17 11:43:36亥猪
日期:2014-03-13 08:13:51未羊
日期:2014-03-11 12:42:03白羊座
日期:2013-11-20 10:15:18CU大牛徽章
日期:2013-04-17 11:48:45
4 [报告]
发表于 2014-06-24 11:17 |只看该作者
https://www.zabbix.com/forum/showthread.php?t=1325

Greetings,

Yes, Zabbix is very good at this. Very simple steps to get this going;

Go into the Zabbix frontend and select configuration -> hosts.

Scroll down near the bottom, you will find a form for adding hosts. At this point, you want to create a template for simplification. For hostname, use something like '__Remote_Hosts', then down at then select the drop down where it shows Monitored. Change this to Template.

Then click Add.

When the page reloads, click on the '__Remote_Hosts' host, this will bring up a list of items that are currently being monitored. At present there should be none.

Next, you use the form to create a ping item for the '__Remote_Hosts' template.

In the description field, just use something like 'Remote Ping'

Leave the Host field alone, this field will be updated automagically when you begin linking hosts to this template

For type, you want to use 'Simple check' and then for the key, you want to use icmpping.

Skip units and use multiplier, and move to update interval. This simply controls the periodicity of the checks, I recommend something like 30 - 45 here. Then click 'Add'

Next we move on to creating the trigger against this items. Click on 'Triggers' up near the top. On the right hand, near the top, you will see a drop down for hosts. Use the drop down and select '__Remote_Hosts'. This will bring up a list of the triggers associated with this host. At present there should be none.

In the form, create a description, something like '{HOSTNAME} -- Failed Ping Check'.

For expression, you want to use something like;
Code:
  1. {__Remote_Hosts:icmpping.max(300)}<1
复制代码
Choose a severity level, then click add. You're almost done. Next you want to click on 'Actions' next to your new trigger. This will allow you to configure your email alert.

From the 'Send message to' drop down, choose whether you wnt this email to go to a group or to an individual.
From the 'User' or 'Group' drop down, choose which user or group you want the alert to go to.
Change the 'Subject' to '{HOSTNAME} -- Failed Ping Check' Then click add.

Okay, now you add the individual hosts, very similar to the way you created the first template. The only difference is this time, instead of choosing template in the dropdown, you use 'Monitored' and for the last drop down, you select '__Remote_Hosts' as the template. Click add and you are done.

I hope this helps.

论坛徽章:
223
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-05-10 19:22:58操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:10操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
5 [报告]
发表于 2014-06-25 14:53 |只看该作者
本帖最后由 action08 于 2014-06-25 14:54 编辑

zabbix如何与mail通信啊??

能否借163的地址对外发哈??

论坛徽章:
15
2015年辞旧岁徽章
日期:2015-03-03 16:54:15双鱼座
日期:2015-01-15 17:29:44午马
日期:2015-01-06 17:06:51子鼠
日期:2014-11-24 10:11:13寅虎
日期:2014-08-18 07:10:55酉鸡
日期:2014-04-02 12:24:51双子座
日期:2014-04-02 12:19:44天秤座
日期:2014-03-17 11:43:36亥猪
日期:2014-03-13 08:13:51未羊
日期:2014-03-11 12:42:03白羊座
日期:2013-11-20 10:15:18CU大牛徽章
日期:2013-04-17 11:48:45
6 [报告]
发表于 2014-06-25 17:02 |只看该作者
回复 5# action08

你能否单独发个帖子问这个问题。顺便说清楚具体的问题细节。
   

论坛徽章:
223
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-05-10 19:22:58操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:10操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
7 [报告]
发表于 2014-06-25 17:16 |只看该作者
本帖最后由 action08 于 2014-06-25 17:17 编辑

回复 6# rdcwayx


    只是一个简单zabbix需求,zabbix是如何发邮件的??
能否同雷鸟一样只配下163账户密码,然后让163发到指定的邮箱(139.com)



简单点说,如何让本地不配置mail server

论坛徽章:
0
8 [报告]
发表于 2014-07-04 19:35 |只看该作者
可以啊  126  QQ 有都可以  可以用脚本发送,就可以。 ICMP监控使用 Template ICMP Ping 这个模板就可以。

   

论坛徽章:
0
9 [报告]
发表于 2014-07-16 16:46 |只看该作者
用icmpping就行 直接在item里面找 不用安装代理
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP