- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: disk utilixation 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
тАО03-08-2013 10:37 PM
тАО03-08-2013 10:37 PM
disk utilixation monitoring script
i want to set the alert mail when the /home mount point reach 85%, remaining mount point i dont needed
Please share the command
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 99188468 72411856 21656700 77% /
/dev/sda2 304461020 66606804 222139032 24% /home
/dev/sda3 304461020 66606804 222139032 52% /data
/dev/sda4 304461020 66606804 222139032 80% /develop
/dev/sda5 304461020 66606804 222139032 85% /test
tmpfs 16408808 0 16408808 0% /dev/shm
- Tags:
- bdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2013 01:48 AM
тАО03-09-2013 01:48 AM
Re: disk utilization monitoring script
There should be plenty of examples in the forum:
http://h30499.www3.hp.com/t5/System-Administration/Monitoring-disk-space-usage/m-p/3736281
http://h30499.www3.hp.com/t5/General/awk-command-not-working-in-shell-script/m-p/5016980
http://h30499.www3.hp.com/t5/Languages-and-Scripting/Cannot-properly-Filter-BDF-Output/m-p/510241
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2013 04:40 PM - edited тАО03-09-2013 04:44 PM
тАО03-09-2013 04:40 PM - edited тАО03-09-2013 04:44 PM
Re: disk utilixation monitoring script
Attached is a script (adminalert.sh) that monitors not only disk space, but checks on other systems (ping), NFS mountpoints that are not working, and CPU load. Each of the monitors can be enabled of disabled in the config file. Run it once to automatically create the config file with sample settings. Edit the config file to fit your needs. You can log alerts in a logfile, or send an email alert, or both. The script can be run every 5 minutes but it will limit the number of alerts (default is once per hour) to prevent email message storms. The email can be sent to one or more recipients (commans to separate addresses), and the From_address can be set to any valid return address to pass junkmail email filters.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2013 12:35 PM
тАО03-11-2013 12:35 PM
Re: disk utilixation monitoring script
Just a note: Be sure to edit the auto-created config file. It has a number of entries but they are only examples.
Bill Hassell, sysadmin