Errormonitoring
An Error Monitoring Application that integrates with n8n to automatically detect and report system errors. The application captures error messages in real time and sends detailed notifications to a Telegram bot.
- Author: muneeb141
- Repository: https://github.com/muneeb141/ErrorMonitoring
- GitHub stars: 2
- Forks: 0
- License: MIT
- Category: Integrations
- Maintenance: Unmaintained
Install Errormonitoring
bench get-app https://github.com/muneeb141/ErrorMonitoring
Add the Frappe Gems badge to your README
Maintain Errormonitoring? Paste this into your README:
[](https://frappegems.com/gems/apps/muneeb141/ErrorMonitoring)
About Errormonitoring
ERPNext Error Monitor
A custom ERPNext app that monitors error logs and sends notifications to Telegram users through n8n automation.
Features
- Real-time error monitoring for ERPNext
- Telegram notifications for system errors
- Configurable monitoring for specific DocTypes
- Support for multiple Telegram users
- Customizable error message format
- Simple setup and configuration
Prerequisites
Before installing this app, ensure you have:
- ERPNext (Version 14 or later)
- Python 3.7+
- n8n installed and running
- Telegram account and bot setup
Installation
- From your bench directory:
bench get-app error_monitoring https://github.com/YOUR_USERNAME/error_monitoring
bench install-app error_monitoring
- After installation, run migrations:
bench migrate
Setup Instructions
1. Telegram Bot Setup
Create a Telegram bot:
- Open Telegram and search for @BotFather
- Send
/newbotcommand - Follow instructions to create your bot
- Save the bot token provided
Get Chat IDs:
- Add @RawDataBot to your group or
- Send message to your bot and check:
https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates - Note down the chat IDs for configuration
2. n8n Setup
- Start n8n:
n8n start
Create new workflow:
- Access n8n interface (default: http://localhost:5678)
- Create new workflow
- Add Webhook node (trigger)
- Add Split In Batches node
- Add Telegram node
- Configure nodes as shown in screenshots below
Configure Telegram node:
- Add your bot token
- Use dynamic chat ID:
{{$json["chat_id"]}} - Save and activate workflow
- Copy webhook URL
3. ERPNext Configuration
Go to Error Monitor Settings:
- Add n8n webhook URL
- Enable monitoring
- Add Telegram users and chat IDs
- Configure DocTypes to monitor
Test the setup:
# In bench console
error_log = frappe.new_doc('Error Log')
error_log.error_type = "Test Error"
error_log.error_message = "Test Message"
error_log.insert(ignore_permissions=True)
Configuration Options
Error Monitor Settings
| Field | Description |
|---|---|
| n8n Webhook URL | URL from n8n workflow |
| Enable Monitoring | Toggle monitoring on/off |
| Monitor All DocTypes | Monitor errors from all DocTypes |
| Telegram Users | List of users to notify |
| Monitored DocTypes | Specific DocTypes to monitor |
Telegram User Settings
| Field | Description |
|---|---|
| User Name | Identifier for the user |
| Chat ID | Telegram chat ID |
| Active | Toggle notifications for user |
Troubleshooting
No notifications received:
- Check if n8n is running
- Verify webhook URL in settings
- Confirm Telegram chat IDs are correct
- Check Error Monitor Settings are enabled
n8n webhook errors:
- Ensure n8n is running
- Check workflow is activated
- Verify webhook URL format
ERPNext errors:
- Verify app is installed:
bench --site your_site_name list-apps
- Verify app is installed:
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Support
For support: - Open an issue on GitHub - Contact: muneebmohammed141@gmail.com
Screenshots
Version History
- 1.0.0
- Initial Release
- Basic error monitoring
- Telegram integration
Related Integrations apps for Frappe & ERPNext
- Insights — Open Source Business Intelligence Tool
- Raven — Simple, open source team messaging platform
- Frappe Whatsapp — WhatsApp cloud integration for frappe
- Frappe Assistant Core — Infrastructure that connects LLMs to ERPNext. Frappe Assistant Core works with the Model Context Protocol (MCP) to expose ERPNext functionality to any compatible Language Model
- Biometric Attendance Sync Tool — A simple tool for syncing Biometric Attendance data with your ERPNext server
- Frappe React Sdk — React hooks for Frappe
- Frappe Js Sdk — TypeScript/JavaScript library for Frappe REST API
- Mcp — Frappe MCP allows Frappe apps to function as MCP servers