salt.states.zabbix_service module

Management of Zabbix services.

salt.states.zabbix_service.absent(host, service_root, service_name=None, **kwargs)

New in version Fluorine.

Ensure service does not exists under service root.

Parameters
  • host -- Technical name of the host

  • service_root -- Path of service (path is split /)

  • service_name -- Name of service

  • _connection_user -- Optional - zabbix user (can also be set in opts or pillar, see module's docstring)

  • _connection_password -- Optional - zabbix password (can also be set in opts or pillar, see module's docstring)

  • _connection_url -- Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring)

delete_service_icmp:
    zabbix_service.absent:
        - host: server-1
        - service_root: server-group/server icmp
        - service_name: server-1-icmp
salt.states.zabbix_service.present(host, service_root, trigger_desc, service_name=None, **kwargs)

New in version Fluorine.

Ensure service exists under service root.

Parameters
  • host -- Technical name of the host

  • service_root -- Path of service (path is split by /)

  • service_name -- Name of service

  • trigger_desc -- Description of trigger in zabbix

  • _connection_user -- Optional - zabbix user (can also be set in opts or pillar, see module's docstring)

  • _connection_password -- Optional - zabbix password (can also be set in opts or pillar, see module's docstring)

  • _connection_url -- Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring)

Note

If services on path does not exists they are created.

create_service_icmp:
    zabbix_service.present:
        - host: server-1
        - service_root: Server-group/server icmp
        - service_name: server-1-icmp
        - trigger_desc: is unavailable by ICMP