Ad Widget

Collapse

How do you handle maintenance periods

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • IvanHoe1978
    Junior Member
    • Nov 2008
    • 2

    #1

    How do you handle maintenance periods

    Hi

    I have a zabbix enviroment where i put servers in and out of maintenance using the api and ansible automation platform.
    When we patch our servers, I create one maintenance period often containing ~300-600 servers pr. patch job.

    Now I would like to remove the single host from the maintenance period as soon as its done.
    My concern is when using maintenance.update and ansible running in strategy free mode.

    maintenance.update needs a host array - that could change after extracting current hosts in the maintenance period and I risk re-adding host already removed by another thread in the playbook.

    So my question - do any of you create maintenance periods consisting of a single host?
    I would end up having ~300-600 maintenance periods pr patch run - but would that even be a problem?.

    Regards Ivan
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    One everlasting maintenance, based on tags (maintenance => yes, for example). Update tags on host on the fly, Just make sure, if there are already some, then those do not get removed (host.update replaces tags).

    Comment

    Working...