Hi,
I have a requirement to monitor only 3 schedule tasks out of big list of tasks.
Example for 1 task is :
Entry in zabbix_agentd.win.conf
UserParameter=TaskSchedulerMon[*],powershell -NoProfile -ExecutionPolicy Bypass -File C:\zabbix\WindowScheduleTasks.ps1 WSTask
Item property file:
$TaskInfo = Get-ScheduledTask -TaskName "$name1"
Write-Output ($TaskInfo.State)
Trigger Property file:
{TaskSchedulerMon[WSTask].prev()}<>0
getting error as "Unsupported Item Key
I have a requirement to monitor only 3 schedule tasks out of big list of tasks.
Example for 1 task is :
Entry in zabbix_agentd.win.conf
UserParameter=TaskSchedulerMon[*],powershell -NoProfile -ExecutionPolicy Bypass -File C:\zabbix\WindowScheduleTasks.ps1 WSTask
Item property file:
$TaskInfo = Get-ScheduledTask -TaskName "$name1"
Write-Output ($TaskInfo.State)
Trigger Property file:
{TaskSchedulerMon[WSTask].prev()}<>0
getting error as "Unsupported Item Key
Comment