HenriWahl / checkmk-agent-plugin-yum

Checks for updates on RPM-based distributions via yum.
GNU General Public License v2.0
23 stars 22 forks source link

Update agent to cover edge situation with 20+ non updates yum actions #65

Closed swampdogmash closed 1 month ago

swampdogmash commented 4 months ago

Added "list all" to the history command as yum by default only shows 20 of the last actions. On a very old unpatched machine, or one that has had a 20+ manual yum RPM installs, the "last update" did not work correctly.

swampdogmash commented 3 months ago

Found that on RHEL/Centos 8 "yum history list all" generates an error. Need to switch based on major OS version so will add a major OS version check and switch based on that. Need to further test with versions of yum though rather than OS.