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

Add opt. Statuschange based on last updatedate #43

Closed HenrikWMG closed 2 years ago

HenrikWMG commented 3 years ago

A new feature is added to find systems that weren't patched for a defined time. The agent output will now have a forth element. Now it will look like:

# <<<yum>>>
# yes
# 32
# 4
# 1626252300

It is a unix timestamp that is generated by the youngest entry from "yum history" command. The timestamp will be compared to a a newly added entry in WATO that can be configured by the user.

The plugin will now show following new behavior:

The default status level in WATO is "OK" so the plugin will not change behaviour when the feature is not explicitly used. The default timerange is 60 days.

It was tested on CentOS8 host and CheckMK 2.0.0.p5