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

Update yum #14

Closed michi53 closed 5 years ago

michi53 commented 5 years ago

https://github.com/HenriWahl/checkmk-agent-plugin-yum/issues/12#issuecomment-461317564

52: LATEST_KERNEL=$(yum -q -C --noplugins list installed | egrep "^(vz)?kernel(|-uek)." | grep "." | tail -n1 | awk '{print $2};') 53: RUNNING_KERNEL=$(cat /proc/version | awk '{print $3}' )

Zeile 52 liefert bei mir: 3.10.0-957.10.1.el7 Zeile 53: 3.10.0-957.10.1.el7.x86_64 habe noch ein sed angehängt um das .x86_64 zu entfernen: 53: RUNNING_KERNEL=$(cat /proc/version | awk '{print $3}' | sed 's/.x86_64//g')

damit läufts wieder.

Bin neu bei github - habe also keine Ahnung, ob ich das jetzt richtig gemacht hab mit fork usw. aber ich denke, das Ergebnis steht im Vordergrund.

Gruß!

HenriWahl commented 5 years ago

Alles richtig gemacht 👍 Danke!