9.15. Configuration for the disk check.

The disk-check checks the mounted filesystems for enough empty space. You can configure for each mountpoint the thresholds for different errorlevels.

DISK

Explanation

DISK is the enclosing tag for all disk entries.

Parent

OSAGENT

allowed values

Count

0 or 1. If you don't define DISK, no disk check will run.

Example
<DISK>
  <!-- First: /:  90%: WARNING
                  95%: ERROR
                  98%: FATAL
       All other: 95%: WARNING
                  98%: ERROR
    -->

  <!-- The / - FS -->
  <FS>
    <FSNAME>^/$</FSNAME>
    <ERRORLEVEL>WARNING</ERRORLEVEL>
    <VALUE>90</VALUE>
    <FORMULA>PERCENT</FORMULA>
  </FS>
  <FS>
    <FSNAME>^/$</FSNAME>
    <ERRORLEVEL>ERROR</ERRORLEVEL>
    <VALUE>95</VALUE>
    <!-- No Formula => PERCENT -->
  </FS>
  <FS>
    <FSNAME>^/$</FSNAME>
    <ERRORLEVEL>FATAL</ERRORLEVEL>
    <VALUE>98</VALUE>
  </FS>

  <!-- All other filesystems -->
  <FS>
    <FSNAME>.*</FSNAME>
    <ERRORLEVEL>WARNING</ERRORLEVEL>
    <VALUE>95</VALUE>
  </FS>
  <FS>
    <FSNAME>.*</FSNAME>
    <ERRORLEVEL>ERROR</ERRORLEVEL>
    <VALUE>99</VALUE>
  </FS>
</DISK>
        

FS

Explanation

For every filesystem, you want to define thresholds for, you define a FS-pair.

Parent

DISK

allowed values

Count

As many as you like. If you want, you can write FS tags for every errorlevel and every mountpoint you have.

Example

Look at DISK

FSNAME

Explanation

Name of the filesystem to be checked. This is a perl regular expression, therefor you have to be careful not to describe too much filesystems.

For example, to describe the thresholds for the /-filesystem, you should notate something like:

<DISK>
  <FS>
    <FSNAME>^/$</FSNAME>
    <ERRORLEVEL>WARNING</ERRORLEVEL>
    <VALUE>98</VALUE>
    <FORMULA>PERCENT</FORMULA>
  </FS>
</DISK>
        
Parent

FS

allowed values

Perl regular expressions describing one or more filesystem-mountpoints. Look ath the doku for tabulardata about priorities if you have more than one FSNAME-entry for one filesystem.

Count

1

Example
<DISK>
  <FS>
    <FSNAME>^/$</FSNAME>
    <ERRORLEVEL>WARNING</ERRORLEVEL>
    <VALUE>98</VALUE>
    <FORMULA>PERCENT</FORMULA>
  </FS>
  <FS>
    <FSNAME>.*</FSNAME>
    <ERRORLEVEL>WARNING</ERRORLEVEL>
    <VALUE>95</VALUE>
    <FORMULA>PERCENT</FORMULA>
  </FS>
</DISK>
        

VALUE

Explanation

The threshold you want to check for.

Parent

allowed values

Any threshold you want.

Count

1

Example

Look at FSNAME

FORMULA

Explanation

You can think about different formulas to calculate the threshold, eg percentage of usage, absolute free kbytes or things like that.

Parent

allowed values
  • "PERCENT": output an error, if used/total*100 > VALUE

Count

0 or 1. If you don't configure a FORMULA, 'PERCENT' is used.

Example

Look at FSNAME