1. Home
  2. Docs
  3. ClusterControl
  4. User Guide (CLI)
  5. s9s-alarm

s9s-alarm

Table of Contents

Manage alarms.

Usage

s9s alarm {command} {options}

Command

Name, shorthand  Description
−−delete Sets the alarm to be ignored. This will not in fact delete the alarm, but it will make the alarm to disappear from the active alarms list, hence the name of the option.
−−list Lists the active alarms.
−−stat Prints a simple list of the number of alarms.

Options

Name, shorthand Description
−−cluster-id=ID, -i The ID of the cluster to manipulate.
−−cluster-name=NAME, -n Sets the cluster name. If the operation creates a new cluster this will be the name of the new cluster.
−−alarm-id=ID. The ID of the alarm to manipulate.

Examples

List out all alarms generated by ClusterControl for a database cluster named “PostgreSQL Cluster”:

$ s9s alarm --cluster-name="PostgreSQL Cluster" --list

Delete an alarm:

$ s9s alarm --delete --alarm-id=1015

Print a simple list of the number of alarms:

$ s9s alarm --stat

Output:

1,0,0

The list will contain three numbers for every line. The first is the cluster ID, the second is the number of critical alarms and the third is the warning level alarms for the given cluster.

Was this article helpful to you? Yes No