Operating System - HP-UX
1828427 Members
3505 Online
109977 Solutions
New Discussion

Need script to monitor file system

 
pvishal
Visitor

Need script to monitor file system

Hello Expert,

 

Hope you are doing well.

I am new to scripting & need your help here.

We have a one file system name : /dumpdata , which was hosted on the storage.It's a NFS mount.

Its a dump mount point , we need to monitor that mountpoint  as its geting full  every half an hour.

I wrote one script , will some one please evaluate this & make any suggestion please.

 

!/usr/bin/ksh

 

FILESYSTEM=/dumpdata

 

if [ `df -k ${FILESYSTEM} | grep -v Use | awk '{ print $5 }' | sed 's/%//'` -gt 80 ]; then
mailx -s "/dumpdata File System Utilized more than 80%.Need action" vishal.patankar@velocitycloud.com

 

fi

 

Regards,

Vishal