I am trying to create a custom unix sensor, script returns a server name, want to compare it with an expected value and error if it is different
unix script
Modified on 2025-06-10 14:30:29 +0200
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.
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.
You must do the comparison already inside the script and hand over the final result to PRTG!
See: Is there a shell script example for PRTG's SSH Script Sensor? https://www.paessler.com/knowledgebase/en/topic/39513-is-there-a-shell-script-example-for-prtg-s-ssh-script-sensor
Here is another sample of a script: https://www.paessler.com/knowledgebase/en/topic/27553
Feb, 2013 - Permalink