ConSol-Monitoring / snclient

SNClient+ - Cross platform monitoring agent
MIT License
48 stars 9 forks source link

Pathholes #39

Closed lausser closed 1 year ago

lausser commented 1 year ago

External commands have been improved and many test cases were added (check_wrap_test_helpers.go) .bat, .ps1 and .exe files can be run without using command wrapping. Variations of ARG macros were implemented. Also scripts with blank spaces in their path (like "C:\Program Files\snclient\scripts") can be run now.

(check_service_linux_test had to be updated, so that it starts with a nonempty config. The new function to run external commands (systemctl in this case) requires at least the default config settings)