Working with Alerts

Alerts are used to notify users when a predefined target or a condition is met. For example, if the memory usage for a cluster exceeds 90%, you can set an email notification to be sent to the users. This type of notification helps in mitigating the dangers of application downtime that might occur when parameters or go unnoticed.

The following alerts are available:

  • Application Alerts
  • System Alerts

Enabling an Email Alert

AppViewX enables the administrator to send out an email to designated email addresses if the appviewx.conf file is modified.

To enable an email alert when the appviewx.conf file is modified:

  1. Open the terminal.
  2. Navigate to the <avx_installed_path>/conf directory.
  3. To open the appviewx.conf file, execute the following command:
    vi appviewx.conf
  4. Update the following SMTP fields in the appviewx.conf file.
    • SMTP_SERVER = <email server>:<port>
    • SMTP_SENDER_USER = <sender email address>
    • SMTP_RECEIVER_USER = <sender email address>
  5. To get an email alert if the file is tampered, execute the following command:
    ./appviewx --conf_change_alert cron
  6. To set the command in crontab, complete the following steps:
    crontab -e
    <cron freq> cd /home/appviewx/appviewx/scripts && ./appviewx --conf_change_alert
    cron 2>>/home/appviewx/appviewx/logs/cron_logs 1>/dev/null