mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 15:05:57 +03:00
[GH-ISSUE #2183] ALERT MANAGER #1353
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#1353
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brinfotec on GitHub (Mar 31, 2025).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/2183
The system is configured to send custom alerts via email, but the alerts are being sent in the default format instead of the customized format defined in the script. The objective is to document the issue and ensure that alerts are sent according to the specified format.
Description of the Bug
A clear and concise description of the problem is that custom alerts configured in the system are being sent in the default format, without applying the customizations defined in the script. Specifically:
Affected System: Monitoring system (RMM) integrated with GLPI.
Email Address: support@brinfotec.com.br
Expected Format: Alerts should be sent in the custom format, as defined by the script. However, they are currently being sent in the default format.
Steps to Reproduce
Configure a custom alert in the RMM system.
Trigger an event that generates the alert (e.g., a monitored service failure).
Observe the email received in GLPI via the support@brinfotec.com.br address.
Verify that the email is in the default format, without the expected customizations.
Expected Behavior
The system should send alerts in the custom format defined in the script, ensuring that the email content matches the output of the script. For example, the expected format is:
ERROR DETECTED!
CLIENTE: BRINFOTEC
SITE: Blumenau
AGENTE: BRINFOTEC
SEVERITY OF ERROR: BRINFOTEC
TIME OF ERROR: BRINFOTEC
DESCRIPTION OF ERROR: BRINFOTEC
However, the current output in GLPI shows the default format, such as:
BRINFOTEC, Blumenau, BRINFOTEC - BRINFOTEC - POLÍTICA PADRÃO - Memory Check - Warning Threshold: 85% Error Threshold: 95% Failed
BRINFOTEC, Blumenau, BRINFOTEC - BRINFOTEC - POLÍTICA PADRÃO - Memory Check - Warning Threshold: 85% Error Threshold: 95% Failed - Average memory usage: 86%, Warning Threshold: 85% Error Threshold: 95%
Screenshots
If applicable, add screenshots to help explain the problem:
Current Email Format in GLPI:
Expected Email Format (Script Output):
Additional Context
The issue occurs specifically when the alert is sent to GLPI via the support@brinfotec.com.br address.
The script responsible for sending the custom alert is correctly configured, as verified through testing:
python
#!/usr/bin/env python3
import os
output = f"""
ERROR DETECTED!
CLIENTE: {os.getenv('client_name')}
SITE: {os.getenv('site_name')}
AGENTE: {os.getenv('agent_hostname')}
SEVERITY OF ERROR: {os.getenv('alert_severity')}
TIME OF ERROR: {os.getenv('alert_time')}
DESCRIPTION OF ERROR: {os.getenv('alert_message')}
"""
print(output)
Despite the script being correctly configured, the alert is still being sent in the default format.