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?
needrestart -p
CRIT
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.
needrestart is configurable in /etc/needrestart.
/etc/needrestart
You can use $nrconf{'nagios-status'}->{kernel} = 1; to have it output a WARN if the kernel needs an update.
$nrconf{'nagios-status'}->{kernel} = 1;