Skip to content

Improve node_reboot_required metric  #230

Open
@debian777

Description

@debian777

https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/blob/a2b43e19be1e64c31b626ca827506977cac93488/apt_info.py#L112C31-L112C51

in Ubuntu,, script https://git.launchpad.net/ubuntu/+source/update-notifier/tree/data/update-motd-reboot-required#n6 not only tests if file exist but also examines content of this file.

The difference is that with live kernel patching, file exist but remains empty. This does not trigger *** System restart required *** message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions