Reclassify MRPE check from CRIT to WARN

CMK version: 2.2

Error message:

I use a MRPE check that cannot be edited (needrestart -p). When a new kernel requires a reboot, needrestart becomes CRIT, but I’d like to see the checks as WARN instead.
Is it possible to reclassify checks from CRIT to WARN?

Hi,

if the plugin itself is not customizable (I´ve never used that one), you can use the rule “Service state translation” for that.

2 Likes

needrestart is configurable in /etc/needrestart.

You can use $nrconf{'nagios-status'}->{kernel} = 1; to have it output a WARN if the kernel needs an update.

2 Likes