- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need help on file system monitoring script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 03:09 AM
тАО02-24-2009 03:09 AM
Need help on file system monitoring script
I have a script and conf file attached here in zip format (fs1.zip).
1: main.txt (scipt)
2: conf.txt (conf file)
When I run the main script, it checks and sends me a mail. But it checks and tells only that 'file system full' it doesn't tell which file system is full/reached. Can you please add some lines in that script which can send me the infomation about which file system reached the limit, set in the conf file.
Thanks in advance
Gab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 03:15 AM
тАО02-24-2009 03:15 AM
Re: Need help on file system monitoring script
for FS in / /opt /var /tmp
do
AMOUNT=$(bdf $FS | grep "%" | awk '{ print $5 }')
then add an if statement - to test if $AMOUNT is above 95%?
email out and include $FS
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 03:35 AM
тАО02-24-2009 03:35 AM
Re: Need help on file system monitoring script
Thanks for the help.
Can you please add it to the script and send me the final script.
I tried it but now working.
Thanks in advance
Gab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 03:36 AM
тАО02-24-2009 03:36 AM
Re: Need help on file system monitoring script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 03:37 AM
тАО02-24-2009 03:37 AM
Re: Need help on file system monitoring script
Its been done here before:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1100009
ITRC is where I got mine.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=800551
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=78542
Several good choices there.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 03:38 AM
тАО02-24-2009 03:38 AM
Re: Need help on file system monitoring script
I cannot see your "attached" script file. Its missing.
I am a contractor and charge quite a good rate for editing scripts, where should I send the bill?
I am happy to make suggestions but I would prefer if you have a go at editing the script yourself. You will learn more that way.
Thanks
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 03:42 AM
тАО02-24-2009 03:42 AM
Re: Need help on file system monitoring script
Thanks for the reply.
Can anyone please send me the complete script which I can test on my machine?
Thanks
Gab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 03:53 AM
тАО02-24-2009 03:53 AM
Re: Need help on file system monitoring script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 03:57 AM
тАО02-24-2009 03:57 AM
Re: Need help on file system monitoring script
Sorry , I forgot to attach the script.
Please find the attached files in zip format (fs1.zip)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 04:03 AM
тАО02-24-2009 04:03 AM
Re: Need help on file system monitoring script
why not simply include ${FS[$i]} in the mail subject string?
eg:mailx -s "file system ${FS[$i]} full " gabbi@yahoo.com < /dev/null