Before starting, create an email account for the service and have its SMTP details available for the initialization process. Alert emails from the utility will originate from the aforementioned email account.

    • The default location of monitorHealth is: /opt/jetstream/jetdr/script/dist/monitorHealth.
    • Post initialization configuration data is stored in the file: /etc/jetstream/monitorHealth/monitorHealth.json.
    • Log messages are saved in the file: /var/log/monitorHealth.log.


Usage example of monitorHealth:

[admin@fs123-h1-5 dist]$ ./monitorHealth -h

usage: monitorHealth [-h] [--version] [--license] [--doc] {monitor,configureEmail,configure,sendTestEmail,addEmailId,addEmail,removeEmailId,removeEmail} ...


Script to monitor health viewer data and send emails on errors

optional arguments:

  -h, --help            show this help message and exit

  --version             Print version and exit

  --license             Print license and exit

  --doc                 Write documentation and exit


subcommands:

  {monitor,configureEmail,configure,sendTestEmail,addEmailId,addEmail,removeEmailId,removeEmail}

    monitor             Periodically monitor healthview and send email alerts

    configureEmail (configure)

                        Configure email

    sendTestEmail       Send a test email to configured email accounts

    addEmailId (addEmail)

                        Add new email IDs for healthview notification

    removeEmailId (removeEmail)

                        Remove healthview notification email IDs

[admin@fs123-h1-5 dist]$


Note: After initializing/configuring the tool, it will operate in background execution mode.