Health is a command-line system status check tool written in bash 3.2+
. Designed for Red Hat Enterprise Linux (RHEL) environments, Health provides an easy way to display general system statistics, scrutinize file systems for common errors, and check for a variety of other typical system issues.
- NOTE: RHEL 6 ELS (Extended Life-cycle Support) ended 30JUNE2024. Most of
health
should continue to work, however, I will not make updates specifically maintain support for RHEL 6.
- Refactored
whotf
function. Function no longer attempts to parse "full name" field frompasswd
.- In practice, this field isn't always populated and resulted in inconsistent output; the
-w
option remains available to quickly display completepasswd
entry of a given user. whotf
won't echo anything if there are no login sessions (i.e. VSCode logins only, etc.)
- In practice, this field isn't always populated and resulted in inconsistent output; the
If you're using RHEL 7 or later and encounter issues or have suggestions for routine error checks, please feel free to reach out!
- To run this check once daily during the first login, you can add the following line to your
.bashrc
:[[ $(last "$USER" | awk 'NR==2{print$6}') != $(date +%-d) ]] && health