DATEPAGE.CGI(1)
π DATEPAGE.CGI β the manual, but make it cute π
okay bestie, sit down, grab a strawberry π, because we're talking about datepage.cgi β a Xymon CGI script that lets you peek at pre-built reports by date. it's giving time-travel but make it web form β¨
πΈ NAME πΈ
datepage.cgi β Xymon CGI script to view pre-built reports by date ποΈπ
β¨ SYNOPSIS β¨
datepage.cgi?type={day,week,month} --url=URLPREFIX [options]
that's it, that's the whole vibe. literally.
π¦ DESCRIPTION π¦
so. datepage.cgi gets invoked as a CGI script through the datepage.sh CGI wrapper. that's the pipeline, no cap π«Ά
it gets handed a QUERY_STRING environment variable telling it which flavor of time-selection you want: "day", "week" or "month" β pick your fighter. then it builds a whole web form with the appropriate day/week/month selection boxes (so fancy), and based on whatever the user picks, it constructs a resulting url out of the URLPREFIX plus the time selection. then? it redirects the browser to that URL. main character exit, honestly π
here's exactly how the URL gets assembled β from the URLPREFIX, the type-parameter, the value of the "pagepath" or "host" cookie, and the user's selection:
type=dayβ the final URL isURLPREFIX/daily/YEAR/MONTH/DAY/PAGEPATH.type=weekβ the final URL isURLPREFIX/weekly/YEAR/WEEK/PAGEPATH.type=monthβ the final URL isURLPREFIX/monthly/YEAR/MONTH/PAGEPATH.
now let's decode those placeholders, because they matter fr fr:
YEARis the full year (4 digits, including century) ποΈMONTHis the two-digit number of the month (01..12)DAYis the number of the day in the month (01..31)WEEKis the ISO 8601:1988 week-number (01..53) πPAGEPATHis the current value of the"pagepath"cookie if it's set; but if it's not set and the"host"cookie is set, then this host gets looked up in thehosts.cfgfile and the page where this host is found becomes thePAGEPATH.
and where do those two cookies come from, you ask? they're set by the default web-header templates that ship with Xymon. cute, right? π
π OPTIONS π
--url=URLPREFIXβ specifies the initial part of the final URL. this one is required, bestie, no skipping it π¨--hffile=FILENAMEβ specifies the template files (from$XYMONHOME/web/) to use. the default is"--hffile=report".--color=COLORβ sets the background color of the generated webpage. the default isblue. π--env=FILENAMEβ loads the environment defined in FILENAME before executing the CGI script.--debugβ enables debugging output. πβ¨
and also these template files, which are listed right here in the OPTIONS section, so here they stay:
$XYMONHOME/web/report_form_dailyβ HTML form template for the date selection form whentype=daily.$XYMONHOME/web/report_form_weeklyβ HTML form template for the date selection form whentype=weekly.$XYMONHOME/web/report_form_monthlyβ HTML form template for the date selection form whentype=monthly.$XYMONHOME/web/report_headerβ HTML header file for the generated web page.$XYMONHOME/web/report_footerβ HTML footer file for the generated web page.
π ENVIRONMENT VARIABLES π
XYMONHOMEβ used to locate the template files for the generated web pages.QUERY_STRINGβ contains the parameters for the CGI script.
π SEE ALSO π
xymongen(1), hosts.cfg(5), xymonserver.cfg(5)
go read those next, bestie, iykyk π
and that's the whole page!! Xymon, Version 4.3.30, 4 Sep 2019 β mwah, love that for us πβ¨ππ¦πΈπ π«Ά
π¦ 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