- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to verify and send a alarm with file system is...
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
01-14-2003 10:26 AM
01-14-2003 10:26 AM
I want to check using df -k if my FS /var is with 90%. If this is true send an alarm via email.
$ df -k
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p7 379303 119969 239751 34% /
/dev/cciss/c0d0p1 51342 7591 41100 16% /boot
/dev/cciss/c0d0p6 4553920 2532480 1790108 59% /home
/dev/cciss/c0d0p5 1007928 509444 447284 54% /opt
none 1029788 0 1029788 0% /dev/shm
/dev/cciss/c0d0p2 9224520 2224844 6531088 26% /usr
/dev/cciss/c0d0p8 252863 36731 203077 16% /var
Regards,
Ricardo
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 10:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 10:42 AM
01-14-2003 10:42 AM
Re: How to verify and send a alarm with file system is 90% ?
This link will provide you the scripts.
http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0x21cd0bce6f33d6118fff0090279cd0f9,00.html
Kind regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 10:45 AM
01-14-2003 10:45 AM
Re: How to verify and send a alarm with file system is 90% ?
Try this:
VALUE=`df -k|grep /var|awk '{ print $5 }'|awk -F"%" '{ print $1 }'`
if [ $VALUE -gt 89 ]
then
echo "Subject: /var at $VALUE%"|sendmail user@domain
fi
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 11:08 AM
01-14-2003 11:08 AM
Re: How to verify and send a alarm with file system is 90% ?
If you cron the script, you will probably want to set an absolute path for the .cf file rather than using the current directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 11:09 AM
01-14-2003 11:09 AM
Re: How to verify and send a alarm with file system is 90% ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 12:05 PM
01-14-2003 12:05 PM
Re: How to verify and send a alarm with file system is 90% ?
bdf | awk '{if ($5 > "90") print $NF,$5 }' > /tmp/test
This will create a file test in /tmp with the files sytems and the values of the usage. You can be creative in using this file as a form of mail , message etc . Run this as a part of script .
Also look here :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3b8fee3e323bd5118fef0090279cd0f9,00.html
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 12:16 PM
01-14-2003 12:16 PM
Re: How to verify and send a alarm with file system is 90% ?
http://www.bb4.com/ is a good source for many other things also.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 02:46 PM
01-14-2003 02:46 PM
Re: How to verify and send a alarm with file system is 90% ?
Cheers
Rajeev