1 mon-collector(7) Ganeti | Version @GANETI_VERSION@
2 ==================================================
7 mon-collector - Command line interface for the data collectors of the
13 **mon-collector** {collector}
18 ``mon-collector`` is a suite of tools designed to provide a command line
19 interface to the data collectors implemented by the ganeti monitoring system.
20 ``mon-collector`` is also the generic binary that must be invoked specifying,
21 as the first command line parameter, the name of the actual desired data
24 When executed, ``mon-collector`` will run the specified collector and will
25 print its output to stdout, in JSON format.
33 | drbd [ [ **-s** | **\--drbd-status** ] = *status-file* ] [ [ **-p** |
34 **\--drbd-pairing**] = *pairing-file* ]
36 Collects the information about the version and status of the DRBD kernel
37 module, and of the disks it is managing.
39 If *status-file* and *pairing-file* are specified, the status and the
40 instance-minor paring information will be read from those files.
41 Otherwise, the collector will read them, respectively, from /proc/drbd
42 and from the Confd server.
44 The options that can be passed to the DRBD collector are as follows:
46 -s *status-file*, \--drbd-status=*status-file*
47 Read the DRBD status from the specified file instead of /proc/drbd.
49 -p *pairing-file*, \--drbd-pairing=*pairing-file*
50 Read the information about the pairing between instances and DRBD minors
51 from the specified file instead of asking the Confd servers for them.
56 | inst-status-xen [ [ **-a** | **\--address** ] = *ip-address* ] [ [ **-p** |
57 **\--port** ] = *port-number* ]
59 Collects the information about the status of the instances of the current node.
60 In order to perform this task, it needs to connect to the ConfD daemon to fetch
61 some configuration information. The following parameters allow the user to
62 specify the position where the daemon is listening, in case it's not the default
65 -a *ip-address*, \--address=*ip-address*
66 The IP address the ConfD daemon is listening on.
68 -p *port-number*, \--port=*port-number*
69 The port the ConfD deamon is listening on.
74 | lv [ [ **-a** | **\--address** ] = *ip-address* ] [ [ **-p** | **\--port** ]
75 = *port-number* ] [ [ **-f** | **\--file** ] = *input-file* ]
76 [ [ **-i** | **\--instances** ] = *instances-file* ]
78 Collects the information about the logical volumes of the current node.
80 In order to perform this task, it needs to interact with the ``lvs`` command
81 line tool and to connect to the ConfD daemon to fetch some configuration
82 information. The following parameters allow the user to specify the position
83 where the daemon is listening, in case it's not the default one:
85 -a *ip-address*, \--address=*ip-address*
86 The IP address the ConfD daemon is listening on.
88 -p *port-number*, \--port=*port-number*
89 The port the ConfD deamon is listening on.
91 Instead of accessing the live data on the cluster, the tool can also read data
92 serialized on files (mainly for testing purposes). Namely:
94 -f *input-file*, \--file *input-file*
95 The name of the file containing a recorded output of the ``lvs`` tool.
97 -i *instances-file*, \--instances=*instances-file*
98 The name of the file containing a JSON serialization of instances the
99 current node is primary and secondary for, listed as::
101 ([Instance], [Instance])
103 where the first list contains the instances the node is primary for, the
104 second list those the node is secondary for.