The monitor sub-command starts the monitoring process on the input MSA. It can do the following:

    • Send email alert for errors.
      • Alert emails will be titled: JetStream DR: Healthview alert detected.
    • Send reminder email for uncleared errors.
      • Alert emails will be titled: Reminder - JetStream DR: Healthview alert detected.
    • Send periodic email announcing the general status of Health View.
      • Alert emails will be titled: INFO: JetStream DR: Healthview status.


After the vCenter credentials are supplied, the tool moves to background operation mode. Three additional inputs related to the frequency of email alerts can be specified:

    • --interval: Specifies the time interval in minutes between subsequent checks for errors. This value should preferably be more than 15 (minutes) because the MSA only refreshes Health View data every 15 minutes.
    • --renotify-timeout: Specifies the time interval in minutes after which a reminder email is sent if a prior detected error has not been rectified. Reminder emails will be sent until all errors are cleared.
    • --periodic-notify-interval: Specifies the time interval in minutes after which the full Health View status is sent. This should preferably be a multiple of --interval since the MSA is queried at these intervals. The default value is 0 which means no Health View status will be sent.


Example

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

usage: monitorHealth monitor [-h] -m MSA -vi VC -vu VCUSER [-vp VCPASSWD] [--interval INTERVAL] [--renotify-timeout RENOTIFYTIMEOUT] [--periodic-notify-interval PERIODICALNOTIFYINTERVAL]


optional arguments:

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

  -m MSA, --msa MSA     MSA IP or FQDN as per the configuration tab in UI

  -vi VC, --vc-host VC  vCenter IP or FQDN as per the configuration tab in UI

  -vu VCUSER, --vc-user VCUSER

                        vCenter username

  -vp VCPASSWD, --vc-passwd VCPASSWD

                        vCenter password

  --interval INTERVAL   Interval between subsequent executions in minutes (default: 15)

  --renotify-timeout RENOTIFYTIMEOUT

                        Timeout in minutes after which a reminder email is sent (default: 360)

  --periodic-notify-interval PERIODICALNOTIFYINTERVAL

                        Notify the healthview status after the interval (in minutes) has elapsed (default: 0). This should be a multiple of the option --interval

[admin@fs123-h1-5 dist]$


E.g.

[admin@fs123-h1-5 dist]$ sudo ./monitorHealth monitor -vu [email protected] -vi js021-vc1.st.jsoft.com -m js021-msa1.st.jsoft.com --interval 30 --renotify-timeout 1440

vCenter password for user [email protected]:  

[admin@fs123-h1-5 dist]$

Also see:

Stopping monitor

Debugging monitor