AA-2893: Implement Alert mechanism using Postfix
Review Request #896 — Created June 3, 2025 and submitted
| Information | |
|---|---|
| apoorva.sn | |
| AMP | |
| amp_4_0 | |
| AA-2893 | |
| Reviewers | |
| pmurugaiyan, prajesh, shuinvy | |
Problem
Implement Alert mechanism using Postfix
Solution
Have written 2 scripts:
install_postfix.sh- Installed postfix, snail and related dependencies and creating cron for executing send_alert_cpu_memory_stats.sh
send_alert_cpu_memory_stats.sh- checks the system config every few min(30min) and sends mail with the configuration details of the system.
The mail format and what need to be sent can be improvised later depending for which scenario to send the mail and also the frequency
Tested changes on my Rocky Linux setup
| Description | From | Last Updated |
|---|---|---|
|
Why GMail ? May be need to fix the comment? |
|
|
|
Can this be part of InfluxDB itself? |
|
|
|
Where is this tables - settings & notifications (use smallcase for table names to align with other tables. |
|
|
|
Use 127.0.0.1 instead of localhost |
|
|
|
remove this crontab, and can it be configured as a task from InfluxDB? |
|
-
-
branches/amp_4_0/platform/tools/install_postfix.sh (Diff revision 1) Why GMail ? May be need to fix the comment?
-
-
branches/amp_4_0/platform/scripts/send_alert_cpu_memory_stats.sh (Diff revision 2) Can this be part of InfluxDB itself?
-
branches/amp_4_0/platform/scripts/send_alert_cpu_memory_stats.sh (Diff revision 2) Where is this tables - settings & notifications (use smallcase for table names to align with other tables.
-
branches/amp_4_0/platform/tools/install_postfix.sh (Diff revision 2) Use 127.0.0.1 instead of localhost
-
branches/amp_4_0/platform/tools/install_postfix.sh (Diff revision 2) remove this crontab, and can it be configured as a task from InfluxDB?
