Custom component monitor fails to generate alerts
Issue
When I create a custom component monitor for Datto RMM, it does not generate any alerts.
Answer
The component must include the correct exit code when referencing an alert. Below are exit codes for common scripting languages:
For batch (.bat) scripts:
exit /B 1
For PowerShell scripts:
exit 1
For Visual Basic scripts:
wscript.quit 1