REQUIREMENT:

Write a shell script, which will trigger a mail alert, if the utilization of the asm diskgroup reached 90 percent.

SOLUTION:

1. Below is the shell script.

Make sure to update ORACLE_HOME, ORACLE_SID inside the shell script.

cat /export/home/oracle/asm_dg.sh

2. Give proper permission:

3. Configure in crontab: