YUM Update Check by Henri Wahl

Check_MK version 2.2.0p11 CRE
Ubuntu 22.04

Has anyone used this YUM plugin from the CheckMK Exchange?
Checkmk Exchange

I have installed as per the guide

I am unsure if I am missing a local plugin that needs to be pushed to the agents as is done with the APT plugin (mk_apt)

I cannot locate any such plugin within the Agent Plugins section of Checkmk.

Many thanks
David

I think I might have stumbled upon the plugin here

checkmk-agent-plugin-yum/agents/plugins at master · HenriWahl/checkmk-agent-plugin-yum · GitHub

However I’m still not convinced it is installed correctly as I do not see the Plugin within the UI and it is also not listed in Service Monitoring rules along with the APT Updates.

I do find it by searching from the main menu however

mkp list shows it is installed and active

Name Version Title            Author     Req. Version Until Version Files State
---- ------- ---------------- ---------- ------------ ------------- ----- -----------------------------
yum  2.4.3   YUM Update Check Henri Wahl 2.0.0        None          7     Enabled (active on this site)

I have the rule in place

#		Actions	Conditions	Value	Description
0		Move this entry	
Host tag: Operating System is Red Hat Enterprise Linux
State when a reboot is required: 	WARN
State when normal updates are available: 	WARN
State when security updates are available: 	CRIT
Max Time since last last run update (Default 60 Days): 	30 days
Change State based on last run update (default OK): 	OK
YUM update checks

I have pushed the plugin to the RedHat hosts and it is found

CPU load             15 min load: 0.29, 15 min load per core: 0.05 (6 cores)
CPU utilization      Total CPU: 5.74%
Check_MK Agent       Version: 2.2.0p11, OS: linux, Agent plugins: 1, Local checks: 1
Disk IO SUMMARY      Read: 0.00 B/s, Write: 709 kB/s, Latency: 780 microseconds

So I restarted OMD and it’s now working :roll_eyes:

Hi,

I have the same problem

I installed, enable the yum mkp

I declared a rule in Service Monitoring rules

I restarted OMD et rescan the host but nothing appears

Do you have a solution ?

Regards

I presume you have pushed out the plugin mk_yum to the hosts?

Hi ride165 thank you for reply

I just applied Changes and create a Rule in Setup > Rule search > search update > Enforcing service discovery > YUM Updates

I can see YUM check in service discovery oh hosts but all sensors are in PENDING mode

When you said “pushed out the plugin” do you mean apply Changes ?

Best regards

Unless you are using the Enterprise version which has the bakery you need to put the mk_yum file that forms part of the check into the local plugin folder on the hosts.

For instance I used Ansible to put the file into the /usr/lib/check_mk_agent/plugins/ folder and set the permissions.

  - name: Install mk_yum plugin
      ansible.builtin.copy:
        src: mk_yum
        dest: /usr/lib/check_mk_agent/plugins/mk_yum
        owner: root
        group: root
        mode: '0755'
      when: ansible_facts['os_family'] == "RedHat"

Hi ride165

Thank you for you help

I installed the yum mkp on Raw Edition :

OMD[monitoring]:~$ mkp show yum
Name:                          yum
Version:                       2.4.3
Packaged on Checkmk Version:   2.0.0p38
Required Checkmk Version:      2.0.0
Valid until Checkmk version:   No version limitation
Title:                         YUM Update Check
Author:                        Henri Wahl
Download-URL:                  https://github.com/HenriWahl/checkmk-agent-plugin-yum/releases
Files:                         
  Agent based plugins (Checks, Inventory)
  Agents
    plugins/yum
  Alert handlers
  Binaries
  Checks' man pages
    yum
  Legacy check plugins
    yum
  Documentation files
  Legacy inventory plugins
  Libraries
    check_mk/base/cee/plugins/bakery/yum.py
    python3/cmk/base/cee/plugins/bakery/yum.py
  Localizations
  SNMP MIBs
  Notification scripts
  PNP4Nagios templates (deprecated)
  Legacy GUI extensions
    plugins/wato/yum_cee.py
    plugins/wato/yum_check_parameters.py
Description:
  Checks for updates on RPM-based distributions via yum.
yum  2.4.3   YUM Update Check Henri Wahl 2.0.0        None          7     Enabled (active on this site)

But I cannot see mk_yum plugins when i go in : Linux > Setup > Agent

Do you think the plugin is correctly installed ?

Regards,

Yeah so if you see my original post this this is the issue I had. I managed to find the mk_yum file I needed on his Github page.

Just download that and then install it as I did onto the hosts you want to monitor

https://github.com/HenriWahl/checkmk-agent-plugin-yum/tree/master/agents/plugins

1 Like

thank you very much, sorry I hadn’t reread the first few posts.

I put the plugin code in the specified folder, after an OMD restart the plugin status is functional on hosts.

The yum sensor works now

Best regards,

1 Like

FYI I discovered that when you install plugins via mkp from the Checkmk Exchange the corresponding plugin can be found in the local dir of the server not with the built-in plugins that are in share/check_mk/agents/plugins/

OMD[monitoring]:~$ ll local/share/check_mk/agents/plugins/
total 12
-rwxr-xr-x 1 monitoring monitoring 2620 Jan 31 12:35 sslcertificates*
-rwxr-xr-x 1 monitoring monitoring 4758 Nov 17 14:58 yum*

Hello

In this version:
https://github.com/HenriWahl/checkmk-agent-plugin-yum/releases/download/latest/yum-3b4a1bbb.mkp
is a bug so I corrected it in line 119 in my file to:

if [ "$MAJOR_VERSION" -ge 8 ]; then

Further there are spaces in the yum.py files which prevents a execution in Checkmk.

@Henri: please correct it as well in your files.
Thanks
Regards
JP

Hello,

I installed the yum 2.5.0 version on MSE 2.2.0p23 on RHEL8

it simply doesn’t work: when the rule is activated, a WARNING with a conflict with a “yum check_group” is present and doesn’t allow the service/plugin to be detected. I removed all existing configuration, plugins etc… and reinstall from scratch : it doesn’t works

This plugin lacks a lot of documentation, and it’s a shame it’s so poorly maintained. A RHEL update check plugin should be maintained and documented by the official CheckMK teams.

I did a rollback in 2.4.4 which is functional

Regards,

Making the plugin visible (dirty method) is to symlink it:

ln -s /opt/omd/sites/YOURSITE/local/share/check_mk/agents/plugins/yum /opt/omd/versions/YOUR_CMK_VERSION.cre/share/check_mk/agents/plugins/yum

I needed this so i can (on my RAW-Edition) deploy agent updates and plugins to machines in the field via Ansible.

It only requires re-setting the symlink if you update a/the CMK-version.

  • Glowsome

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.