Set the email settings for alerts.


The basic syntax is:

couchbase-cli setting-alert -c [host]:8091 -u [admin] -p [password]


Use this command to set various options for email alerts.


The following are the command options:

Table 1. setting-alert options
Option Description


Disable (0) or enable (1) email alert.


Email recipents, separate addresses with , or ;.


Sender email address.


Email server username.


Email server password.


Email server hostname.


Email server port.


Email encryption with 0 the default for no encryption (yes=1, no=0).


Node was failed over via autofailover.


Maximum number of auto failover nodes reached.


Node not auto failed-over as other nodes are down at the same time.


Node not auto failed-over as cluster was too small.


Alerts if a node is down but autofailover is disabled.


Node ip address changed unexpectedly.


Disk space used for persistent storage has reached at least 90% capacity.


Metadata overhead is more than 50% of RAM for node.


Bucket memory on a node is entirely used for metadata.


Writing data to disk for a specific bucket has failed.


Allow email alert with email encryption:

couchbase-cli setting-alert -c -u Administrator -p password \
--enable-email-alert 1 --enable-email-encrypt 1