Monitor the time between (or since last) Reboots?

Is there possibly a way to use an agent to possibly monitor the time since the last reboot, and then possibly alert when there is an excessive amount of rebooting within a time frame. In order to be more aware of frequent/excessive rebooting and to know which elements may need some extra attention as to the cause?

Many Thanks,