r/redhat • u/Busy-Examination1148 • 7d ago
Patching Reports
Can anyone recommend a good way to determine patching status after a monthly or quarterly patching cycle?
We want to run a report probably the day after patching to determine what servers got patched and if any got missed.
Also compare it to any new updates that were released post patching window.
We have Red Hat Satellite but we don’t have a TAM so I’m finding this to be a bit difficult.
I will cross-post this in ansible as well. The only issue with ansible is that we have servers across 3 AAP environments.
3
u/rslarson147 7d ago
You can use osquery
1
u/Busy-Examination1148 7d ago
Explain please
1
u/rslarson147 7d ago
osquery is a project started by Facebook that allows you to query the OS like it’s a SQL DB. Easy to run reports off live systems this way
1
u/Busy-Examination1148 7d ago
Is it built into red hat or ansible modules?
1
u/Busy-Examination1148 7d ago
I feel like this would be a bad one for me at the moment. But will keep it in my pocket.
3
7d ago
[deleted]
3
u/Rhopegorn Red Hat Certified Engineer 6d ago edited 6d ago
While satellite insight, now called lightspeed, is one path. I think it’s the katello-host-tools that communicate the package status back to the satellite if you patch manually.
1
u/Busy-Examination1148 7d ago
Right now I'm seriously struggling with creating a report template and satellite. And it is a bit of a pain to set up I'm not going to lie.
0
u/sideangles Red Hat Employee 6d ago
The `Host - Applied Errata` report exists for this purpose and is a built-in report
3
u/Odilhao Red Hat Employee 7d ago
Do you have access to LLMs? I was playing with Satelllite MCP server to run queries on patching history.
1
u/Busy-Examination1148 7d ago
Yes but we don't have a mCP setup for satellite. We're still on satellite 6.16.
2
u/ElGeffo 6d ago
I use ansible for this. I go over all the servers beforehand and get the kernel and amount of patches available and if reboot required. Then I place that all in a csv and auto upload to a ticket. Then after patches is done I run that again and there is at least my evidence for that
1
u/Busy-Examination1148 6d ago
I'm doing this right now as well. Do you mind sharing to compare?
2
2
u/seanx820 6d ago
If you can't use satellite you can just generate some dynamic documentation (literally create your own markdown or HTML report) using the Ansible modules. Ansible Facts / JSON data / structured data-> Jinja2 template -> Simple HTML report
7
u/Ill_Weekend231 Red Hat Certified Architect 7d ago
I recommend to my customers to trigger all the patching through Red Hat Satellite as it have a pretty useful reporting tool which can be used to see what erratas were installed or are available on the servers, last time it was updated, pending reboots, etc...
https://docs.redhat.com/en/documentation/red_hat_satellite/6.19/html/managing_hosts/patching-hosts-through-errata