REPORTLOG.CGI(1)
π REPORTLOG.CGI β the reportlog.cgi manual, bestie edition π
okay so real talk, this is the reportlog.cgi page from the General Commands Manual section, and it's about a CGI program that reports on your service availability log. she's niche, she's useful, she's lowkey carrying your SLA reporting. let's get into it π«Ά
β¨ NAME β¨
reportlog.cgi β a CGI program that reports the service availability log. that's it, that's the girl π
πΈ SYNOPSIS πΈ
reportlog.cgi
no args, no flags at the command line, she just is. the real tea is all in the environment, iykyk β¨
π¦ DESCRIPTION π¦
so reportlog.cgi gets invoked as a CGI script through the reportlog.sh CGI wrapper. not you calling her directly, bestie β she comes through the wrapper, main character entrance and all. π
based on the parameters she receives, she generates an availability report for one specific host-service combo, for whatever time period you asked for. and this report is not playing around, it includes:
- a calculation of the availability percentage, split out into percent green time, yellow time, and red time π¦
- an eventlog for the period, listing all the status changes that happened β so you can drill down into the actual test reports that show where a problem was π
and if you want to get at the individual historical status logs themselves, you go through the svcstatus.cgi(1) CGI script. different girl, different job, she's linked below π
reportlog.cgi gets handed a QUERY_STRING environment variable, and inside it are these parameters:
HOSTSVCβ the host and service to report onSTYLEβ the report style, and it can be"crit","non-crit", or"all"STβ the starttime, in seconds since1-1-1970 00:00 UTCENDβ the endtime, in seconds since1-1-1970 00:00 UTC
and then there's a whole other lil squad of non-standard parameters that the Xymon version of history.cgi handles. yes, history.cgi, not reportlog.cgi β that's what the page says, don't come for me π:
IPβ the IP address of the host, and this one is for display purposes only (she's decorative, not functional, respect her craft π )REPORTTIMEβ theREPORTTIME:setting for this hostWARNPCTβ theWARNPCT:setting for this host
so the REPORTTIME and WARNPCT options get pulled from the hosts.cfg(5) definition for the host β or, if there's nothing there, the defaults get used instead. no drama either way. β¨
and why do these two matter so much? because they modify the availability calculation so it can report against agreed Service Level Agreements β specifically re. the time of day when the service must be available, and the agreed availability level. so basically she's doing SLA math for you and you don't even have to cry about it ππ
π OPTIONS π
--env=FILENAMEβ loads the environment fromFILENAMEbefore executing the CGI. cute lil pre-game ritual, she needs her environment set before she goes on stage π«Ά
π SEE ALSO π
the whole friend group, honestly. go read them, they're all giving β
and that's the page bestie!! π this one's from Xymon, version 4.3.30, dated 4 Sep 2019 β so yeah she's a lil vintage but she still ate, no cap. go forth and report your availability, 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