SHOWGRAPH.CGI

Section: User Commands (1)
Updated: Version 4.3.30: 4 Sep 2019
Index Return to Main Contents

 

showgraph.cgi - CGI to generate Xymon trend graphs

 

showgraph [options]

 

showgraph.cgi 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:

Name of the host to generate a graph for
Name of the service to generate a graph for
Display-name of the host, used on the generated graphs instead of hostname.
Can be "hourly", "daily", "weekly" or "monthly" to select the time period that the graph covers.
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".
Number of graphs in a multi-graph.
Set the upper limit of the graph. See rrdgraph(1) for a description of the "-u" option.
Set the lower limit of the graph. See rrdgraph(1) for a description of the "-l" option.
Set the starttime of the graph. This is used in zoom-mode.
Set the end-time of the graph. This is used in zoom-mode.
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.
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.
Generate HTML with a link to the zoomed graph image. This link goes to an "action=view" invocation of showgraph.cgi.
Generate a single graph image.

 

Loads the graph configuration file from FILENAME. If not specified, the file $XYMONHOME/etc/graphs.cfg is used. See the graphs.cfg(5) for details about this file.

Loads the environment settings defined in FILENAME before executing the CGI.

The top-level directory for the RRD files. If not specified, the directory given by the XYMONRRDS environment is used.

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

Enable debugging output.

 

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

 

The configuration file determining how graphs are generated from RRD files.

 

graphs.cfg(5), xymon(7), rrdtool(1)

 

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
ENVIRONMENT
FILES
SEE ALSO

This document was created by mandoc, using the manual pages.