nixCraft published a guide explaining the systemctl command.
systemctl list all failed units/services on Linux
Explains how to use the systemctl command to list all failed units or services on Debian, Ubuntu, CentOS, Arch, Fedora, and other Linux distros.
systemctl list all failed units/services on Linux - nixCraft