norcube monitor status
Show the organization's monitoring status, or fail a CI job on open incidents
Shows the open incidents by severity, the monitors by status, and every monitor that is critical or warning. The verdict ("status" in JSON) comes from open incidents, which are problems the checks confirmed: critical while a critical incident is open, warning while only warnings are, else ok.
--fail-on turns the verdict into the exit code: with --fail-on critical the command exits 1 (code unhealthy, the report in the error's details) while a critical incident is open, with --fail-on warning while any incident is open. The report is printed either way. The default, none, always exits 0.
Usage
norcube monitor status [flags]Examples
norcube monitor status
# Gate a deploy on Norcube Monitor
norcube monitor status --fail-on critical
norcube monitor status -o json --query problems[].nameFlags
| Flag | Default | Description |
|---|---|---|
--fail-on | none | Exit 1 while incidents of this severity or worse are open: critical, warning or none |
Every command also takes the global flags: --profile, --org, -o, --query, --debug and more.
See also
norcube monitor: Monitor uptime, SSL certificates and domain expiry, and manage incidents and alerts