Disk/Virtual Memory Free Alerts

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Disk/Virtual Memory Free Alerts

  • Creator
    Topic
  • #53817
    Robert Milfajt
    Participant

      We are switching from percentage based tracking of our main file system to actual space free.  What unit of measurment is being tracked, bytes, kilobytes, megabytes, etc.?  I would like to know how to set this to set alert if we drop below 250 MB free.

      The same question for virtual memory free.  We currently have alert set for vmf < 30000, I'm wondering what this means. Thanks, Bob

      Robert Milfajt
      Northwestern Medicine
      Chicago, IL

    Viewing 2 reply threads
    • Author
      Replies
      • #79040
        Russ Ross
        Participant

          I stopped relying on cloverleaf alerts to check for low disk space concerns so not able to answer your question off the top of my head.

          I can share how I avoid having disk space fill up before I know it.

          I’m running on AIX and schedule via cron to run my check_file_system_space.ksh script once an hour.

          Here is an example cron entry that checks all my filesystems for any that are both 80% full and have less than 4 GBs free

          Code:

          #
          #——————————————-
          # every hour check filesystems for low space
          #——————————————-
          #
          01 00-23 * * * /bin/ksh -c ‘eval . ~/.profile.cron /cloverleaf/cis6.0/integrator mda_global; check_file_system_space.ksh 80 4 >/dev/null’

          Here is the check_file_system_space.ksh script in case you want to adapt some of it to your needs:


          #!/usr/bin/ksh
          #
          # Begin Module Header ==============================================================================
          #
          #——
          # Name:
          #——
          #
          # check_file_system_space.ksh
          #
          #———
          # Purpose:
          #———
          #
          # Check to see if filesystems are runnig low on space and send an email to email_hub_team & page_hub_on_call
          # with alert message and list of filesystems that meet the criteria of low space given in arguments.
          #
          #——–
          # Inputs:
          #——–
          #
          # percent of space used before alert will be trigger
          #

          [code]
          #!/usr/bin/ksh
          #
          # Begin Module Header ==============================================================================
          #
          #


          # Name:
          #


          #
          # check_file_system_space.ksh
          #
          #


          # Purpose:
          #


          #
          # Check to see if filesystems are runnig low on space and send an email to email_hub_team & page_hub_on_call
          # with alert message and list of filesystems that meet the criteria of low space given in arguments.
          #
          #


          # Inputs:
          #


          #
          # percent of space used before alert will be trigger
          #

          Russ Ross
          RussRoss318@gmail.com

        • #79041
          Russ Ross
          Participant

            After playing around with real number comparisons instead of integer comparisons, I discoverd a flaw in KSH that it only compares the integer part of the number.

            Russ Ross
            RussRoss318@gmail.com

          • #79042
            Robert Milfajt
            Participant

              It appears the answer is kilobytes and that 250 MB is about 250000 KB, so my check will be <250000.

              Robert Milfajt
              Northwestern Medicine
              Chicago, IL

          Viewing 2 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.