hyperjumptech / monika

Monika is a command line application to monitor every part of your web app using a simple YAML configuration file. Get alert not only when your site is down but also when it's slow.
https://monika.hyperjump.tech
MIT License
605 stars 67 forks source link

Feat: Handle CERT_HAS_EXPIRED error #1299

Closed dennypradipta closed 5 months ago

dennypradipta commented 5 months ago

Monika Pull Request (PR)

What feature/issue does this PR add

This PR handles CERT_HAS_EXPIRED error #1298

How did you implement / how did you fix it

  1. Map the CERT_HAS_EXPIRED to status code 18

How to test

Use this config:

probes:
  - id: '1'
    name: 'Coding Horror'
    description: 'Probe to check Coding Horror blog'
    interval: 10 # in seconds (every 10 minutes)
    requests:
      - method: GET
        url: 'https://expired.badssl.com'
    alerts: 
      - assertion: response.status != 200
        message: Status not 200

image