- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to monitor the filesystem effectively
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
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
02-13-2007 08:32 AM
02-13-2007 08:32 AM
Script to monitor the filesystem effectively
als o it has to send mail with hostname.
EX: ./moniotr /tmp 80 90
It has to send warning mail if it reaches 80%
It has to send Alert mail if it reaches 90%
I have refered
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050
so pls try to help over it.
Thanks to all .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 09:00 AM
02-13-2007 09:00 AM
Re: Script to monitor the filesystem effectively
Have you seen these.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=419106
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=847833
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 09:07 AM
02-13-2007 09:07 AM
Re: Script to monitor the filesystem effectively
$percent -ge 90 to $percent -ge 80
and the line
$percent -ge 95 to $percent -ge 90
You will need to change the pager email to whatever you like to use.
NOTE: It's an old script which I'm sure has been put together a lot "gooder" by others but what the heck, it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 09:25 AM
02-13-2007 09:25 AM
Re: Script to monitor the filesystem effectively
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 07:56 PM
02-13-2007 07:56 PM
Re: Script to monitor the filesystem effectively
#################################################
#!/bin/sh
# Check filesystem /tmp
DIR=/tmp
EMAIL_ADDRESS="name.surname@company.com"
df -k $DIR > /tmp/df_info
cat /tmp/df_info | awk '$0 !~ /^F/' | sed 's/'%'/''/' > /tmp/df_out
PERCENT=`cat /tmp/df_out | awk '{print $5}' `
if [ "$PERCENT" -ge "80" ]
then
mailx -s "WARNING Filesystem $DIR (`hostname`): $DIR is at $PERCENT%" $EMAIL_ADDRESS <
/tmp/df_info
fi
if [ "$PERCENT" -ge "90" ]
then
mailx -s "ALERT Filesystem $DIR (`hostname`): $DIR is at $PERCENT%" $EMAIL_ADDRESS <
/tmp/df_info
fi
rm /tmp/df_info
rm /tmp/df_out
#################################################
Best Regards,
Erenesto