http://qs321.pair.com?node_id=1182420
User since: Feb 21, 2017 at 11:20 UTC (7 years ago)
Last here: Jul 23, 2017 at 09:54 UTC (7 years ago)
Experience: 41
Level:Novice (2)
Writeups: 4
Location:n/a
User's localtime: Apr 19, 2024 at 18:48 UTC
Scratchpad: View
For this user:Search nodes


Posts by vikas330
multiple machines disk space alert in Seekers of Perl Wisdom
2 direct replies — Read more / Contribute
by vikas330
on Feb 21, 2017 at 06:38
    Hello Monks,

    I'm new to perl, so maybe I'm asking a simple perl script but for me its typical.

    Please help me with a script for getting alerts on mail if FS utilization on machines exceeds 90% utilization and the output should be in tabular format.

    I have the command to list all the FS having more than 80% utilization but I'm unable to print those outputs in a tabular format by writing perl script,

     $ssh $u@$i "df -P | /usr/bin/awk '0 + \$5 >= 80 {print}'" >> $FILE output to a file then I want to list all those FS with fields like

    Server_Name FS_mount_point Utilization(in %)

    and print all those in a mail in tabular format with fields like above. Thanks