Please allow us to focus solely on the script's output:
<?xml version="1.0" encoding='UTF-8'?>
<prtg>
<result>
<channel>Failed Order</channel>
<value>$PSQL_EXEC</value>
<Unit>Custom</Unit>
<LimitMaxError>0.5</LimitMaxError>
<LimitErrorMsg>$PSQL_EXEC Failed Order</LimitErrorMsg>
<LimitMode>1</LimitMode>
</result>
</prtg>
When using this:
<LimitMaxError>0.5</LimitMaxError>
<LimitErrorMsg>$PSQL_EXEC Failed Order</LimitErrorMsg>
<LimitMode>1</LimitMode>
You're creating a limit for this channel, in this case whenever the limit is crossed PRTG will display the following standard text:
%value %unit (%channel) is above the %limittype limit of %definedlimit %unit in %channel. |
These are also only passed on the first scan/result and are not updated later. Please have a look here for details:
If you want o have complete control over the error/warning text you need to compare the current value against a limit within the script and then produce an output similar to this:
<prtg>
<error>1</error>
<text>Value ($value) is above limit</text>
</prtg>
The same goes for warning:
<prtg>
<Warning>1</Warning>
<text>Value ($value) is above limit</text>
</prtg>
Best Regards,
Luciano Lingnau [Paessler Support]
Add comment