Linux / UNIX Tech Support Forum
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 ...
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 | ||
|
|
![]() |
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 | 20-11-2007 08:41 PM |
| Bandwidth monitoring | ssent12 | Computer Networking and Internet/broadband | 2 | 25-07-2007 06:19 PM |
| Solaris newbie: How to install IOzone in Solaris | warren | Solaris/OpenSolaris | 11 | 28-03-2006 05:45 PM |
| remote server monitoring for Solaris | pliu0606 | Solaris/OpenSolaris | 4 | 15-10-2005 02:49 PM |
| Monitoring a NIC | nathan86 | Linux software | 2 | 10-03-2005 03:41 PM |