Ad Widget

Collapse

AWS autoscale windows instances

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hound
    Junior Member
    • Aug 2015
    • 9

    #1

    AWS autoscale windows instances

    I have Auto registration Action configured to register new auto scaled windows instances. I am not sure how to handle disable host on termination for windows instances.

    Any help wll be appreciated

    Thanks,
    Hound
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Add in host items key checking over AWS API is host terminated.
    On top of active trigger on this item add trigger action with script execution on server side.
    Script should have passed hostid. In script after auth:
    - change status of the host to disabled
    - do whatever other actions which you need on terminated host
    - add host to terminated instances group and add in host inventory termination time on for example "date HW decommissioned"
    - remove host from all groups which are used in aggregated items
    - write anther script which will be executed from contab and will over API delete all hosts from terminated instances group wit date in "date HW decommissioned" older than some time.

    You should be not be instantly deleting in trigger action script terminated host because someone may need it to post factum analyse monitoring data. Deleting host week after disable it should be OK,
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    Working...