fai-monitor(8)

πŸ“¦
version 6.6ubuntu1 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– fai-monitor(8) β€” the fai monitor daemon πŸ’–

okay bestie, sit DOWN, because we're talking about fai-monitor, from the System Manager's Manual section (section 8, admin girlies only πŸ’…). this is the little daemon that sits there and listens to literally every install client you've got, and then spills all the tea to your terminal. it's giving switchboard operator energy. it's giving "i hear everything, i say everything." iconic.


✨ NAME ✨

fai-monitor β€” the fai monitor daemon 🫢


🌸 SYNOPSIS 🌸

fai-monitor

no args, no drama. she just runs. periodt.


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: fai-monitor receives messages from all install clients on port 4711 and prints them to stdout. that's it. that's the whole job. and she ATE. πŸ”₯


πŸ‘‘ OPTIONS πŸ‘‘

every single one, no skips, bestie. let's go.

  • -p port β€” tells her which port to listen on, bestie. default is port 4711. don't change it unless you have a reason, iykyk.
  • -b β€” calls fai-chboot for the install client if the task install was finished properly. default is not to call fai-chboot. so by default, no chboot-ing. noted. πŸ“
  • -i β€” use the IP address of the connecting host when calling fai-chboot. ⚠️ this can only be used if the host has the same IP while installing as when running. no same-IP, no dice.
  • -l FILE β€” the logfile, queen. default is standard out in non-daemon mode, and "/var/log/fai-monitor.log" in daemon mode. she keeps receipts. πŸ’…
  • -t TIMEOUT β€” timeout for bad clients. set it to 0 to disable. bye bad clients ✌️
  • -d β€” daemon mode. she goes in the background and just… exists. main character energy tbh. 🧚
  • -P FILE β€” the PID-file. default is "/var/run/fai-monitor.pid". this is used only if starting in daemon mode. so don't come for her about it in non-daemon mode, she's not listening. πŸ™ˆ
  • -T β€” print timestamps in the log. time-stamped receipts, we love to see it. ⏰
  • -f FORMAT β€” use strftime(FORMAT) for timestamp formatting. so you get to pick your own timestamp lewk. ✨
  • -Z β€” use gmtime/UTC instead of local time. UTC girlies rise UP. 🌈

πŸ’€ NOTES πŸ’€

okay so normally? the output gets piped to fai-monitor-gui, which is a GUI that displays all the information. so it's not just terminal chaos, it's terminal chaos with a face. 😭

also β€” and this is the good part β€” fai-monitor reads variables from /var/log/fai/variables (that's the key=value pair format, bestie), and she replies to requests from clients if they have this format:

VARIABLE <VARNAME>

for e.g. β€” and i literally mean for e.g., this is the actual example β€” if the client sends "VARIABLE FAI_VERSION", fai-monitor will reply with OK and the value of this variable (e.g. "OK 4.5.6") if this variable is defined. otherwise? she replies with UNKNOWN and repeats the VARNAME (e.g. "UNKNOWN FAI_VERSION"). so it's like a vibe check but for variables. πŸ“


🌟 SEE ALSO 🌟

this program is part of FAI (Fully Automatic Installation). πŸŽ€ see the FAI manual for more information on how to use fai-monitor. the FAI homepage is https://fai-project.org. go read it, bestie, it's giving documentation.


🫢 AUTHOR 🫢

Thomas Lange <lange@cs.uni-koeln.de> β€” the legend, the moment, the whole entire author. πŸ’œ


okay that's the whole page!! this beauty shipped as part of FAI 5, back in September 2015, and it's still serving. slay, honestly. go monitor something, bestie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from