[ZBXNEXT-1387] Allow triggers to remove hosts from groups, disable them, etc Created: 2012 Aug 29 Updated: 2015 Jun 25 |
|
Status: | Open |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | None |
Affects Version/s: | 2.0.2 |
Fix Version/s: | None |
Type: | Change Request | Priority: | Minor |
Reporter: | Stephen Wood | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 38 |
Labels: | actions, cloud, flexibility, operations | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Ubuntu 12.04 |
Description |
The ability for triggers to remove hosts from groups, change their groups, disable hosts, or remove hosts would be very beneficial. Currently this is only supported via a discovery rule that only works if you scan an IP address. What I'd like is a simple trigger like so: Why limit trigger actions to only sending out alerts or running an arbitrary script? This came from the discussion at |
Comments |
Comment by richlv [ 2012 Aug 29 ] |
low level functionality could be allowing to execute http requests as action operation targets, and then more "user friendly" operations could be added to modify zabbix configuration |
Comment by Conrad Lara [ 2012 Sep 04 ] |
I agree on this one. If anyone has ever worked with McAfee EPO (it is a network management not a monitoring solution) It has some of the most flexible rules possible for taking actions. Basically anything you can do from the interface by hand can be done by rules. With the API coming in for the more advanced we could probably write scripts that get called to grab host ID etc and run API calls but these are features that built in would be great. In my case I plan on having hosts setup as well in Amazon that will register only for short durations, it would make it easier if I know they are no longer in the network to just pull them (unreachable for X time) rather then having to write custom API to remove them. Using Zabbix to monitor the load on my always on servers, alert me to the need to increase servers (especially during DoS periods) and then removing them once the need is reduced. So I am very much in the same boat as |
Comment by Alexei Vladishev [ 2012 Oct 10 ] |
I clearly see many use cases for this functionality. I think that implementation of the basic basic functions (changing group membership, host status, host removal) would be a good start. Use of Zabbix API could be a much more flexible approach, yet it requires serious technical knowledge. |
Comment by Jon [ 2012 Dec 26 ] |
This would be very useful for hosts that change IP addresses or in discovery cloud environments. |
Comment by Tobias van Hoogen [ 2013 Jan 15 ] |
I'm voting for this one. For a couple of (my production specific) environment.
Now, I want to automate the following: every host with mysql ps running (or rather, where it starts) will move to host group 'Database servers' and the right mysql template gets added. (I might couple the template to the host group, doesn't matter for the example). So next step, a trigger - one that doesn't stay in True/Problem state, it only needs to be done once, one (of many) solutions Trigger: Mysql process status = changed (install?) and is currently running on {HOSTNAME} (note, I might have the expression a little wrong there, just typing this for the example And there you have it: Now I need an action based on a trigger, that will be able to do pretty much the same as action based to discovery (move to group, add template etc). I know; I have all my servers under puppet, I have facter (which btw, fills inventory info nicely in zabbix, starting to love that functionality more and more!). Like Alexei suggests, it's quite possible to do all this via an API call... Anyway, sorry for the long comment, just my 2ct! Tobias |
Comment by Gareth Brown [ 2013 Aug 09 ] |
Bump! Would seriously like to see what progress is happening with this. I'd like to see the priority of this, in relation to the Cloud risks associated with The agent should, as suggested in Other alternatives would be to look into using the AWS API a bit like what Daisuke is doing with HyClops. Maybe HyClops will be enough? |
Comment by richlv [ 2013 Aug 09 ] |
again, this is not on the roadmap at this time |
Comment by richlv [ 2015 Jun 25 ] |
this might solve : |