nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


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.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 19-12-2007, 04:53 PM
Junior Member
User
 
Join Date: Jul 2007
OS: Debian
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 05:42 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38