# lxc-monitor

## NAME



           lxc-monitor - monitor the container state
    


## SYNOPSIS



           **lxc-monitor**[-n _name_] [-Q _name_]
    


## DESCRIPTION



           **lxc-monitor** monitors  the  state of containers. The _name_ argument
           may be used to specify which containers to monitor. It is a  regu‐
           lar expression, conforming with posix2, so it is possible to moni‐
           tor all the containers, several of them or just one. If not speci‐
           fied,  _name_ will default to '.*' which will monitor all containers
           in **lxcpath**.
    
           The **-P, --lxcpath** =PATH option may be specified multiple  times  to
           monitor more than one container path. Note however that containers
           with  the same name in multiple paths will be indistinguishable in
           the output.
    


## OPTIONS



           **-Q, --quit**
                  Ask the lxc-monitord daemon on each given **lxcpath** to quit.
                  After receiving this command, lxc-monitord will exit imme‐
                  diately as soon as it has no clients instead of waiting the
                  normal 30 seconds for new clients. This is useful if you
                  need to unmount the filesystem **lxcpath** is on.
    


## COMMON OPTIONS



           These options are common to most of lxc commands.
    
           **-?, -h, --help**
                  Print a longer usage message than normal.
    
           **--usage**
                  Give the usage message
    
           **-q, --quiet**
                  mute on
    
           **-P, --lxcpath=**_PATH_
                  Use an alternate container path. The default is
                  /var/lib/lxc.
    
           **-o, --logfile=**_FILE_
                  Output to an alternate log _FILE_. The default is no log.
    
           **-l, --logpriority=**_LEVEL_
                  Set log priority to _LEVEL_. The default log priority is ER‐
                  ROR. Possible values are : FATAL, ALERT, CRIT, WARN, ERROR,
                  NOTICE, INFO, DEBUG, TRACE.
    
                  Note that this option is setting the priority of the events
                  log in the alternate log file. It do not have effect on the
                  ERROR events log on stderr.
    
           **-n, --name=**_NAME_
                  Use container identifier _NAME_.  The container identifier
                  format is an alphanumeric string.
    
           **--rcfile=**_FILE_
                  Specify the configuration file to configure the virtualiza‐
                  tion and isolation functionalities for the container.
    
                  This configuration file if present will be used even if
                  there is already a configuration file present in the previ‐
                  ously created container (via lxc-create).
    
           **--version**
                  Show the version number.
    


## EXAMPLES



           lxc-monitor -n foo
                  will monitor the different states for container foo.
    
           lxc-monitor -n 'foo|bar'
                  will monitor the different states for container foo and
                  bar.
    
           lxc-monitor -n '[fb].*'
                  will monitor the different states for container with the
                  name beginning with letter 'f' or 'b'.
    
           lxc-monitor -n '.*'
                  will monitor the different states for all containers.
    


## DIAGNOSTIC



           The container was not found
                  The specified container was not created before with the
                  **lxc-create** command.
    


* * *