ipa-healthcheck(8)

πŸ“¦
version 0.19 Β· 2 versions
, in centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ ipa-healthcheck(8) ✨

okay bestie, gather round, because we're about to talk about ipa-healthcheck β€” the FreeIPA manual page that's literally your system's vibe check πŸ’…


πŸŽ€ NAME πŸŽ€

ipa-healthcheck β€” check on the health of an IPA installation 🩺✨


🌸 SYNOPSIS 🌸

ipa-healthcheck [OPTION]...

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, an IPA installation is a complex system, no cap. Spotting real or potential issues can be genuinely hard and takes a whole lot of analysis. This tool is here to reduce that burden, and it tries to identify issues in advance so they can be corrected β€” ideally before the issue becomes critical. main character energy, honestly. πŸ‘‘

Not me reminding you: this tool must be run as root in order to access all components of a system. πŸ”

πŸ’œ ORGANIZATION πŸ’œ

These areas of the system that get checked can be logically grouped together, and that grouping is called a source. A source consists of one or more checks.

A check is as atomic as possible β€” to limit the scope and complexity, and to give you a yes/no answer on whether that particular configuration is correct.

Every check returns a result, and that result is one of WARNING, ERROR, CRITICAL or SUCCESS. Getting SUCCESS tells you the check actually ran and was deemed correct β€” which is lowkey useful for tracking the last time something was examined. πŸ•΅οΈ

When something fails, the output includes the source and the check that detected the failure, along with a message and name/value pairs indicating the problem. And ngl, sometimes a check just can't make a final determination β€” in that case it generally defaults to WARNING if it can't be sure, so that it can be examined. πŸ™ˆ


🌈 IMPLEMENTATION DETAILS 🌈

There is no need for users to authenticate and get a ticket in advance for ipa-healthcheck to work. Existing tickets will not be used, because ipa-healthcheck leverages the host keytab and uses a temporary credential cache. iconic behaviour, fr fr ✨


πŸ’… OPTIONS πŸ’…

⭐ COMMANDS ⭐

  • --list-sources β€” Display a list of the available sources and the checks associated with those sources. your little map of everything, obsessed πŸ—ΊοΈ

πŸŽ€ OPTIONAL ARGUMENTS πŸŽ€

  • --config=FILE β€” The configuration file to use. If an empty string is passed in then no configuration file is loaded. The default is /etc/ipahealthcheck/ipahealthcheck.conf.
  • --source=SOURCE β€” Execute checks within the named source, or all sources in the given namespace.
  • --check=CHECK β€” Execute this particular check within a source. The exact source must also be specified via --source. (they're a package deal, bestie 🫢)
  • --output-type=TYPE β€” Set the output type. Supported variants are human, json, and prometheus. The default is json.
  • --failures-only β€” Exclude SUCCESS results on output. If stdin is a tty then this will default to True. In all other cases it defaults to False.
  • --all β€” Report all results.
  • --severity=SEVERITY β€” Only report errors in the requested severity of SUCCESS, WARNING, ERROR or CRITICAL. This can be provided multiple times to search on multiple levels. stacking severities? slay 🧚
  • --verbose β€” Generate verbose output.
  • --debug β€” Generate additional debugging output.

πŸ“ JSON OUTPUT πŸ“

The results are displayed as a list of result messages for each check executed, in JSON format. This could be input for a monitoring system. very plug-and-play of it πŸ’–

  • --output-file=FILENAME β€” Write the output to this filename rather than stdout.
  • --input-file=FILENAME β€” Read the results of a previous run and re-display them.
  • --indent=INDENT β€” Pretty-print the JSON with this indention level. This can make the output more human-readable.

🌸 HUMAN-READABLE OUTPUT 🌸

The results are displayed in a more human-readable format. for when you want your eyes to actually enjoy the experience 😭

  • --input-file=FILENAME β€” Take as input a JSON results output and convert it to a more human-readable form.

πŸ”₯ PROMETHEUS OUTPUT πŸ”₯

The results are displayed in the Prometheus text metric exposition format. metrics girlies rise πŸ‘‘

  • --input-file=FILENAME β€” Uses the JSON-formatted results output as metrics source.
  • --metric-prefix=PREFIX β€” Prefix to use for metric names.

πŸŽ€ EXAMPLES πŸŽ€

Execute healthcheck with the default JSON output:

# ipa-healthcheck

Execute healthcheck with a prettier JSON output:

# ipa-healthcheck --indent 2

Execute healthcheck and only display errors:

# ipa-healthcheck --failures-only

Display in human-readable output a previous report:

# ipa-healthcheck --output-type human --input-file \
        /var/log/ipa/healthcheck/healthcheck.log

πŸ“ FILES πŸ“

  • /etc/ipahealthcheck/ipahealthcheck.conf

🚦 EXIT STATUS 🚦

  • 0 if all checks were successful βœ…
  • 1 if any one check failed or the command failed to execute properly πŸ’€

🌐 INTERNET RESOURCES 🌐


πŸ“š OTHER RESOURCES πŸ“š

The ipa-healthcheck distribution includes a documentation file named README.md which contains detailed explanations on executed checks. go read it, it's giving study buddy πŸ“–βœ¨


and that's the whole page, bestie!! 🫢 this little love letter to your system comes from the FreeIPA manual pages, dated Jan 16 2020 β€” so like, it's been serving looks since then. now go run your health checks and stay iconic πŸ’–πŸŒΈβœ¨