HenriWahl / checkmk-agent-plugin-yum

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

Question about when yum cache is updated #9

Closed dgcurtis closed 6 years ago

dgcurtis commented 6 years ago

I've installed the plugin and copied the yum agent to the clients. It seems like 4-5 months ago, yum doesn't get run to update the cache. It's happened on both my RHEL6 and RHEL7 servers. I don't believe I've changed anything but maybe I'm misunderstanding how the yum cache gets updated. Am I supposed to be using yum-cron with check only enabled or is the yum plugin supposed to run yum to update the yum cache? Unless I run "yum check-update" manually, the yum plugin never reports that there are any updates.

Thanks

HenriWahl commented 6 years ago

Yes, the plugin does not care abut DOING the updates. A cronjob including

yum check-update -q

does the trick.