$sql = Invoke-Sqlcmd -Query " ...... " $containsWord = $file | %{$_ -match "0"} if ($containsWord -contains $true) { Return 0 } else { Return 1 }
system.run[powershell.exe -command C:\Zabbix\Powershell_Script.ps1]
{sql:system.run[powershell.exe -command C:\Zabbix\Powershell_Script.ps1].last()}=1
Comment