Regarding to this post https://kb.paessler.com/en/topic/39513-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?
Add comment