mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-15 21:31:24 -05:00
[GH-ISSUE #3227] Wrong resource name in alerts #32406
Reference in New Issue
Block a user
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 @evoke0 on GitHub (Jun 7, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/3227
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.
BentoPDF was previously PDF Stirling
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:
Environment
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.
@evoke0 commented on GitHub (Jun 7, 2026):
Just to clarify, the alert was created after the change of name of the resource, and not before, so it shouldn't be a matter of updating the alert.
@AstralDestiny commented on GitHub (Jun 8, 2026):
What's the alert webhook look like? is it using the siteID or whatnot data or hardcoded?
@evoke0 commented on GitHub (Jun 8, 2026):
It's pretty generic, just to make it work with Telegram's API.
No authentication and the only header is
Content-Type: application/json, which is the bare minimum to be able to send a message using the API.The custom JSON body is as stated in the first post.
In case you need to know how the API looks like:
https://api.telegram.org/bot<botToken>/sendMessagechat_id is used to tell the bot who to message, no siteID nor any other is used, just healthCheckName and timestamp.