get mail when matching with threshold value

HI Guys

Below is my file structure and now I want if % is equal and above 95% then I will get the mail with the name of that filesystem and threshold value.

Is someone help me ?

55G 33G 22G 61% /mnt/projects/stp2int4_web_runtime
16G 14G 1.7G 90% /mnt/projects/stp2int1_app_runtime
15G 14G 1.3G 92% /mnt/projects/stp2int1_web_runtime
16G 7.4G 8.7G 46% /mnt/projects/stp2int2_app_runtime
16G 9.9G 6.2G 62% /mnt/projects/stp2int2_web_runtime
42G 18G 24G 43% /mnt/projects/stp2int4_app_runtime
8.0G 1.6M 8.0G 1% /mnt/projects/stp2ob_app_runtime
8.0G 1.7M 8.0G 1% /mnt/projects/stp2ob_web_runtime
27G 23G 4.7G 83% /mnt/projects/stp2perf1_app_runtime
13G 12G 629M 96% /mnt/projects/stp2perf1_web_runtime
27G 24G 3.3G 88% /mnt/projects/stp2perf2_app_runtime
13G 12G 1.5G 89% /mnt/projects/stp2perf2_web_runtime
27G 22G 5.5G 80% /mnt/projects/stp2perf4_app_runtime
16G 11G 5.4G 67% /mnt/projects/stp2perf4_web_runtime
13G 7.5G 5.4G 59% /mnt/projects/stp2perf5_web_runtime
16G 14G 2.6G 84% /mnt/projects/stp2qa1_app_runtime
13G 8.4G 4.4G 66% /mnt/projects/stp2qa1_web_runtime
27G 26G 1.3G 96% /mnt/projects/stp2qa2_app_runtime
40G 29G 12G 71% /mnt/projects/stp2qa2_web_runtime
16G 15G 1.7G 90% /mnt/projects/ual1int1_app_runtime
16G 15G 1.1G 94% /mnt/projects/ual1int1_web_runtime
16G 13G 3.7G 78% /mnt/projects/ual1int2_app_runtime
16G 3.6G 13G 23% /mnt/projects/ual1int2_web_runtime
40G 16G 24G 40% /mnt/projects/ual1int4_app_runtime
31G 8.9G 22G 30% /mnt/projects/ual1int4_web_runtime
16G 6.2G 9.9G 39% /mnt/projects/ual1perf1_app_runtime
4.0G 3.4G 629M 85% /mnt/projects/ual1perf1_web_runtime
16G 5.9G 11G 37% /mnt/projects/ual1perf2_app_runtime
4.7G 3.3G 1.5G 69% /mnt/projects/ual1perf2_web_runtime
16G 11G 5.4G 67% /mnt/projects/ual1perf4_app_runtime
16G 7.4G 8.7G 46% /mnt/projects/ual1perf4_web_runtime
16G 6.6G 9.5G 41% /mnt/projects/ual1qa1_app_runtime
7.4G 3.1G 4.4G 42% /mnt/projects/ual1qa1_web_runtime
14G 13G 1.3G 91% /mnt/projects/ual1qa2_app_runtime
40G 29G 12G 71% /mnt/projects/ual1qa2_web_runtime

Thanks

Try if the below one works..

awk 'int($4)>=95 {print "echo "$NF,$(NF-1)"| mailx -s Threshold_Breach myid@mail.com"}' inputfile | sh

it works for me....

Thanks a lot

---------- Post updated at 06:02 AM ---------- Previous update was at 04:36 AM ----------

Hi ,

Script is working finre but I need a little correction there it was giing me lost of mail but I want here that all the filesystem whose value is equal or above give me only single mail.

Thanks