- 论坛徽章:
- 15
|
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)}<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.
|
|