1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
.. _munin-cgi-html:
.. program:: munin-cgi-html
================
munin-cgi-html
================
DESCRIPTION
===========
The :program:`munin-cgi-html` program is intended to be run from a
web server. It can either run as CGI, or as FastCGI.
OPTIONS
=======
munin-cgi-html takes no options. It is controlled using environment
variables.
ENVIRONMENT VARIABLES
=====================
The following environment variables are used to control the output of
munin-cgi-html:
.. envvar:: PATH_INFO
This is the remaining part of the URI, after the path to the
munin-cgi-html script has been removed.
The group, host, service and timeperiod values are extracted from
this variable. The group may be nested.
EXAMPLES
========
PATH_INFO
---------
"/"
refers to the top page.
"/example.com/"
refers to the group page for "example.com" hosts.
"/example.com/client.example.com/"
refers to the host page for "client.example.com" in the
"example.com" group
COMMAND-LINE
------------
When given an URI like the following:
http://munin.example.org/munin-cgi/munin-cgi-html/example.org
munin-cgi-html will be called with the following environment:
PATH_INFO=/example.org
To verify that munin is able to create HTML pages, you can use the
following command line:
.. code-block:: bash
sudo -u www-data \
PATH_INFO=/example.org \
/usr/lib/munin/cgi/munin-cgi-html
SEE ALSO
========
:ref:`munin-cgi-graph`.
|