9.50. Configuration for the xen check.

The xen checks the availibility of a Xen domain and the state of its. You define a name and an allowed state for your Xen host.

XEN

Explanation

XEN is the enclosing tag for all DOMAIN entries.

Parent

OSAGENT

allowed values

Count

0 or 1. If you don't define XEN, no xen check will run.

Example
  <XEN>
    <DOMAIN>
      <NAME>demo1</NAME>
      <ALLOWED_STATE>r----</ALLOWED_STATE>
      <ERRORLEVEL>ERROR</ERRORLEVEL>
    </DOMAIN>
    <DOMAIN>
      <NAME>xenwin01</NAME>
      <ALLOWED_STATE>r----</ALLOWED_STATE>
      <ERRORLEVEL>ERROR</ERRORLEVEL>
    </DOMAIN>
  </XEN>
        

DOMAIN

Explanation

define a domain pair for each domain you want to check

Parent

XEN

allowed values

Count

As many as you like.

Example

Look at XEN

NAME

Explanation

Name of your Xen domain (i.e. "Dom0")

Parent

DOMAIN

allowed values

string (domain name listed by xm list

Count

1

Example

Look at XEN

ALLOWED-STATE

Explanation

allowed state for your Xen domain. Given by xm list

Parent

DOMAIN

allowed values

regular expressen (i.e. "r-----" for running state)

Count

1

Example

Look at XEN

COMMAND

Explanation

Use the COMMAND-tag to do another system call to get the xm list output. Maybe a sudo command will be used

Parent

allowed values

string

Count

0 or 1

If you specify no COMMAND, the default will be used.

Example
  <XEN>
    <COMMAND>sudo -u root xm list</COMMAND>
    <DOMAIN>
      <NAME>demo1</NAME>
      <ALLOWED_STATE>r----</ALLOWED_STATE>
      <ERRORLEVEL>ERROR</ERRORLEVEL>
    </DOMAIN>
    <DOMAIN>
      <NAME>xenwin01</NAME>
      <ALLOWED_STATE>r----</ALLOWED_STATE>
      <ERRORLEVEL>ERROR</ERRORLEVEL>
    </DOMAIN>
  </XEN>