ganeti-mond.rst 2.47 KB
Newer Older
1 2 3 4 5 6 7 8
ganeti-mond(8) Ganeti | Version @GANETI_VERSION@
=================================================

Name
----

ganeti-mond - Ganeti monitoring daemon

9 10 11
Synopsis
--------

Klaus Aehlig's avatar
Klaus Aehlig committed
12
**ganeti-mond** [-f] [-d] [-p *PORT*] [-b *ADDRESS*] [--no-user-checks]
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

DESCRIPTION
-----------

**ganeti-mond** is the daemon providing the Ganeti monitoring
functionality. It is responsible for running the data collectors and to
provide the collected information through a HTTP interface.

For testing purposes, you can give the ``-f`` option and the
program won't detach from the running terminal.

Debug-level message can be activated by giving the ``-d`` option.

The **ganeti-mond** daemon listens to port 1815 TCP, on all interfaces,
by default. The port can be overridden by an entry the services database
by passing the ``-p`` option.
29 30
The ``-b`` option can be used to specify the address to bind to
(defaults to ``0.0.0.0``).
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
The daemon will refuse to start if the user and group do not match the
one defined at build time; this behaviour can be overridden by the
``--no-user-checks`` option.

COMMUNICATION PROTOCOL
~~~~~~~~~~~~~~~~~~~~~~

The queries to the monitoring agent will be HTTP GET requests on port 1815.
The answer will be encoded in JSON format and will depend on the specific
accessed resource.

If a request is sent to a non-existing resource, a 404 error will be returned by
the HTTP server.

``/``
+++++
The root resource. It will return the list of the supported protocol version
numbers.

``/1/list/collectors``
++++++++++++++++++++++
Returns a list of tuples (kind, category, name) showing all the collectors
available in the system.

``/1/report/all``
+++++++++++++++++
Michele Tartara's avatar
Michele Tartara committed
57
A list of the reports of all the data collectors.
58

Michele Tartara's avatar
Michele Tartara committed
59
`Status reporting collectors` will provide their output in non-verbose format.
60 61 62 63 64 65 66 67 68 69 70
The verbose format can be requested by adding the parameter ``verbose=1`` to the
request.

``/1/report/[category]/[collector_name]``
+++++++++++++++++++++++++++++++++++++++++
Returns the report of the collector ``[collector_name]`` that belongs to the
specified ``[category]``.

If a collector does not belong to any category, ``collector`` will be used as
the value for ``[category]``.

Michele Tartara's avatar
Michele Tartara committed
71
`Status reporting collectors` will provide their output in non-verbose format.
72 73 74 75 76 77
The verbose format can be requested by adding the parameter ``verbose=1`` to the
request.

Further information can be found in the Ganeti Monitoring Agent
design document.

78 79 80 81 82
.. vim: set textwidth=72 :
.. Local Variables:
.. mode: rst
.. fill-column: 72
.. End: