salt.beacons.http_status module

Beacon to manage and report the status of a server status endpoint. Fire an event when specified values don't match returned response.

salt.beacons.http_status.beacon(config)

Check on different service status reported by the django-server-status library.

beacons:
  http_status:
    - sites:
        example-site-1:
          url: "https://example.com/status"
          timeout: 30
          content-type: json
          status:
            - value: 400
              comp: <
            - value: 300
              comp: '>='
          content:
            - path: 'certificate:status'
              value: down
              comp: '=='
            - path: 'status_all'
              value: down
              comp: '=='
    - interval: 10
salt.beacons.http_status.validate(config)

Validate the beacon configuration