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
|
.TH FINDHOST.CGI 1 "Version 4.3.30: 4 Sep 2019" "Xymon"
.SH NAME
findhost.cgi \- Xymon CGI script to find hosts
.SH SYNOPSIS
.B "findhost.cgi?host=REGEX"
.SH DESCRIPTION
\fBfindhost.cgi\fR
is invoked as a CGI script via the findhost.sh CGI wrapper.
findhost.cgi is passed a QUERY_STRING environment variable with the
"host=REGEX" parameter. The REGEX is a Posix regular expression (see
.I regex(7)
) describing the hostnames to look for. A trailing wildcard is assumed on all
hostnames - e.g. requesting the hostname "www" will match any host whose
name begins with "www".
It then produces a single web page, listing all of the hosts that
matched any of the hostnames, with links to the Xymon webpages
where they are located.
The output page lists hosts in the order they appear in the
.I hosts.cfg(5)
file.
A sample web page implementing the search facility is included
with xymongen, you access it via the URL /xymon/help/findhost.html.
.SH OPTIONS
.IP "--env=FILENAME
Loads the environment from FILENAME before executing the CGI.
.SH FILES
.IP "$XYMONHOME/web/findhost_header"
HTML header file for the generated web page
.IP "$XYMONHOME/web/findhost_footer"
HTML footer file for the generated web page
.IP "$XYMONHOME/web/findhost_form"
Query form displayed when findhost.cgi is called with no parameters.
.SH "ENVIRONMENT VARIABLES"
.IP HOSTSCFG
findhost.cgi uses the HOSTSCFG environment variable to find the
hosts.cfg file listing all known hosts and their page locations.
.IP XYMONHOME
Used to locate the template files for the generated web pages.
.SH "SEE ALSO"
xymongen(1), hosts.cfg(5), xymonserver.cfg(5)
|