Regarding to this post https://helpdesk.paessler.com/en/support/solutions/articles/76000063557-is-there-a-shell-script-example-for-prtg-s-ssh-script-sensor we can choose a returncode between 0 and 5.
We want to create a ssh-script sensor which is "yellow"(warning) for values over 50% and "red" (error) for values over 90%. Our problem is, that if we choose an returnvalue between 2 and 5 (error), that the sensor-value (e.g. 98) isn't logged anymore.
For example, our script returns ..
2:98.00:DB2 Log Utilization over 80%
... than PRTG sets this sensor to red, but the value 98.00 isn't logged.
With ...
1:98.00:Log Utilization over 80%
... 98.00 is logged and we can see it at the history-diagram, but the state of the sensor is only yellow.
How could we solve this?
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,
Kindly note that this is expected behaviour in such case and it cannot be changed.
You can try using SSH Script Advanced Sensor in combination with lookups, and there you can set one channel to show values in % and another channel to show return value.
Best regards
Jul, 2016 - Permalink