HTML Code:
.......
06/09/2013|12:00:00 PM|3|26112|40|44032|27419.7|6 1 0 93 |6|1|0|93
06/09/2013|12:30:00 PM|3|26112|40|44032|27491|11 4 0 85 |11|4|0|85
I have "sysperf.out" file containing the lines above.
What I like to have on the output is:
HTML Code:
Node: prod1db ===> this is the hostname
Date: 06/09/2013 ===> which is the first column
Time: 12:00:00 PM (which is the 2nd column); Paging Space Util: 3% (3rd column); Memory Util: 62.27% (because 27419.7/44032*100); CPU Util: 6% (4th column from right)
Time: 12:30:00 PM (which is the 2nd column); Paging Space Util: 3% (3rd column); Memory Util: 62.43% (because 27419.7/27491*100); CPU Util: 11% (4th column from right)
So, the output will look like:
PHP Code:
Node: prod1db
Date: 06/09/2013
Time: 12:00:00 PM; Paging Space Util: 3%; Memory Util: 62.27%; CPU Util: 6%
Time: 12:30:00 PM; Paging Space Util: 3%; Memory Util: 62.43%; CPU Util: 11%
and then I want to put this on cron and send out e-mail.
Please advise.