This is a discussion on Solaris Disk Monitoring within the Getting started tutorials forums, part of the Linux Getting Started category; Hi, Thanks to post shell scripts. I use one script for disk monitoring on linux and solaris. This script working ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Hi,
Thanks to post shell scripts. I use one script for disk monitoring on linux and solaris. This script working fine on Linux but when i am using same scritp on solaris 9 and 10. it's showing error "`usep='$ unexpected" Script is: df -k | grep '^Filesystem|tmpfs|fd' | awk '{ print $5 " " $1 }' | while read output; do echo $output usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 ) partition=$(echo $output | awk '{ print $2 }' ) if [ $usep -ge 90 ]; then echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" | mail -s "Alert: Almost out of disk space $usep%" you@somewhere.com fi done Please help me to run that script on solaris also. It is not accepting "usep" and "partition" Please resolve the issue. Waiting for response. Thanks & Regards, Vimal Goel |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Monitoring Tools | jhn_daz@yahoo.com | Linux software | 1 | 11-20-2007 08:41 PM |
| Bandwidth monitoring | ssent12 | Computer Networking and Internet/broadband | 2 | 07-25-2007 06:19 PM |
| Solaris newbie: How to install IOzone in Solaris | warren | Solaris/OpenSolaris | 11 | 03-28-2006 05:45 PM |
| remote server monitoring for Solaris | pliu0606 | Solaris/OpenSolaris | 4 | 10-15-2005 02:49 PM |
| Monitoring a NIC | nathan86 | Linux software | 2 | 03-10-2005 03:41 PM |