Here we go: LibreNMS/Nagios check script for monitoring Microsoft M365 services health · GitHub
PS: If you want to use the clickable links feature, you need the code-changes in Libre as described here (at least for now): Allow html-links in service-details view / Create clickable links from script output - #2 by ChrisK928