I have a perl script on a linux system that measures the sizes of various directories. The script is in /var/prtg/scriptsxml and is correctly found when adding a sensor.
PRTG runs the script without error, but the values returned are not what the script outputs and I'm confused why.
Script output:
{ "prtg": { "result": [ { "channel": "ThingOne", "value": "372005484", "VolumeSize": "GigaByte", "unit": "BytesFile" }, { "channel": "Tester", "value": "85", "VolumeSize": "GigaByte", "unit": "BytesFile" } ] } }
In PRTG I've created a new "SSH Script Adanced" sensor on running, it reports ThingOne as 4096 and Tester as 20 bytes, rather than the value in json.
Eg:
Date Time Execution Time ThingOne Tester Downtime Coverage 07/01/2020 15:30:39 544 msec 4,096 Byte 20 Byte 0 % 100 % 07/01/2020 15:29:39 426 msec 4,096 Byte 20 Byte 0 % 100 % 07/01/2020 15:28:39 466 msec 4,096 Byte 20 Byte 0 % 100 % 07/01/2020 15:27:39 469 msec 4,096 Byte 20 Byte 0 % 100 % 07/01/2020 15:26:39 492 msec 4,096 Byte 20 Byte 0 % 100 %
Add comment