File: showgraph.cgi.1

package info (click to toggle)
xymon 4.3.30-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,288 kB
  • sloc: ansic: 69,112; sh: 3,595; makefile: 857; javascript: 452; perl: 48
file content (110 lines) | stat: -rw-r--r-- 2,933 bytes parent folder | download | duplicates (2)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.TH SHOWGRAPH.CGI 1 "Version 4.3.30:  4 Sep 2019" "Xymon"
.SH NAME
showgraph.cgi \- CGI to generate Xymon trend graphs
.SH SYNOPSIS
.B "showgraph [options]"

.SH DESCRIPTION
\fBshowgraph.cgi\fR
is invoked as a CGI script via the showgraph.sh CGI wrapper.

showgraph.cgi is passed a QUERY_STRING environment variable with the
following parameters:
.sp
.BR host
Name of the host to generate a graph for
.sp
.BR service
Name of the service to generate a graph for
.sp
.BR disp
Display-name of the host, used on the generated graphs instead of hostname.
.sp
.BR graph
Can be "hourly", "daily", "weekly" or "monthly" to select the time period
that the graph covers.
.sp
.BR first
Used to split multi-graphs into multiple graphs. This causes showgraph.cgi
to generate only the graphs starting with the "first'th" graph and continuing
for "count".
.sp
.BR count
Number of graphs in a multi-graph.
.sp
.BR upper
Set the upper limit of the graph. See
.I rrdgraph(1)
for a description of the "\-u" option.
.sp
.BR lower
Set the lower limit of the graph. See
.I rrdgraph(1)
for a description of the "\-l" option.
.sp
.BR graph_start
Set the starttime of the graph. This is used in zoom-mode.
.sp
.BR graph_end
Set the end-time of the graph. This is used in zoom-mode.
.sp
.BR action=menu
Generate an HTML page with links to 4 graphs, representing the
hourly, weekly, monthly and yearly graphs. Doesn't actually generate
any graphs, only the HTML that links to the graphs.
.sp
.BR action=selzoom
Generate an HTML page with link to single graph, and with JavaScript code 
that lets the user select part of the graph for a zoom-operation. The 
JavaScript invokes showgraph.cgi with "action=showzoom" to generate the
zoomed graph webpage.
.sp
.BR action=showzoom
Generate HTML with a link to the zoomed graph image. This link goes to
an "action=view" invocation of showgraph.cgi.
.sp
.BR action=view
Generate a single graph image.

.SH OPTIONS
.IP "\-\-config=FILENAME"
Loads the graph configuration file from FILENAME. If not specified,
the file $XYMONHOME/etc/graphs.cfg is used. See the
.I graphs.cfg(5)
for details about this file.

.IP "\-\-env=FILENAME"
Loads the environment settings defined in FILENAME before executing
the CGI.

.IP "\-\-rrddir=DIRECTORY"
The top-level directory for the RRD files. If not specified, the
directory given by the XYMONRRDS environment is used.

.IP "\-\-save=FILENAME"
Instead of returning the image via the CGI interface (i.e. on stdout),
save the generated image to FILENAME.

.IP "\-\-debug"
Enable debugging output.

.SH ENVIRONMENT
.sp
.BR QUERY_STRING
Provided by the webserver CGI interface, this decides what graph
to generate.
.sp
.BR RRDGRAPHOPTS
RRD-specific options for the graph. This is usually set in the
.I xymonserver.cfg(5)
file.

.SH FILES
.sp
.BR graphs.cfg:
The configuration file determining how graphs are generated from
RRD files.

.SH "SEE ALSO"
graphs.cfg(5), xymon(7), rrdtool(1)