What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Error with value ssh script sensor

Votes:

0

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?

prtg ssh ssh-script

Created on Jul 20, 2016 10:22:35 AM



1 Reply

Votes:

0

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

Created on Jul 21, 2016 1:58:47 PM by  Isidora Jeremic [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.