XYMON-XMH(5)

okay so bestie β€” welcome to Xymon-XMH-variables, straight outta the File Formats Manual. this is your group chat with the xymond daemon, fr fr. πŸ’–


🌸 NAME 🌸

Xymon-XMH-variables β€” configuration items available online. that's the whole vibe. πŸ‘‘


✨ DESCRIPTION ✨

okay so first thing: the hosts.cfg(5) file is THE most important config file for literally every single Xymon program. no cap. it holds the full list of all the systems Xymon monitors, plus the set of tests and other config items stored for each host. it's the main character of config files, periodt. πŸ’…

so the file is plain text, which is great, and you can search it with stuff like xymongrep(1) β€” but ngl, picking specific fields out of it is kind of a nightmare because of quoting and other text-parsing drama. 😭 so Xymon lets you ask for this info directly from the xymond daemon using the "xymondboard" command. that way the info can come back together with the current status of a host and/or test. and how do you do that? you add a "fields" definition to the "xymondboard" command. iconic. ✨


πŸŽ€ XMH items πŸŽ€

except where it says otherwise below, every item returns the text of a particular setting from the hosts.cfg file β€” or an empty string if that setting hasn't been set for the host you're querying. no setting, no tea, empty string, moving on. 🫢

  • XMH_ALLPAGEPATHS β€” list of all the pages where the host is found, using the filename hierarchy page path. πŸ¦‹
  • XMH_BROWSER β€” value of the "browser" tag.
  • XMH_CLASS β€” the host class (if a Xymon client reported it), or the value of the CLASS tag.
  • XMH_CLIENTALIAS β€” value of the CLIENT tag.
  • XMH_COMMENT β€” value of the COMMENT tag.
  • XMH_COMPACT β€” value of the COMPACT tag.
  • XMH_DEPENDS β€” value of the DEPENDS tag.
  • XMH_DESCRIPTION β€” value of the DESCR tag.
  • XMH_DGNAME β€” the text string from the hosts.cfg "group" definition (that's group, group-only, group-except) where the host is defined. πŸ“‚
  • XMH_DISPLAYNAME β€” value of the NAME tag.
  • XMH_DOCURL β€” value of the DOC tag.
  • XMH_DOWNTIME β€” value of the DOWNTIME tag.
  • XMH_PULLDATA β€” value of the PULLDATA tag (including IP:PORT, if there is any). πŸ“
  • XMH_FLAG_DIALUP β€” value of the "dialup" tag.
  • XMH_FLAG_HIDEHTTP β€” value of the HIDEHTTP tag.
  • XMH_FLAG_LDAPFAILYELLOW β€” value of the "ldapyellowfail" tag.
  • XMH_FLAG_MULTIHOMED β€” value of the MULTIHOMED tag.
  • XMH_FLAG_NOBB2 β€” value of the "nobb2" tag. > ⚠️ deprecated bestie β€” use NONONGREEN instead.
  • XMH_FLAG_NOCLEAR β€” value of the NOCLEAR tag.
  • XMH_FLAG_NOCLIENT β€” value of the "noclient" tag.
  • XMH_FLAG_NOCONN β€” value of the "noconn" tag.
  • XMH_FLAG_NODISP β€” value of the "nodisp" tag.
  • XMH_FLAG_NOINFO β€” value of the "noinfo" tag.
  • XMH_FLAG_NONONGREEN β€” value of the "nonongreen" tag.
  • XMH_FLAG_NOPING β€” value of the "noping" tag.
  • XMH_FLAG_NOSSLCERT β€” value of the "nosslcert" tag.
  • XMH_FLAG_NOTRACE β€” value of the "notrace" tag.
  • XMH_FLAG_NOTRENDS β€” value of the "notrends" tag.
  • XMH_FLAG_PREFER β€” value of the "prefer" tag.
  • XMH_FLAG_TESTIP β€” value of the "testip" tag.
  • XMH_FLAG_TRACE β€” value of the "trace" tag.
  • XMH_GROUPID β€” the number of the group where the host is listed β€” first group is 0. and if a host shows up on multiple pages, this is the number of the group for the first page where the host is found. πŸ”’
  • XMH_HOLIDAYS β€” value of the "holidays" tag.
  • XMH_HOSTNAME β€” the name of the host. yes, the whole point. πŸ’€
  • XMH_HTTPHEADERS β€” value of the "httphdr" tag.
  • XMH_IP β€” the IP-address of the host (as specified in hosts.cfg).
  • XMH_LDAPLOGIN β€” value of the "ldaplogin" tag.
  • XMH_NET β€” value of the NET tag.
  • XMH_NK β€” value of the NK tag. > ⚠️ deprecated, just so you know.
  • XMH_NKTIME β€” value of the NKTIME tag. > ⚠️ also deprecated. both of these are giving "old era" ngl.
  • XMH_NOCOLUMNS β€” value of the NOCOLUMNS tag.
  • XMH_NOPROP β€” value of the NOPROP tag.
  • XMH_NOPROPACK β€” value of the NOPROPACK tag.
  • XMH_NOPROPPURPLE β€” value of the NOPROPPURPLE tag.
  • XMH_NOPROPRED β€” value of the NOPROPRED tag.
  • XMH_NOPROPYELLOW β€” value of the NOPROPYELLOW tag.
  • XMH_NOTAFTER β€” value of the NOTAFTER tag.
  • XMH_NOTBEFORE β€” value of the NOTBEFORE tag.
  • XMH_OS β€” the host operating system (if a Xymon client reported it), or the value of the OS tag. 🌈
  • XMH_PAGEINDEX β€” the index of the host on the page where it's shown β€” the first host has index 0. πŸ”’
  • XMH_PAGENAME β€” name of the page where the host is shown (peep XMH_PAGEPATH too, they're a duo). 🫢
  • XMH_PAGEPATH β€” file path to the page where the host is shown.
  • XMH_PAGEPATHTITLE β€” title of the full path to the page where the host is shown.
  • XMH_PAGETITLE β€” title of the page where the host is shown.
  • XMH_RAW β€” literally all the configuration settings for the host. settings are separated by a pipe-sign (|). πŸ”₯
  • XMH_REPORTTIME β€” value of the REPORTTIME tag.
  • XMH_SSLDAYS β€” value of the "ssldays" tag.
  • XMH_SSLMINBITS β€” value of the "sslbits" tag.
  • XMH_TRENDS β€” value of the TRENDS tag.
  • XMH_WARNPCT β€” value of the WARNPCT tag.
  • XMH_WARNSTOPS β€” value of the WARNSTOPS tag.
  • XMH_WML β€” value of the WML tag.

🌈 SEE ALSO 🌈


and that's the whole page bestie, you ate it. πŸ’… this whole thing ships under the Xymon name, Version 4.3.30, dated 4 Sep 2019 β€” and the manual itself is XYMON-XMH(5). go forth and query your hosts, mwah. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from