I think it is because your df output that you are reading into awk may be split over multiple lines if the logical volume name or mount-mount are too long.
Before I worry about that, there are a lot of file IO redirections here and a big long linst making it rather messy. Would something like this this be neater?
This looks much cleaner to me so you can concentrate on your formatting.
For the formatting loop, perhaps this might work:-
Of course, you could use awk for this, but you need to know what input you are really getting for each 'line' that whatever tool will use.
Is the output you have shared scraped from the email or is that what ends up in the file?
Can you share the output for a simple df -h /Baysquar2/* /Taticr/* or the more explicit:
Can you tell me if my suggestions help/hinder/confuse?
I think it is because your df output that you are reading into awk may be split over multiple lines if the logical volume name or mount-mount are too long.
Shouldn't df -P (or df -hP) force one line per filesystem?
E.g. Microsoft Outlook by default removes extra line breaks in plain text format. You will be able to see a warning "We removed extra line breaks from this message"
You can turn off this settings or send this email in table (Content-Type: text/html) format.
I have prepared script which will collect cpu, memory and df out out for multiple server and send in one mail, but my script only run in one server, and when I send to mail, it shows in text format. it should be show actual format.
if any one can help , that would be very grateful.
script... (1 Reply)
I have the below script
i am getting the csv in garbled format.Please suggest the changes.
SUNOS
#######################################################################
####MAIN SCRIPT
#######################################################################
today=`date "+%m-%d-%Y ... (3 Replies)
Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions.
... (4 Replies)
Hi,
I have hundred folders under a fs /apps which is used by different users and they upload their data to these folders on a daily basis.
Using du -sk gives me complete structure of the filesystem but i want to find out day to day utlization of the top ten highest accoriding to size wise
... (4 Replies)
Hi,
Can anybody explain why my newly created 120G FS shows 100% utilization when only 113G of disk space has been used? ......
# df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg01-lvol0
119G 113G 0 100% /u02
#du -h /u02
16K ... (3 Replies)
Dear Gentleman
in my environment I have Solaris10 OS Box in Global Zone with 136 GB and mount point from SAN Storage 500 GB (Orastorage)
Zone1 mounted on /Zones folder with 66 GB
when I run zpool list output
-bash-3.00$ zpool list
NAME SIZE ALLOC FREE CAP HEALTH... (0 Replies)
Hi,
I have monitored that disk utilization is very high on one of red hat linux VM.
Would like to know how to find out that issue of high disk utilization is because of disk or Installed Application on that server is causing the problem.
Regards,
Manoj (1 Reply)