Skip to main content

Hi,

 

I’m asking a question : There is a simple method to monitor reboot pending of a Linux Server ?

 

Because there are a few methods that’s I read, but don’t know if it’s the right method to do it :

  • Script “check file exist”
  • NRPE4 ?? (I think there is a service to do that)
  • Create a Systemd service and monitor the service (the worse method)

 

For monitor if the Linux server need a reboot there is a way that I learn ; if the server is waiting for a reboot to applied updates, an empty file will be created at :

/var/run/reboot-required

So we just need to verify if the file exist or not, no ? 
So that’s why I’m asking, it is the right way to do that or not ?

 

Sorry for my bad english, i’m french.

Be the first to reply!

Reply