FINDHOST.CGI(1)
π¦ FINDHOST.CGI(1) β the findhost.cgi manual, bestie edition π¦
okay so. hi. you're here because you want the tea on findhost.cgi, a Xymon CGI script that goes and finds hosts for you, and honestly? iconic behavior. this is the findhost.cgi(1) page from the General Commands Manual, and we're gonna walk through it together, hand in hand, no host left behind. π«Ά
β¨ NAME β¨
findhost.cgi β Xymon CGI script to find hosts. that's it. that's the job. she finds hosts. π
πΈ SYNOPSIS πΈ
findhost.cgi?host=REGEX
yeah. that's the whole vibe. you hit her with a REGEX and she comes back with hosts. simple. clean. slay.
π DESCRIPTION π
so findhost.cgi doesn't get called directly by you, bestie β she's invoked as a CGI script via the findhost.sh CGI wrapper. think of findhost.sh as her manager. she doesn't take meetings without her. π
when she runs, she gets handed a QUERY_STRING environment variable with the "host=REGEX" parameter in it. that REGEX is a Posix regular expression (go peek at regex(7) if you want the full lore) and it describes the hostnames you're looking for. π΅οΈβοΈ
and here's the cute part: a trailing wildcard is assumed on all hostnames. so like, if you request the hostname "www", she'll match any host whose name begins with "www". she's not being sloppy, she's being β¨generousβ¨.
then she produces a single web page listing every host that matched any of the hostnames, with links to the Xymon webpages where those hosts live. little portal, little door, very main character energy if you ask me. π₯
the output page lists hosts in the order they appear in the hosts.cfg(5) file. so the ordering? not vibes-based. it's file-based. respect the file. π
also!! a sample web page implementing the search facility is included with xymongen, and you access it via the URL /xymon/help/findhost.html. go look, she's cute. π
β¨ OPTIONS β¨
--env=FILENAMEβ loads the environment fromFILENAMEbefore executing the CGI. basically she reads the room (the room isFILENAME) first. π
π FILES π
$XYMONHOME/web/findhost_headerβ the HTML header file for the generated web page. her little crown. π$XYMONHOME/web/findhost_footerβ the HTML footer file for the generated web page. her little shoes. π©°$XYMONHOME/web/findhost_formβ the query form displayed whenfindhost.cgiis called with no parameters. yes, she has a form for when you show up with nothing to say. we've all been there. π
π ENVIRONMENT VARIABLES π
HOSTSCFGβfindhost.cgiuses theHOSTSCFGenvironment variable to find thehosts.cfgfile listing all known hosts and their page locations. that's her map. her little treasure map. πΊοΈXYMONHOMEβ used to locate the template files for the generated web pages. she needs to know where home is, honestly same. π
π SEE ALSO π
go read them. i'll wait. i'm literally always waiting. β³
fr fr, that's the whole page. every flag, every file, every env var, all present and accounted for. no cap. π
and that's a wrap, bestie!! this has been findhost.cgi(1) from Xymon Version 4.3.30: 4 Sep 2019 β she's serving FINDHOST.CGI(1) realness, and honestly? she ate. π
β¨ bye!! π¦πΈ
π¦ 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