Code: Select all
check_updates=cmd /c echo C:\scripts\Check-Updates.ps1; exit $LastExitCode | powershell.exe -command -
check_ms_diskload=cmd /c echo C:\scripts\check_ms_windows_disk_load.ps1 $ARG1$; exit $LastExitCode | powershell.exe -command –
so I renamed the "Check-Updates.ps1" to something else.
then I renamed "check_ms_windows.ps1" to "Check-Updates.ps1"
In Nagios, I forced the check for the check-updates and it worked!!
Next, I set the file names back correctly.
opened the ini file and manually retyped the line for the diskload (leaving out $ARG1$) using notepad++
saved, restart the service, and tried again......
now it works.....oy