Re: Monitor for mssql HA (always on)
Posted: Tue Sep 19, 2017 3:50 pm
Try editing the batch file and at the top put @echo off.
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
test-sqlavailabilitygroup=cmd /c echo scripts\custom\Test-SqlAvailabilityGroup.ps1; exit($lastexitcode) | powershell.exe -command