Hi,
I have resolved this script error. I found mistake on first line "raid_Status= GetDCIValueByName($node, "raidStatus");"
DCI parameter must be configured by DCI ID "raid_Status= GetDCIValueByName($node, "1.3.6.1.4.1.6574.3.1.1.3.0");
Now everything is working fine.
First I am put suggested code to eliminate error for null value of DCI parameter and after that I went to read again function GetDCIValueByName and found my mistake of parameters description.
Also, I will try the second suggestion to put script directly in Threshold of DCI value but I have only one solution resolved.
Thanks guys,
Have a nice day and happy new year 2019.
Tomislav