Have looked through API functions
and I don't see a function that checks if the moodle is in the Maintenance mode or not.
"Client" has automation setup for user checks and it appears they have whatever they are using to trigger a run 24 hrs a day 7 days a week and at all times of the day.
IF the server has acquired a kernel update and needs to be rebooted or Moodle Admin is upgrading Moodle or updating plugins ... it would seem to me that a check like ... server up and is moodle in maintenance mode would be a desirable function.
Anyone have an idea as to how to implement those checks?
Thanks, in advance, Ken