nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Solaris Disk Monitoring

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 ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-19-2007, 04:53 PM
Junior Member
User
 
Join Date: Jul 2007
My distro: Debian
Posts: 8
Rep Power: 0
vimalgoel is on a distinguished road
Default Solaris Disk Monitoring

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
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT +5.5. The time now is 06:01 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36