Hi.
I got Discovery Item prototype with key:
is the Windows TaskScheduler task name, which i collect with PS script in Discovery Rule:
I'm using chcp because that was the only way to make {#TASKNAME} displayed correctly on zabbix front.
PS script returns JSON data
Item Preprocessing regular expression:
And that produced error shown below. Other {#TASKNAME} that contains only latin character processed perfectly.

Please, help! It seems, i'm stuck for long at this point.
I got Discovery Item prototype with key:
Code:
"eventlog[Microsoft-Windows-TaskScheduler/Operational,.*{#TASKNAME}.*,Information,TaskScheduler,201,100,]"
Code:
{#TASKNAME}
Code:
system.run[chcp 65001 > NULL && powershell.exe c:\zb\bin\tsched.ps1]
PS script returns JSON data
Code:
{
"data":{
"{#TASKNAME}": "проверка"
}
}
Code:
Task Scheduler.*\".*{#TASKNAME}\"\ ,\ .*code\ ([0-9x]+)\.
Please, help! It seems, i'm stuck for long at this point.
Comment