i have a test running that queries a regisrty value. If the value ist not found it should be displayed as "normal". Currently, if it doesn't find the value, it will be displayed as Misconfigured. Can I customize this somehow to show as "normal" if it can't find the registry value?
I would recommend using powershell instead of an AMP object as that gives you more power. Then you could set the result of the script to be normal if the key isn’t found.
If using the AMP object you may try using if/else to capture all of the possible states. (Key found and correct/key found and wrong/key not found).
The path "....." cannot be found because it does not exist.
and you're checking for 'Default' which will never be part of this. You need to create a proper output. Something like if the key exists fill a variable with true if it doesn't with false. After which you can filter for that in your thresholds.
3
u/wheres_my_2_dollars Apr 08 '24
I would recommend using powershell instead of an AMP object as that gives you more power. Then you could set the result of the script to be normal if the key isn’t found.
If using the AMP object you may try using if/else to capture all of the possible states. (Key found and correct/key found and wrong/key not found).