CMK version: (Latest)
OS version: (Red Hat 9)
Good Day All. I have created two calling scripts that use ssh to execute the Linux based bash agent on a Linux virtual appliance. The calling scripts reside on a CheckMK server on Red Hat 9. I have installed PowerShell and Powercli on the Red Hat 9 CheckMK server.
-
Calling Script 1 - A PowerShell script which is attached as Powershell_Script.ps1
-
Calling Script 2 - A Bash script which is attached as Bash_Script.ps1
The output from the calling bash script is displayed within the CheckMK raw server. The output from the calling PowerShell script is not displayed within the CheckMK raw server.
Does anyone know why? Please feel free to suggest code improvements.
Both calling scripts are implemented as data source programs ![]()
Thanks
Steve
Bash_Script.sh (777 Bytes)
Powershell_Script.ps1 (979 Bytes)