saga_gallon 发表于 2014-06-19 16:05

新手,求教zabbix 问题

新手,我安装网上教程搭建了个zabbix ,
我想添加一个主机监控他是否一直在线,默认安装的zabbix 是不是没有监控模板,
下图为我想添加模板,但是没有任何东西出现

kingsh2012 发表于 2014-06-20 08:13

这个得看你用什么方法监控了吧。zabbix安装完都会带一些模板的。
而且也不是这个选项啊,应该是Templates。

saga_gallon 发表于 2014-06-20 13:47

回复 2# kingsh2012


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

rdcwayx 发表于 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:{__Remote_Hosts:icmpping.max(300)}<1Choose 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.

action08 发表于 2014-06-25 14:53

本帖最后由 action08 于 2014-06-25 14:54 编辑

zabbix如何与mail通信啊??

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

rdcwayx 发表于 2014-06-25 17:02

回复 5# action08

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

action08 发表于 2014-06-25 17:16

本帖最后由 action08 于 2014-06-25 17:17 编辑

回复 6# rdcwayx


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



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

lsh8802 发表于 2014-07-04 19:35

可以啊126QQ 有都可以可以用脚本发送,就可以。 ICMP监控使用 Template ICMP Ping 这个模板就可以。

   

l495051275 发表于 2014-07-16 16:46

用icmpping就行 直接在item里面找 不用安装代理
页: [1]
查看完整版本: 新手,求教zabbix 问题