Microgrids are becoming increasingly important for improving the dependability, stability, and quality of the electrical system, as well as for integrating renewable technologies. This paper describes a novel monitoring and alarm system that has been developed to optimize the operation and maintenance of microgrids. The system is unique in that it has been developed using open source software, including Node-RED, Home Assistant, Maria DB, and Telegram, and it allows for easy programming of alarms or warnings. Testing of the system has taken place within the CEDER microgrid and is capable of detecting faults in various components of the microgrid, such as generation units, storage systems, and loads. Upon detecting a fault, the system immediately sends a text message to the mobile phones of the microgrid operator or maintenance crew, enabling them to promptly address the problem. The software can also manage preventive maintenance of the microgrid by sending periodic reminders to the maintenance crew regarding necessary tasks.