9.25. Configuration for the lxswraid check.

lxswraid checks md software raids in Linux for device errors. For each raid device, you can configure an errorlevel.

LXSWRAID

Explanation

LXSWRAID is the enclosing tag for all device entries.

Parent

OSAGENT

allowed values

Count

0 or 1. If you don't define LXSWRAID, no md device check will run.

Example
<LXSWRAID>
  <DEVICE>
    <NAME>md0</NAME>
    <ERRORLEVEL>ERROR</ERRORLEVEL>
  </DEVICE>
  <!-- ERRORLEVEL: Default is FATAL -->
  <DEVICE><NAME>md1</NAME></DEVICE>
</LXSWRAID>
        

DEVICE

Explanation

name of the meta device (regular expression)

Parent
allowed values

Count

As many as raid devices.

Example
<LXSWRAID>
  <DEVICE>
    <NAME>^md\d</NAME>
    <ERRORLEVEL>FATAL</ERRORLEVEL>
  </DEVICE>
</LXSWRAID>
	

NAME

Explanation

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

Parent

DEVICE

allowed values

Perl regular expressions describing one or more md devices.

Count

1

Example

Look at DEVICE