Search code examples
mongodbansiblezabbixmaintenance-plan

How do I maintain zabbix for MongoDB backup? with ansible


I have to implement zabbix maintenance for Mongodb backup with ansible

the tasks are as follows:

https://www.zabbix.com/documentation/5.4/en/manual/maintenance

https://docs.ansible.com/ansible/latest/collections/community/zabbix/zabbix_maintenance_module.html


Solution

  • The Ansible module is here: https://github.com/ansible-collections/community.zabbix

    example:

    - name: Create a named maintenance window for host www1 for 90 minutes
      community.zabbix.zabbix_maintenance:
        name: Update of www1
        host_name: www1.example.com
        state: present
        minutes: 90
        server_url: https://...
        login_user: ...
        login_password: ...