ITADN

Wrong resource name in alerts

#3227Openevoke0 创建于 2026-06-07
E
evoke0commented
### Describe the Bug Webhook alerts (used with a telegram bot) report an incorrect name when a resource name has been changed after its creation. I used to have StirlingPDF but then switched to BentoPDF, instead of removing the old resource, I updated it to point to Bento's IP and changed the name from one to the other, but the alert still reports it as Stirling. This should be tested with other alert actions, such as emails. <img width="335" height="215" alt="Image" src="https://github.com/user-attachments/assets/df5edcc8-3998-4c8e-8944-02a220d2135c" /> <img width="218" height="108" alt="Image" src="https://github.com/user-attachments/assets/5766763f-622e-4995-8e7d-7bfa9d754001" /> <sub>BentoPDF was previously PDF Stirling</sub> As an addition, the resource name should be just the name, without adding "Resource", as it kind of prevents using your own JSON text in another language. My JSON custom body: ``` { "chat_id": 14XXX, "text": "⚠️ Ha cambiado el estado de un recurso\n\n📦 Recurso: {{healthCheckName}}\n❌ Estado: Caído\n🕐 Hora: {{timestamp}}" } ``` ### Environment - OS Type & Version: Debian 13 - Pangolin Version: 1.18.4 - Edition (Community or Enterprise): Enterprise ### To Reproduce Create a resource and give it a name. Change the name to something else. Create a webhook alert with a Telegram bot. Trigger the alert and check the name, it should be the first name instead of the new one. ### Expected Behavior The alert should show the new updated name instead of the old one.
1 条评论