CLI reference

norcube monitor monitors update

Change a monitor's name, interval or check settings

Not verified yet

Changes only what you pass. Check settings start from the monitor's current ones, so "--timeout 5s" keeps everything else; secret headers keep their stored values unless --secret-headers-file replaces them (and only while the URL keeps its origin). The type can't change. --from-file sends the API's PATCH body as it is (a settings object there replaces the settings as a whole).

Usage

norcube monitor monitors update <monitor> [flags]

Examples

norcube monitor monitors update "Shop" --interval 30s --slow 1500ms
norcube monitor monitors update "Shop" --name "Shop (EU)" --expect 2xx,301
norcube monitor monitors update "API cert" --alert-days 21,7
norcube monitor monitors update 7d1c2f7e-6a1f-4f5e-9b8a-1f7c2b3d4e5f --from-file patch.json

Flags

FlagDefaultDescription
--alert-daysSSL and domain: alert this many days before expiry, up to 5 values (default 30,14,7)
--body-content-typeHTTP: Content-Type of --body-file
--body-fileHTTP: send the request body read from this file (- for standard input)
--cert-expiry-daysHTTP: also watch the certificate, alerting this many days before it expires (https URLs; default on with 30,14,7)
--clear-headersHTTP: remove every request header, secret ones too
--descriptionA note on what the monitor is for
--domainDomain: the registered domain, e.g. example.com (not www.example.com)
--domain-expiry-daysHTTP: also watch the domain's registration, alerting this many days before it expires (default on with 30,14,7 for host names)
--expectHTTP: accepted status codes or ranges, e.g. 2xx, 301, 400-404 (repeat or comma-separate; default 2xx)
--from-fileRead the request body as JSON from this file (- for standard input), in the API's shape; no other setting flags then
--headerHTTP: a request header "Name: value" (repeatable; replaces the plain headers on update)
--hostSSL: host whose certificate to check
--insecureHTTP: don't verify the TLS certificate (it is still reported)
--interval0sHow often to check, e.g. 30s, 5m, 1h (default 1m for HTTP, 1h for SSL, 12h for domains; your organization's limit sets the minimum)
--keywordHTTP: text to look for in the response body (the first 256 KiB)
--keyword-case-sensitiveHTTP: match the keyword's case
--keyword-modeHTTP: whether the keyword must be present (default) or absent
--max-redirectsHTTP: redirects to follow at most (default 5)
--methodHTTP: request method (default GET)
--nameNew name
--no-cert-watchHTTP: don't watch the certificate
--no-domain-watchHTTP: don't watch the domain's registration
--no-follow-redirectsHTTP: judge the first response instead of following redirects
--no-keywordHTTP: stop looking for a keyword
--portSSL: port (default 443)
--secret-headers-fileHTTP: read secret headers ("Name: value" per line) from this file (- for standard input); stored encrypted, never shown again
--server-nameSSL: SNI name to send, when it differs from --host
--slow0sHTTP: warn when a response takes longer than this
--timeout0sHTTP: give up on a request after this long, 1s to 30s (default 10s)
--urlHTTP: the URL to request

Every command also takes the global flags: --profile, --org, -o, --query, --debug and more.

See also

On this page