how to monitor is a linux server is up or has been rebboted


We are having issue with our tools that monitor the servers/OS side  and we are trying to find a solution in foglight

We are looking at monitoring if a server is up/down or if I has been rebooted

If anybody has an idea how to do this

Thank you