- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need a automated script for the filesystem ful...
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
тАО05-02-2009 10:56 AM
тАО05-02-2009 10:56 AM
Im my company there is no script been automated for the alerts to be flooded to my mail the filesystem gets over the threshold value. Please provide me a script which works in the sense as " when the filesystems gets over the threshold value 85% , i need to receive a mail specifing the server name and the particular filesystem % has over loaded" with the output of bdf or df command "
your answers are appriciated, please help me in this senario
Thanks
Harish
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2009 11:26 AM
тАО05-02-2009 11:26 AM
Re: Need a automated script for the filesystem full alerts
Welcome to the HPUX forums.
Check out following links.
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1241292210709+28353475&threadId=1003661
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1241292278146+28353475&threadId=1043647
Regds,
R.K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2009 01:00 PM
тАО05-02-2009 01:00 PM
Re: Need a automated script for the filesystem full alerts
There are literally dozens of good choices.
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=178514
That is the place to find sysadmin scripts.
Check out Bill's profile for other threads.
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
тАО05-02-2009 07:05 PM
тАО05-02-2009 07:05 PM
Solutionits here below,
you need to change mail_list,
you can execute this through crontab
once file system will reach 85% will send you email alert
you can also configure pager if you want to get alert on pager for this, thanks,
#!/bin/ksh
# Shell script to check the space left on each file system
mail_list=" abcd_as@doamin.com"
file1="/tmp/blah$$"
> $file1
/usr/bin/bdf -l | awk -v file=$file1 '
{
if ( NR == 1 )
next
if ( $5 > "85" || $4 < 6000 )
{
print $6 " " $5 " " $4 " " > file
}
}'
if [ -s $file1 ]
then
hostname >> $file1
mailx -s `hostname`" diskspace full alert notification" $mail_list < $file1
fi
/bin/rm -f $file1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 12:46 AM
тАО05-04-2009 12:46 AM
Re: Need a automated script for the filesystem full alerts
Attached is a script that will send you an email if a filesystem has reached a certain percentage of usage. It is best to send the email to an SMS gateway and get the notifications via SMS. Ask your mobile provider for such an email account.
(Before you run this take a look, there are some things you should modify. Oh, and it applies to all scripts especially if you run it as root!)
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 12:47 AM
тАО05-04-2009 12:47 AM
Re: Need a automated script for the filesystem full alerts
Modify it too...
Unix operates with beer.