XYMONCFG(1)

πŸ’– XYMONCFG πŸ’–

okay so bestie, welcome to the xymoncfg page from the General Commands Manual β€” yes it's section 1, yes it's a command, yes it's lowkey iconic πŸŽ€


✨ NAME ✨

xymoncfg β€” output the full hosts.cfg file πŸ¦‹


🌸 SYNOPSIS 🌸

xymoncfg [--web] [--net] [filename]

πŸ’… DESCRIPTION πŸ’…

so xymoncfg(1) dumps the full hosts.cfg file straight to stdout. no cap. it follows the include tags inside your hosts.cfg files and prints out the whole entire contents exactly as seen by the xymongen(1) and xymonnet(1) utilities πŸ‘‘

basically it's giving "here's the receipts, all of them, nothing hidden" ✨

if you don't hand it a filename, xymoncfg just shows you the file that the HOSTSCFG environment variable is pointing at. simple as that 🫢


πŸŽ€ OPTIONS πŸŽ€

  • --web β€” shows the hosts.cfg file following include statements the way a Xymon web-server would do it 🌈
  • --net β€” shows the hosts.cfg file following include statements the way it gets done when you run xymonnet πŸ’œ
  • -s β€” outputs only the lines that look like environment variable definitions, in a format that's suitable for Bourne-style shells (think bash, ksh). you'll probably not use this with the default hosts.cfg input file, but like, e.g. xymonserver.cfg is the vibe. and to define all the variables in xymonserver.cfg inside your shell script, you can use:
eval `xymoncfg -s /etc/xymon/xymonserver.cfg`
  • -c β€” similar to -s, but for C-shell. same energy, different shell πŸ’€

🧚 ENVIRONMENT VARIABLES 🧚

  • HOSTSCFG β€” filename for the hosts.cfg(5) file. it's the fallback bestie when you don't pass a filename 🌸

πŸ‘‘ SEE ALSO πŸ‘‘

hosts.cfg(5), xymonserver.cfg(5)


and that's the whole thing, periodt πŸ’– this lil gem is brought to you by Xymon, Version 4.3.30, dated 4 Sep 2019 β€” mwah, go read your config files bestie, ily 🫢✨

πŸ“¦ where this page comes from