AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  script to monitor filesystem util > 90% and send alerts to email

    Posted Mon July 13, 2009 11:13 AM

    Originally posted by: apple08


    Dear AIX gurus,
    would like to seek your advice. do u have script that monitor your filesystem/disk space utilisation on aix 5.3?

    would appreciate can share the script (the simple funcitonal script) will do and u automate the checking in cron.

    Mnay thanks in advance
    #AIX-Forum


  • 2.  Re: script to monitor filesystem util > 90% and send alerts to email

    Posted Mon July 13, 2009 08:18 PM

    Originally posted by: dukessd


    Start with something like this:

    http://www.google.co.uk/search?source=ig&hl=en&rlz=&q=df+awk+90+cut&meta=lr%3D
    #AIX-Forum


  • 3.  Re: script to monitor filesystem util > 90% and send alerts to email



  • 4.  Re: script to monitor filesystem util > 90% and send alerts to email

    Posted Wed July 15, 2009 07:11 PM
      |   view attached

    Originally posted by: SystemAdmin


    Here is one that we use. You need both the script and the conf file.

    Since one can only have one file per reply, the /etc/diskspace.conf consists of:
    jfs
    93 2
    / 75
    /usr 90 2
    /exchange 75
    /home 95
    #AIX-Forum

    Attachment(s)



  • 5.  Re: script to monitor filesystem util > 90% and send alerts to email

    Posted Thu July 16, 2009 10:01 AM

    Originally posted by: tony.evans


    Here's how I learned to write scripts for Unix systems.

    1. what steps would I follow to do this manually
    2. write them down
    3. work out the logic to put around them to automate them

    So, if you want to check filesystems, how would you do it yourself from the command line?

    Once you understand that, you can begin to develop your own scripts.

    Some people might suggest that it's better to simply share the scripts everyone else writes, but I think that only works when you know how to write your own anyway. If you just use everyone elses scripts, and they don't work, you can't fix them.

    If you learn to do it yourself and then use other people's scripts, you can fix them.

    So, my advice is learn how to write scripts by following the above steps.

    Do it yourself manually on a box, work out what steps you took, and then put some control around that. It might be ugly and it might not be efficient but it'll be more valuable to you and your continued learning than copying and pasting something else.
    #AIX-Forum