Check: Cert

To get this help: amcli --explain=Cert.

To add a section in your ini:

  • Execute: amcli --nocolor --explain=Cert >> example.ini.
  • edit the example.ini in a text editor and update the needed values.

Syntax of an ini section


; -----------------------------------------------------------------------------
;
; Plugin Cert
; Check if a SSL certificate is still valid … and does not expire soon.
;
[<Your check name>]
description="A short description what will be tested"
function="Cert"


; key 'url' {string} 🔸(required)
; Url to check https://[server}[:{port}] or ssl://[server}[:{port}]; autodetected on webserver with php but required on cli
; example: (not provided)
; default: (not provided)
params[url]=<Your value here>

; key 'verify' {bool} 🔹(optional)
; optional: flag verify certificate; default = true
; example: false
; default: 1
params[verify]=<Your value here>

; key 'warning' {int} 🔹(optional)
; optional: count of days to warn; default=21
; example: 30
; default: 21
params[warning]=<Your value here>

; key 'critical' {int} 🔹(optional)
; optional: count of days to raise critical; default=5
; example: 7
; default: 5
params[critical]=<Your value here>