liske / needrestart

Restart daemons after library updates.
GNU General Public License v2.0
426 stars 67 forks source link

Icinga check - add a mode that ignores any services that wouldn't be automatically restarted #224

Open calestyo opened 3 years ago

calestyo commented 3 years ago

Hey.

For the Icinga check, it would be nice if there were some additional ways to change the behaviour.

E.g. that one could specify which services are ignored with respect to the check, or merely cause a warning.

Maybe similar to:

$nrconf{override_rc} = {
    # DBus
    qr(^dbus) => 0,

    # display managers
    qr(^gdm) => 0,
    qr(^kdm) => 0,
    qr(^nodm) => 0,

where one could specify whether that service would be considered a warning, error or ignored (or default).

Cheers, Chris.