Find the answer to your Linux question:
Results 1 to 2 of 2
hi , i want to monitor my apllication server disk utilitazion. i prefer to use some 3rd party monitoring tool. but i haven't got any knowledge about this tools. can ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2004
    Posts
    2

    disk usage monitoring tool


    hi ,
    i want to monitor my apllication server disk utilitazion. i prefer to use some 3rd party monitoring tool. but i haven't got any knowledge about this tools.

    can someone any advertisment ?

    thanks

  2. #2
    Just Joined!
    Join Date
    Oct 2005
    Posts
    10
    Here is a handy script in my collection:

    #!/bin/ksh
    #
    # fswarn.ksh - checks the filesystem usage and mail alert
    # if any match alarm threshold

    fswarnLog=/cust/utils/fswarn/fswarn.log
    mailProg=mailx
    alarm=90
    prog=$(basename $0)

    df -k | while read line
    do
    if echo $line | grep '^Filesystem' >/dev/null
    then
    continue
    fi
    set $line
    pcntFull=$(echo $5 | sed 's/%//')
    fs=$6
    if [[ "$pcntFull" -gt "$alarm" ]]
    then
    # send warning to logfile and mail to the admin
    echo "WARNING: $fs is $pcntFull percent full at $(date)" >> $fswarnLog
    echo "WARNING: $fs is $pcntFull percent full at $(date)" | $mailProg email@domain.com
    fi
    done

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •