In this article, you will learn about installing, operating and troubleshooting the Heimdal Linux Agent on RHEL endpoints.
| Item | Value |
|---|---|
| Agent version | 1.9.0.0 |
| Dashboard version | 5.8.0 |
| Supported OS | RHEL 8.10+, 9.8+ and 10.2+ (x86_64) |
| Audience | Heimdal Support team (L1 / L2) |
| Ubuntu | Covered only where behaviour differs; Ubuntu procedures are unchanged |
1. What is supported
2. Installing the agent
3. Agent updates
4. Dashboard and Group Policies
5. How RHEL updates are classified
6. Catalog apps and vendor repositories
7. Reporting
8. Troubleshooting
9. Known issues and limitations
WHAT IS SUPPORTED
The Linux agent now runs on RHEL as well as Ubuntu. Both use the same agent build. At startup the agent reads /etc/os-release and, on a RHEL machine, uses the RHEL package manager (dnf) instead of apt. The dashboard shows a RHEL endpoint as a Linux device with device type RHEL.
| Feature | RHEL behaviour |
|---|---|
| Operating systems | RHEL 8.10 or later, 9.8 or later, 10.2 or later. 64-bit Intel/AMD (x86_64) only. These are the first minor versions whose AppStream provides the .NET 10 runtime the agent needs. Older minor versions are not supported — update the machine first (sudo dnf update). |
| OS patching | Security and System (OS) updates, classified from Red Hat's own advisories |
| 3rd-party patching | Infinity Management (catalog) apps: install, update and blacklist-uninstall. Vendor repositories are registered automatically |
| Reporting | Installed apps (inventory), pending updates with CVE / CVSS, changes made outside Heimdal ("externally patched") |
| Agent updates | Automatic, every 3 hours, from the Heimdal rpm repository |
| Group Policies | Linux GPs with distribution RHEL, or the Default GP |
1.1 Requirements on the endpoint
- RHEL 8.10+, 9.8+ or 10.2+ (
cat /etc/redhat-release). - Root (
sudo) access. - The machine is registered with Red Hat (
subscription-manager status), so the BaseOS and AppStream repositories are reachable. The agent needsdotnet-runtime-10.0(.NET 10) from AppStream. EPEL is not needed. - Outbound HTTPS (443) to: the Heimdal services; the Heimdal repository host (
linuxrepo.heimdalsecurity.com); and Azure Blob Storage (heimdalprodstorage.blob.core.windows.net), where the agent files are downloaded from. -
python3-dnfandpython3.python3-dnfis normally always present, and the install script adds it if missing. Theheimdalpackage requirespython3, so dnf installs it (python36on RHEL 8) together with the agent. - A valid Heimdal license key (GUID format).
INSTALLING THE AGENT
On the endpoint, run the following as root, replacing <license-key>:
curl -fsSL https://linuxrepo.heimdalsecurity.com/install-heimdal-rhel.sh | sudo bash -s <license-key>
The script:
- Installs
ca-certificates, pluspython3-dnfif it is missing. - Imports the Heimdal signing key and adds the Heimdal repository (
/etc/yum.repos.d/heimdal.repo, section[heimdal-agent]). - Runs
dnf install -y heimdal. The package downloads the agent files, activates the license and starts theheimdal-clienthostservice.
If the license key is missing or badly formatted, the script stops before installing anything.
2.1 Verify the installation
rpm -q heimdal # installed version systemctl status heimdal-clienthost # must be active (running) journalctl -u heimdal-clienthost -n 50 # startup messages
Within a few minutes the endpoint appears in Active Clients with the RHEL icon and its OS version (for example RHEL 9.8).
2.2 What gets installed
| Path | Purpose |
|---|---|
/usr/sbin/heimdal/ |
Agent files, license, local state, logs (HeimdalLogs/) |
/etc/systemd/system/heimdal-clienthost.service |
Agent service |
/etc/yum.repos.d/heimdal.repo |
Heimdal repository + repositories added for catalog apps |
/etc/pki/rpm-gpg/RPM-GPG-KEY-heimdal-agent |
Heimdal repository signing key |
/etc/cron.d/heimdal-update |
Self-update job (every 3 hours) |
/usr/bin/installHeimdal.sh, /usr/bin/heimdal-self-update.sh
|
Installer and self-update scripts |
/var/log/heimdal-update.txt |
Self-update log |
2.3 Uninstall
sudo dnf remove heimdal
This stops and removes the service, and deletes: /usr/sbin/heimdal/ (including local state and logs); heimdal.repo; the Heimdal key; and the cron job.
Apps installed through the catalog stay installed. The repositories the agent added for them are removed, because they are in heimdal.repo.
Note: uninstalling deletes the local state, so a reinstall needs the license key again. If an investigation is open, collect the logs before uninstalling.
AGENT UPDATES
The cron job /etc/cron.d/heimdal-update runs every 3 hours as root. It downloads the latest self-update script from the Heimdal repository host and runs dnf upgrade heimdal, using the Heimdal repository only. The agent service is stopped before the upgrade and started again afterwards. If the service cannot be stopped, the old version stays and the next run retries.
cat /var/log/heimdal-update.txt # last self-update run rpm -q heimdal # current version sudo dnf upgrade heimdal # force an upgrade now
DASHBOARD AND GROUP POLICIES
4.1 How a RHEL endpoint gets its Group Policy
The backend picks the GP; the agent has no GP logic of its own. A RHEL endpoint receives only Linux GPs whose distribution is RHEL or Default. After that, the usual rules apply: AD group, local group, external IP and priority.
| GP | Distribution | Priority | Applies to |
|---|---|---|---|
| Default | Default | 1 | Ubuntu and RHEL |
| Custom | Ubuntu | 2 | Ubuntu only |
| Custom RHEL | RHEL | 3 | RHEL only |
GP filters (Active Clients, Linux OS Updates, Linux Vulnerabilities) have a separate RHEL group. The Default GP is listed under both Ubuntu and RHEL.
4.2 Catalog (Infinity Management) apps
Linux catalog apps have a Distribution (Ubuntu or RHEL), and RHEL endpoints receive only RHEL apps. Each repository of an app is marked Default, RHEL 8, RHEL 9 or RHEL 10. An endpoint uses the Default repositories plus those marked for its own RHEL version.
HOW RHEL UPDATES ARE CLASSIFIED
RHEL has no separate security repository like Ubuntu's -security. BaseOS and AppStream carry routine and security updates side by side. An update is a security fix when a Red Hat Security Advisory (RHSA) is attached to that exact version. The agent checks these rules in order and the first match wins:
| # | Condition | Category in the dashboard |
|---|---|---|
| 1 | Package not from any repository (local .rpm file) |
3rd party (unknown source) |
| 2 | Update has an RHSA security advisory, from any Red Hat repository | OS → Security |
| 3 | Update comes from BaseOS (no RHSA) | OS → System |
| 4 | Anything else: AppStream non-security, CRB, EPEL, vendor repositories | 3rd party |
| Example | Repository | Advisory | Result |
|---|---|---|---|
| kernel | BaseOS | none | OS → System |
| openssl | BaseOS | RHSA | OS → Security |
| dotnet-runtime-10.0 | AppStream | RHSA | OS → Security |
| dotnet-runtime-10.0 | AppStream | none / bugfix | 3rd party |
| docker-ce | vendor repository | — | 3rd party |
Customers often ask about the following:
- AppStream apps (git, podman, dotnet…) show as 3rd party in inventory and for their non-security updates. Their security updates still arrive through OS → Security.
- Security fixes always go through OS → Security, even for packages that belong to catalog apps.
- OS → System never updates catalog apps that are checked for Install / Update. Their non-security updates come only from the GP.
- Updates never downgrade a package. 3rd-party upgrades go to the newest available version.
- If one package cannot be installed (missing dependency or conflict), the agent skips it and reports it on its own. The rest of the batch continues.
CATALOG APPS AND VENDOR REPOSITORIES
When a GP sets Install for a catalog app that is not on the machine, the agent prepares the app's repository first:
- Imports the vendor's GPG key.
- Checks the repository URL. Allowed schemes are
http,https,ftpandfile;$releaseverand$basearchare allowed. - If an enabled repository on the machine already serves the same address, reuses it.
- Otherwise, reads the repository once as a test. If
dnfcannot read it, nothing is registered. - Adds the repository as a section of
/etc/yum.repos.d/heimdal.repoand installs the app.
Rules worth knowing:
- The agent only ever edits
heimdal.repo. It never changes repository files created by the customer or by vendor packages. - If an administrator disabled a Heimdal section in
heimdal.repo, the section stays disabled and that app is not installed. -
Red Hat CDN (
cdn.redhat.com) repositories work on machines registered with Red Hat; the agent uses the machine's subscription certificate. - If a catalog app lists no repository, the agent installs it from the repositories already configured on the machine (for example AppStream), as long as
dnfcan find the package. - An app that is already installed is upgraded through its existing repository.
| Question | Command |
|---|---|
| Which repositories did the agent add? | cat /etc/yum.repos.d/heimdal.repo |
| Is a repository enabled? | dnf repolist --all |
| Where did an installed package come from? |
dnf info --installed <package> ("From repo") |
| Is the machine registered with Red Hat? | subscription-manager status |
REPORTING
- Inventory (Assets): packages installed on purpose, with their category. Dependencies are excluded.
- Pending updates: grouped by category, with advisory ID, severity and CVEs.
-
Externally patched: packages changed outside Heimdal (by an administrator running
dnf, or bydnf-automatic) are reported as externally patched. The first check after installation only records a baseline, so changes made before the agent was installed are not reported.
Tip: if updates disappear from Pending without Heimdal installing them, check whether RHEL's own automatic updates are enabled: systemctl list-timers 'dnf-automatic*'.
TROUBLESHOOTING
8.1 First checks
systemctl status heimdal-clienthost journalctl -u heimdal-clienthost --since '-1h' ls /usr/sbin/heimdal/HeimdalLogs/Heimdal.ClientHost/ # one log file per day: dd.MM.yyyy.log grep -h '"Level": "Error"' /usr/sbin/heimdal/HeimdalLogs/Heimdal.ClientHost/*.log | tail -20 sudo dnf check-update # dnf works and repos are reachable
8.2 Log files
| What | Where |
|---|---|
| Agent log (JSON, one line per message) | /usr/sbin/heimdal/HeimdalLogs/Heimdal.ClientHost/dd.MM.yyyy.log |
| Service output, crashes at startup | journalctl -u heimdal-clienthost |
| Agent self-update | /var/log/heimdal-update.txt |
| dnf transaction history (who/what/when, source repo) |
sudo dnf history list, sudo dnf history info <id>
|
| Per-package rpm changes | /var/log/dnf.rpm.log |
| dnf errors / downloads |
/var/log/dnf.log, /var/log/dnf.librepo.log
|
| RHEL automatic updates | journalctl -u dnf-automatic-install |
Useful log filters:
| Tag | Area |
|---|---|
[Patching][OS] |
OS patching |
[Patching][Install], [Patching][Upgrade], [Patching][Uninstall]
|
Catalog apps |
[Inventory] |
Inventory |
In dnf history list, an empty Command line means the change was made through dnf's API, usually by the Heimdal agent. Match its time against the agent log.
8.3 Common problems
| Symptom | Likely cause | What to do |
|---|---|---|
| Endpoint never appears in the dashboard | Service not running, license not activated, or no network access to Heimdal | Check the service and journalctl. Confirm port 443 access. Reinstall with the correct license key |
| RHEL 8: no patching or inventory data |
python3 switched to another version with alternatives
|
sudo alternatives --set python3 /usr/bin/python3.6, then sudo systemctl restart heimdal-clienthost
|
dnf install heimdal fails on dotnet-runtime-10.0
|
RHEL minor version too old (below 8.10 / 9.8 / 10.2), or the machine is not registered with Red Hat and AppStream is unreachable | Run cat /etc/redhat-release and update the OS if it is too old. Run subscription-manager status and register the machine if needed. Then rerun the install |
| Catalog app reported as not installed | Vendor repository unreachable, GPG key download failed, or no build for this RHEL version | Search the agent log for the app name. Check the catalog's repository URL for this RHEL version |
| App with a SHA-1 vendor key fails on RHEL 9/10 (e.g. Sublime Text, Plex) | RHEL crypto policy rejects SHA-1 keys | Expected behaviour; the agent cannot fix this |
| KDE / multimedia apps fail on dependencies | Their EPEL packages need the CRB repository | Enable CRB on the machine (customer decision) |
| Updates reported as "patched externally" | Someone (or dnf-automatic) updated packages outside Heimdal |
Expected behaviour. Confirm with sudo dnf history list
|
| Agent version does not update | Self-update cannot reach the repository host | Read /var/log/heimdal-update.txt, then run sudo dnf upgrade heimdal manually |
| "Repository unavailable" errors on every patching run | A repository configured on the machine is unreachable |
sudo dnf check-update shows which one. Fix or disable that repository |
8.4 What to collect before escalating
Run the following as root. Attach /tmp/dnf-support.tgz to the ticket, together with: the endpoint name and the customer; the GP the endpoint should have; the affected package or app; and the time the problem was seen.
sudo sh -c 'dnf history list > /tmp/dnf-history-list.txt; for id in $(dnf history list | awk -F"|" "NR>2 {print \$1}"); do dnf history info "$id"; done > /tmp/dnf-history-info.txt; tar czf /tmp/dnf-support.tgz /var/log/dnf*.log* /var/lib/dnf/history.sqlite /tmp/dnf-history-*.txt /usr/sbin/heimdal/HeimdalLogs /var/log/heimdal-*'Also include the output of:
cat /etc/os-releaserpm -q heimdalsubscription-manager statuscat /etc/yum.repos.d/heimdal.repo
KNOWN ISSUES AND LIMITATIONS
| Issue | Impact / workaround |
|---|---|
RHEL 8: python3 required by the agent package |
The heimdal package requires python3 (python36 on RHEL 8), so dnf installs it with the agent. Side effect: dnf remove python36 (or python3) also uninstalls the agent. Also, if python3 is switched to another Python version with alternatives, the agent cannot read package data |
| Catalog packages matched by exact name | On RHEL 8 some apps are packaged under another name (python3 → python36, inkscape → inkscape1), so they are reported as failed |
| Custom-expression tags match broadly | A tag like python3 also matches OS packages and pulls them into catalog upgrades (same as Ubuntu) |
| An "externally patched" report clears CVE data | The stored CVE/CVSS values of that package are overwritten with empty values |
| Apps without a build for the RHEL version | Some catalog apps do not exist for a given RHEL major version (e.g. Krita and syncthing on RHEL 9; several on RHEL 10) |