The disk-check checks the mounted filesystems for enough empty space. You can configure for each mountpoint the thresholds for different errorlevels.
DISK is the enclosing tag for all disk entries.
0 or 1. If you don't define DISK, no disk check will run.
<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>
For every filesystem, you want to define thresholds for, you define a FS-pair.
The common XML tags as described in Section 9.8, “Tags Common to All Checks and/or Checkpoints”
As many as you like. If you want, you can write FS tags for every errorlevel and every mountpoint you have.
Look at DISK
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>
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.
1
<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>
The threshold you want to check for.
FS (disk check)
TABLESPACE (orats check)
Any threshold you want.
1
Look at FSNAME
You can think about different formulas to calculate the threshold, eg percentage of usage, absolute free kbytes or things like that.
FS (disk check)
TABLESPACE (orats check)
"PERCENT": output an error, if used/total*100 > VALUE
0 or 1. If you don't configure a FORMULA, 'PERCENT' is used.
Look at FSNAME