Initialization and Usage
Initialize monitorHealth by establishing an email account for alert origination and configuring a receiver email.
- Set up the email account using the option --sender-email-smtp.
- --sender-email-smtp should be written in the form [smtpServer]:<port>.
- Set up a receiver email using the option --email-id.
- Start with a single email to test operation. Once the utility is working as expected, add any additional emails using addEmailId.
Example
[admin@fs123-h1-5 dist]$ ./monitorHealth configureEmail -h
usage: monitorHealth configureEmail [-h] --sender-email-account SENDER --sender-email-smtp SMTP [--passwd PASSWD] --email-id EMAILIDS
optional arguments:
-h, --help show this help message and exit
--sender-email-account SENDER
The email account of the sender
--sender-email-smtp SMTP
The SMTP settings of sender's email account
--passwd PASSWD Password to configure sender's email account
--email-id EMAILIDS Comma separated email IDs of recipients to notify healthview alert/status
[admin@fs123-h1-5 dist]$
E.g.
[admin@fs123-h1-5 dist]$ sudo ./monitorHealth configure --sender-email-account [email protected] --sender-email-smtp [smtp.office365.com]:25 --email-id [email protected]
Password for email account [email protected]:
[admin@fs123-h1-5 dist]$
Also see: