My guess is that raid_Status is NULL or some other value that does not match any of the cases.
To catch this, add
Assuming that allows the script to run, check that "raidStatus" is the Parameter and not the Description for the DCI you are getting the value from.
Possibly the script is not being run on the node where the "raidStatus" DCI is located.
To catch this, add
Code Select
default:
evt = "SYNOLOGY_RAID_STATUS_ERROR";
details = "NO_STATUS";
Assuming that allows the script to run, check that "raidStatus" is the Parameter and not the Description for the DCI you are getting the value from.
Possibly the script is not being run on the node where the "raidStatus" DCI is located.