Showing 1 changed files with 2 additions and 1 deletions
+2 -1
monitoring.d/common-tests
... ...
@@ -46,7 +46,8 @@ function restart_needed () {
46 46
             needrestart[gensub("NEEDRESTART-", "", "1", $1)] = $2
47 47
         }
48 48
         END {
49
-            if (needrestart["KSTA"] > 1) {
49
+            if (needrestart["KSTA"] > 1
50
+            && gensub("-v[78]\\+$", "", "1", needrestart["KCUR"]) != gensub("-v[78]\\+$", "", "1", needrestart["KEXP"])) {
50 51
                 print "kernel:"
51 52
                 print needrestart["KCUR"] " -> " needrestart["KEXP"]
52 53
             }