Hello,
I know about https://kb.paessler.com/en/topic/75261-single-quote-in-sensor-message-breaks-notification-script
Is there a solution for this problem?
We have sensors that reports messages like:
- Error recorder "Foo" is down.
- Failed to connect. Please check the SSH log of the target device or try the Compatibility Mode of the sensor's SSH engine and consider updating the target system's operating system.
As you see, one message contains a double quote and the other a single quote, which makes effective quoting impossible.
Is there a way to modify the SSH sensor messages ourselves? That way we can remove the single quotes from PRTG's messages.
That or you introduce a %powershell_message placeholder that is properly escaped.
IMHO the best way to solve this is to stop using placeholders but provide the parameters as environment variables instead. That way any script can use the environment any way it likes.
Add comment