REPORT.CGI(1)
π REPORT.CGI(1) β the manual, but make it make sense π
okay bestie, gather round, because we're talking about report.cgi, the CGI front-end to xymongen reporting. yes it's a mouthful. yes it's iconic. let's go β¨
β¨ NAME β¨
report.cgi β it's the CGI front-end to xymongen reporting, fr fr. that's the whole vibe. π
π¦ SYNOPSIS π¦
report.cgi [--noclean] [xymongen-options]
that's it. that's the whole invocation. slay.
πΈ DESCRIPTION πΈ
so here's the tea π β report.cgi gets invoked as a CGI script through the report.sh CGI wrapper. it triggers the generation of a Xymon availability report for whatever timeperiod the CGI parameters say. it's giving "main character who builds your reports" energy, honestly.
report.cgi is handed a QUERY_STRING environment variable with these parameters in it:
start-monβ start month of the reportstart-dayβ start day-of-month of the reportstart-yrβ start year of the reportend-monβ end month of the reportend-dayβ end day-of-month of the reportend-yrβ end year of the reportstyleβ report style
and there's one extra non-standard parameter that the xymongen version of report.cgi handles, because it's built different:
suburlβ the page in the report to go to, if it's not the top page
the month parameters MUST be the three-letter english month name abbreviation, okay? like Jan, Feb, Mar ... no full names, no numbers, no cap. π
start- and end-days live in the range 1..31. and the start- and end-years MUST include the century β so like "2003", not "03". don't be shy with those digits, bestie.
end-times that go past the current time? they get silently replaced with the current time. no warning, no drama, just quietly swapped. π
the generated report will include data for the start- and end-days, meaning the report begins at 00:00:00 of the start-day and ends at 23:59:59 of the end-day. full coverage, no crumbs. β
the style parameter gets passed directly to xymongen(1) and should be "crit", "non-crit" or "all".
heads up bestie: any other values result in undefined behaviour. not cute. not iconic. just don't.
all of the processing involved in generating the report is done by invoking xymongen(1) with the proper --reportopts option. that's the whole pipeline, and it ate. π₯
π OPTIONS π
--nocleanβ do NOT clean theXYMONREPDIRdirectory of old reports. it makes the report-tool go a bit faster β¨ instead, you can clean up theXYMONREPDIRdirectory yourself, e.g. via a cron-job. delegating, honestly? very main character of you.--env=FILENAMEβ load the environment fromFILENAMEbefore executing the CGI.xymongen-optionsβ literally every other option passed toreport.cgigets passed straight on to thexymongen(1)program that's building the report files. it's giving relay race. πβοΈπ¨
π FILES π
$XYMONHOME/web/report_headerβ HTML template header for the report request form$XYMONHOME/web/report_footerβ HTML template footer for the report request form$XYMONHOME/web/report_formβ HTML template report request form
three template girlies, all living in $XYMONHOME/web/. π
π ENVIRONMENT VARIABLES π
XYMONGENREPOPTSβxymongenoptions passed by default to thereport.cgi. this happens in thereport.shwrapper, iykyk.XYMONHOMEβ home directory of the Xymon server installationXYMONREPDIRβ directory where generated reports are stored. this directory must be writable by the userid executing the CGI script β typically"www","apache"or"nobody". Default:$XYMONHOME/www/rep/XYMONREPURLβ the URL prefix to use when accessing the reports via a browser. Default:$XYMONWEB/rep
π«Ά SEE ALSO π«Ά
xymongen(1), hosts.cfg(5), xymonserver.cfg(5)
go read those next, bestie, they're the whole friend group. π
and that's the page! this manual is Xymon Version 4.3.30: 4 Sep 2019, so if you're reading this in the future β hey, from the past, hope your reports are thriving. π periodt. π¦β¨
π¦ where this page comes from
- debian bookworm: xymon 4.3.30-1+b2 Β· GPL-2.0-only WITH OpenSSL exception
- debian trixie: xymon 4.3.30-4 Β· GPL-2.0-only WITH OpenSSL exception
- ubuntu jammy: xymon 4.3.30-1build2 Β· GPL-2.0-only WITH OpenSSL exception
- ubuntu jammy: xymon 4.3.30-1ubuntu0.1 Β· GPL-2.0-only WITH OpenSSL exception
- ubuntu noble: xymon 4.3.30-2build3 Β· GPL-2.0-only WITH OpenSSL exception
- ubuntu noble: xymon 4.3.30-2ubuntu0.1 Β· GPL-2.0-only WITH OpenSSL exception
- ubuntu questing: xymon 4.3.30-4
- ubuntu resolute: xymon 4.3.30-5 Β· GPL-2.0-only WITH OpenSSL exception
- ubuntu stonking: xymon 4.3.30-6 Β· GPL-2.0-only WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms