Hello,

I added on PRTG a Syslog receiver sensor. I also configured the notification to call an API if a sensor gets an error status.

I need to send the last Syslog error to the API: for this, I did put the variable "variables[syslogerrors]=%syslogerrors" in my API's URL, but in Gitlab I can't get it's value and I receive "%syslogerrors"

https://MyGitLab/api/v4/projects/PROJECT_REF/trigger/pipeline?token=TOKEN&variables[syslogerrors]=%syslogerrors&ref=main

I hope you can help me on this case.

Thank you very much.


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Hello,

this placeholder is only resolved for the body of custom text emails, but not for HTTP actions. That means the only option here is to receive that email and have a script pushing the content through HTTP post by that script.

The placeholder contains the last 20 errors which are not older than 60 minutes.

PRTG is intended to be used as endpoint in the syslog chain, meaning it might me preferable to send the logs to a syslog suite, doing the processing there and have those logs then forwarded to PRTG if you want to use PRTG's notification system.


Apr, 2022 - Permalink