- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Filesystem alert script file
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
Forums
Discussions
Discussions
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
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
01-28-2005 12:46 AM
01-28-2005 12:46 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2005 12:56 AM
01-28-2005 12:56 AM
SolutionI think I remember one in one of Bill's "favorite sysadmin scripts" threads. Here's a link to the latest, which contains links to the previous two:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2005 12:56 AM
01-28-2005 12:56 AM
Re: Filesystem alert script file
There are a few old threads with a lot of sysadmin scripts.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=123030
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=178514
Search inside the link for filesystem
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2005 01:38 AM
01-28-2005 01:38 AM
Re: Filesystem alert script file
This one checks out just one system that we worry about often. Youll have to chage it to cover more disk systems, different disk systems, etc.
This is run via cron and the output is piped out via mail command to a list of users.
#
# disk check
#
export stat_tmp="/tmp/statck.a4"
echo "\n /a4 DISK SYSTEM"
echo " ------------\n"
echo " /a4 Disk Utilization "
echo " - - - - - - - - - - - - - - - - - - - - - - - "
bdf /a4 > $stat_tmp
head -1 $stat_tmp
grep -v ^Filesystem $stat_tmp | sort -k 5
echo "\n Is /a4 Over 80% Full? "
echo " - - - - - - - - - - "
integer FULLCT=`grep -v ^Filesystem $stat_tmp | \
grep -e "8.%" -e "1..%" | sort -k 5 | wc -l `
if [ $FULLCT -gt 0 ]
then
head -1 $stat_tmp
grep -v ^Filesystem $stat_tmp | grep -e "9.%" -e "1..%" | sort -k 5
else
echo " ... No it is not, no need to panic "
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2005 01:44 AM
01-28-2005 01:44 AM
Re: Filesystem alert script file
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2005 01:49 AM
01-28-2005 01:49 AM
Re: Filesystem alert script file
checkit=$(bdf | grep -E "9.%|10.%" | wc -l)
if (($checkit > 0))
then
mailx -s "$(hostname) filesystem warning $(date)" root
fi
--------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2005 03:43 AM
01-28-2005 03:43 AM