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"
I hope you can help me on this case.
Thank you very much.
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