1lxc-monitor(1)                                                  lxc-monitor(1)
2
3
4

NAME

6       lxc-monitor - monitor the container state
7

SYNOPSIS

9       lxc-monitor [-n name] [-Q name]
10

DESCRIPTION

12       lxc-monitor  monitors the state of containers. The name argument may be
13       used to specify which containers to monitor. It is  a  regular  expres‐
14       sion, conforming with posix2, so it is possible to monitor all the con‐
15       tainers, several of them or just one. If not specified, name  will  de‐
16       fault to '.*' which will monitor all containers in lxcpath.
17
18       The  -P, --lxcpath=PATH option may be specified multiple times to moni‐
19       tor more than one container path. Note however that containers with the
20       same name in multiple paths will be indistinguishable in the output.
21

OPTIONS

23       -Q, --quit
24              Ask the lxc-monitord daemon on each given lxcpath to quit. After
25              receiving this command, lxc-monitord will  exit  immediately  as
26              soon  as it has no clients instead of waiting the normal 30 sec‐
27              onds for new clients. This is useful if you need to unmount  the
28              filesystem lxcpath is on.
29

COMMON OPTIONS

31       These options are common to most of lxc commands.
32
33       -?, -h, --help
34              Print a longer usage message than normal.
35
36       --usage
37              Give the usage message
38
39       -q, --quiet
40              mute on
41
42       -P, --lxcpath=PATH
43              Use an alternate container path. The default is /var/lib/lxc.
44
45       -o, --logfile=FILE
46              Output to an alternate log FILE. The default is no log.
47
48       -l, --logpriority=LEVEL
49              Set  log  priority  to LEVEL. The default log priority is ERROR.
50              Possible values are : FATAL, CRIT, WARN,  ERROR,  NOTICE,  INFO,
51              DEBUG.
52
53              Note  that this option is setting the priority of the events log
54              in the alternate log file. It do not have effect  on  the  ERROR
55              events log on stderr.
56
57       -n, --name=NAME
58              Use  container identifier NAME.  The container identifier format
59              is an alphanumeric string.
60
61       --rcfile=FILE
62              Specify the configuration file to configure  the  virtualization
63              and isolation functionalities for the container.
64
65              This configuration file if present will be used even if there is
66              already a configuration file present in the  previously  created
67              container (via lxc-create).
68
69       --version
70              Show the version number.
71

EXAMPLES

73       lxc-monitor -n foo
74              will monitor the different states for container foo.
75
76       lxc-monitor -n 'foo|bar'
77              will monitor the different states for container foo and bar.
78
79       lxc-monitor -n '[fb].*'
80              will  monitor  the  different states for container with the name
81              beginning with letter 'f' or 'b'.
82
83       lxc-monitor -n '.*'
84              will monitor the different states for all containers.
85

DIAGNOSTIC

87       The container was not found
88              The specified container was not created before with the lxc-cre‐
89              ate command.
90

SEE ALSO

92       regex(7),
93

SEE ALSO

95       lxc(7),  lxc-create(1), lxc-copy(1), lxc-destroy(1), lxc-start(1), lxc-
96       stop(1), lxc-execute(1), lxc-console(1),  lxc-monitor(1),  lxc-wait(1),
97       lxc-cgroup(1),  lxc-ls(1), lxc-info(1), lxc-freeze(1), lxc-unfreeze(1),
98       lxc-attach(1), lxc.conf(5)
99

AUTHOR

101       Daniel Lezcano <daniel.lezcano@free.fr>
102
103
104
105                                  2019-09-09                    lxc-monitor(1)
Impressum