Reboot Check for Ubuntu

Is there now a variant built into Checkmk, for example to check whether a restart of Ubuntu is necessary?
Unfortunately, I could not find anything.
If not then I’ll build my own check, that wouldn’t hurt either :slight_smile:

Thanks a lot.

Hallo,
the yum check for rpm distros has an option to warn if a reboot necessary.
I don t know if the apt check works similar.
Ralf

There is no such check build into Checkmk. But you can use this local check script:

2 Likes

thats a very nice page, didn’t know that before. Thanks :slight_smile:
I will have a look.

Ubuntu & Debian have an optional package called needrestart.
It checks if processes/daemons/containers/whole OS need a restart. And it has a fancy -p switch to give its output in a Nagios-compatible way.
So I use it as a cached mrpe check:
Need_Restart (interval=180) /usr/sbin/needrestart -p

Also it hooks into apt/dpkg and so it asks you after an update, if you want to restart those daemons.

4 Likes

I will give this package a try.
Since we mainly use Ubuntu I think I can use it on any server we manage.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.